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

pull/254/head
Ludovic Marcotte 2019-05-23 15:02:10 -04:00
parent 29f5357a2c
commit f57ff86951
3 changed files with 8 additions and 1 deletions

1
NEWS
View File

@ -26,6 +26,7 @@ Bug fixes
- [core] consider DAVx5 like Apple Calendar (#4304)
- [core] improve handling of signer certificate (#4742)
- [core] added safety checks in S/MIME (#4745)
- [core] fixed domain placeholder issue when using sogo-tool (#4723)
4.0.7 (2019-02-27)
------------------

View File

@ -123,6 +123,8 @@ andMultipleBookingsField: (NSString *) newMultipleBookingsField;
- (void) applyContactMappingToResult: (NSMutableDictionary *) ldifRecord;
- (void) updateBaseDNFromLogin: (NSString *) theLogin;
@end
#endif /* LDAPSOURCE_H */

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