mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-22 15:13:18 +00:00
fix(users): try to always use the user domain in the basDN with %d
This commit is contained in:
@@ -1437,9 +1437,9 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
||||
|
||||
if(theDomain != nil && [theDomain length] > 0)
|
||||
{
|
||||
if ([_baseDN rangeOfString: @"%d"].location != NSNotFound)
|
||||
if ([_pristineBaseDN rangeOfString: @"%d"].location != NSNotFound)
|
||||
{
|
||||
s = [NSMutableString stringWithString: _baseDN];
|
||||
s = [NSMutableString stringWithString: _pristineBaseDN];
|
||||
[s replaceOccurrencesOfString: @"%d" withString: theDomain options: 0 range: NSMakeRange(0, [s length])];
|
||||
ASSIGN(_baseDN, s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user