check ldap group membership when logging in subsequently
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-11 16:48:22 +11:00
parent bf1174bd0f
commit a85ed3fad8
2 changed files with 39 additions and 18 deletions

View File

@@ -262,7 +262,7 @@ func LdapGetGroupMembership(username string, password string) ([]string, error)
return groups, nil
}
// No need to check group memberships, just validate that we can bind successfully
// VerifyLdapCreds validates that we can bind successfully to LDAP with the supplied credentials
func VerifyLdapCreds(username string, password string) error {
var err error
username = CheckUsername(username)