fix(users): try to always use the user domain in the basDN with %d

This commit is contained in:
Hivert Quentin
2025-01-22 16:16:47 +01:00
parent 29e00f3e9e
commit 78655ae127
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -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);
}