(fix) fixed domain placeholder issue when using sogo-tool (fixes #4723)

This commit is contained in:
Ludovic Marcotte committed 2019-05-23 15:02:10 -04:00
1 parent 29f5357a2c
commit f57ff86951
3 files changed
+8 -1

No files matched your search

+5 -1
View File
@@ -837,6 +837,10 @@ static Class NSNullK;
{
currentSource = [_sources objectForKey: sourceID];
// We update the placeholder in the LDAP source if needed
if ([currentSource conformsToProtocol: @protocol(SOGoDNSource)])
[currentSource updateBaseDNFromLogin: theUID];
// Use the provided domain during the lookup. If none is defined, use the source's one
// so if there's a match based on the source's domain, the user ID will be associated
// to the right source.
@@ -1078,7 +1082,7 @@ static Class NSNullK;
[self _retainUser: currentUser withLogin: cacheUid];
}
}
} // if (newUser)
}
}
else