This commit is contained in:
@@ -140,9 +140,10 @@ func VerifyLdapCreds(username string, password string) bool {
|
|||||||
log.Printf("VerifyLdapCreds successfully bound to LDAP\n")
|
log.Printf("VerifyLdapCreds successfully bound to LDAP\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("Attempting LDAP search request from base DN '%s'\n", ldapBaseDn)
|
||||||
searchReq := ldap.NewSearchRequest(
|
searchReq := ldap.NewSearchRequest(
|
||||||
ldapBaseDn,
|
ldapBaseDn,
|
||||||
ldap.ScopeBaseObject, // you can also use ldap.ScopeWholeSubtree
|
ldap.ScopeWholeSubtree, // you can also use ldap.ScopeWholeSubtree
|
||||||
ldap.NeverDerefAliases,
|
ldap.NeverDerefAliases,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
Reference in New Issue
Block a user