Revert "Revert "(fix) more fixes and clarifications on the mutli-domain settings""

This reverts commit 3dd8bddc0e.
This commit is contained in:
Julio García
2015-06-26 09:35:47 +02:00
parent 3f1a43cc13
commit dc2cc14d25
3 changed files with 12 additions and 19 deletions
+3 -2
View File
@@ -165,8 +165,9 @@
// The domain is probably appended to the username;
// make sure it is defined as a domain in the configuration.
domain = [newLogin substringFromIndex: (r.location + r.length)];
if (![[sd domainIds] containsObject: domain])
domain = nil;
if ([[sd domainIds] containsObject: domain] &&
![sd enableDomainBasedUID])
newLogin = [newLogin substringToIndex: r.location];
if (domain != nil && ![sd enableDomainBasedUID])
// Login domains are enabled (SOGoLoginDomains) but not