From 04b8db28aff25ca39d4210df9e65b861cadaab4d Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 6 Jul 2009 21:25:38 +0000 Subject: [PATCH] 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 --- SoObjects/SOGo/LDAPSource.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 38cc961f3..a44bd7a4d 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -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