aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/ldap/ldap_test.go
diff options
context:
space:
mode:
authorSergio Benitez <sbenitez@mit.edu>2015-08-12 16:58:27 -0700
committerSergio Benitez <sbenitez@mit.edu>2015-08-12 17:01:22 -0700
commit7d84d4a8f0cb30df04241f528ed74672a485274a (patch)
treee42a4d0163ac9573a75ea47e6659a8761e78d936 /modules/auth/ldap/ldap_test.go
parent631c85ba4f51d3fe910324595c154dfaf25935d2 (diff)
Significantly enhanced LDAP support in Gogs.
Diffstat (limited to 'modules/auth/ldap/ldap_test.go')
-rw-r--r--modules/auth/ldap/ldap_test.go29
1 files changed, 0 insertions, 29 deletions
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)
-// }