(fix) Session fix when SOGoEnableDomainBasedUID is enabled but logins are domain-less

This commit is contained in:
Ludovic Marcotte
2015-08-21 10:30:47 -04:00
parent 525d1ad80f
commit b80d8dbb06
3 changed files with 12 additions and 7 deletions
+4 -1
View File
@@ -778,7 +778,10 @@ static Class NSNullK;
NSRange r;
r = [theUID rangeOfString: [NSString stringWithFormat: @"@%@", theDomain]];
theUID = [theUID substringToIndex: r.location];
// We check if the range is ok here since we could be using DomainLessLogin
if (r.location != NSNotFound)
theUID = [theUID substringToIndex: r.location];
}
sogoSources = [[self authenticationSourceIDsInDomain: theDomain] objectEnumerator];