fix(core): don't bind a DN to LDAP sources with a different search base
parent
ac2853cfcf
commit
e0b6e22fa2
|
@ -586,7 +586,7 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
|||
_IDField, [_login escapedForLDAPDN], _baseDN];
|
||||
}
|
||||
|
||||
if (userDN)
|
||||
if (userDN && [[userDN lowercaseString] hasSuffix: [_baseDN lowercaseString]])
|
||||
{
|
||||
if (!_passwordPolicy)
|
||||
didBind = [bindConnection bindWithMethod: @"simple"
|
||||
|
|
Loading…
Reference in New Issue