See ChangeLog

Monotone-Parent: b60a07f4bcb416be85fafcd1299d398c09b58190
Monotone-Revision: b836806e761968a4845035ee408cce501a3f9fc5

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-07-19T01:21:18
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2011-07-19 01:21:18 +00:00
parent 49d0043a2e
commit 26126b8959
10 changed files with 68 additions and 43 deletions
+8 -5
View File
@@ -125,7 +125,7 @@
/**
* Return a new instance for the login name, which can be appended by a
* domain name. The domain is extracted only if the system defaults
* SOGoAddDomainToUID is enabled.
* SOGoEnableDomainWithUID is enabled.
*
* @param newLogin a login name optionally follow by @domain
* @param newRoles
@@ -139,6 +139,7 @@
{
SOGoUserManager *um;
SOGoSystemDefaults *sd;
NSDictionary *contactInfos;
NSString *realUID, *uid, *domain;
NSRange r;
@@ -154,7 +155,7 @@
else
{
sd = [SOGoSystemDefaults sharedSystemDefaults];
if ([sd addDomainToUID])
if ([sd enableDomainWithUID])
{
r = [newLogin rangeOfString: @"@" options: NSBackwardsSearch];
if (r.location != NSNotFound)
@@ -176,9 +177,11 @@
else
{
um = [SOGoUserManager sharedUserManager];
realUID = [[um contactInfosForUserWithUIDorEmail: newLogin
inDomain: domain]
objectForKey: @"c_uid"];
contactInfos = [um contactInfosForUserWithUIDorEmail: newLogin
inDomain: domain];
realUID = [contactInfos objectForKey: @"c_uid"];
if (domain == nil && [sd enableDomainWithUID])
domain = [contactInfos objectForKey: @"c_domain"];
}
if (domain)