From b08912c973db278acf07e454f3a62535739bb685 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 21 Aug 2008 19:19:11 +0000 Subject: [PATCH] Monotone-Parent: 4b3afa6bee722f77839bced287a525495c0fe2e0 Monotone-Revision: 1d2115449dd0c5ec3aadc44e3a50c1752f85c59c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-21T19:19:11 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/LDAPSource.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 0163c691f..899972d7e 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -29,9 +29,11 @@ #import #import -#import "LDAPSource.h" #import "LDAPUserManager.h" #import "NSArray+Utilities.h" +#import "NSString+Utilities.h" + +#import "LDAPSource.h" static NSArray *commonSearchFields; static int timeLimit; @@ -459,7 +461,7 @@ static int sizeLimit; ldapValue = [[ldapEntry attributeWithName: currentMatch] stringValueAtIndex: 0]; currentValue = [constraints objectForKey: currentMatch]; - if ([ldapValue isEqualToString: currentValue]) + if ([ldapValue caseInsensitiveMatches: currentValue]) currentMatch = [matches nextObject]; else result = NO;