change search scope
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-04 16:26:22 +11:00
parent 3d47ccd746
commit 44b92a8b08

View File

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