add event log retrieval
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -261,6 +261,10 @@ func UserLdapNewLoginCheck(username string, password string) (User, error) {
|
||||
matchFound := false
|
||||
|
||||
for _, group := range groupList {
|
||||
// Skip any groups that aren't LDAP groups
|
||||
if len(group.LdapDn) == 0 {
|
||||
continue
|
||||
}
|
||||
for _, lg := range ldapGroups {
|
||||
if group.LdapDn == lg {
|
||||
log.Printf("Found match with groupname '%s' and LDAP group DN '%s', user is a member of group ID '%d'\n", group.GroupName, group.LdapDn, group.GroupId)
|
||||
|
Reference in New Issue
Block a user