(fix) avoid appending the domain unconditionally when SOGoEnableDomainBasedUID is set to YES

This commit is contained in:
Ludovic Marcotte authored and Jesús García Sáez committed 2015-05-21 17:13:11 +02:00
1 parent e2ef0103c4
commit f4963df50f
3 files changed
+8 -4

No files matched your search

+2 -1
View File
@@ -427,7 +427,8 @@
{
currentUser = [users objectAtIndex: i];
field = [currentUser objectForKey: @"c_uid"];
if (enableDomainBasedUID)
if (enableDomainBasedUID &&
[field rangeOfString: @"@"].location == NSNotFound)
field = [NSString stringWithFormat: @"%@@%@", field, domain];
if (![field isEqualToString: login])
{