mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 10:55:25 +00:00
fix(core): don't bind a DN to LDAP sources with a different search base
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user