Fix for Active Directory

Monotone-Parent: 1acc761bfb4e7e0ca47d3e5da4145d1260b8aa14
Monotone-Revision: 78fd761742452f5402b3434f8cd5f7b6d271e416

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-07-06T21:25:38
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-07-06 21:25:38 +00:00
parent abfc4d773b
commit 04b8db28af
+4 -3
View File
@@ -253,7 +253,7 @@ static NSLock *lock;
IMAPHostField: (NSString *) newIMAPHostField
andBindFields: (NSString *) newBindFields
{
ASSIGN (baseDN, newBaseDN);
ASSIGN (baseDN, [newBaseDN lowercaseString]);
if (newIDField)
ASSIGN (IDField, newIDField);
if (newCNField)
@@ -491,7 +491,7 @@ static NSLock *lock;
return [EOQualifier qualifierWithQualifierFormat: qs];
}
- (NSArray *) _contraintsFields
- (NSArray *) _constraintsFields
{
NSMutableArray *fields;
NSEnumerator *values;
@@ -514,12 +514,13 @@ static NSLock *lock;
ud = [NSUserDefaults standardUserDefaults];
searchAttributes = [NSMutableArray new];
[searchAttributes addObject: @"objectClass"];
if (CNField)
[searchAttributes addObject: CNField];
if (UIDField)
[searchAttributes addObject: UIDField];
[searchAttributes addObjectsFromArray: mailFields];
[searchAttributes addObjectsFromArray: [self _contraintsFields]];
[searchAttributes addObjectsFromArray: [self _constraintsFields]];
[searchAttributes addObjectsFromArray: commonSearchFields];
// Add SOGoLDAPContactInfoAttribute from user defaults