From 7d84d4a8f0cb30df04241f528ed74672a485274a Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 12 Aug 2015 16:58:27 -0700 Subject: Significantly enhanced LDAP support in Gogs. --- modules/auth/ldap/ldap_test.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 modules/auth/ldap/ldap_test.go (limited to 'modules/auth/ldap/ldap_test.go') diff --git a/modules/auth/ldap/ldap_test.go b/modules/auth/ldap/ldap_test.go deleted file mode 100644 index a842eebf..00000000 --- a/modules/auth/ldap/ldap_test.go +++ /dev/null @@ -1,29 +0,0 @@ -package ldap - -// import ( -// "fmt" -// "testing" -// ) - -// var ldapServer = "ldap.itd.umich.edu" -// var ldapPort = 389 -// var baseDN = "dc=umich,dc=edu" -// var filter = []string{ -// "(cn=cis-fac)", -// "(&(objectclass=rfc822mailgroup)(cn=*Computer*))", -// "(&(objectclass=rfc822mailgroup)(cn=*Mathematics*))"} -// var attributes = []string{ -// "cn", -// "description"} -// var msadsaformat = "" - -// func TestLDAP(t *testing.T) { -// AddSource("test", ldapServer, ldapPort, baseDN, attributes, filter, msadsaformat) -// user, err := LoginUserLdap("xiaolunwen", "") -// if err != nil { -// t.Error(err) -// return -// } - -// fmt.Println(user) -// } -- cgit v1.2.3