From ed0545ba6ca8df53c8268dd23cf277a41c659ca0 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Fri, 25 Sep 2009 15:21:01 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: e8cc028cde8aa18eb4abffeb03ecc1073cec1dfb Monotone-Revision: dce711f005c952cd07f83c7d04ee10abdf742a01 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-09-25T15:21:01 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ SoObjects/SOGo/LDAPSource.m | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4f3c6f7f0..321cf02ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,9 @@ coming from a SQL database. This can be used concurrently with LDAP sources. Modified many classes to reflect this change. + * SoObjects/SOGo/LDAPSource.m + We trim the bind field value prior to adding it to our + LDAP search filter. 2009-09-24 Cyril Robert diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 697b55d39..d96ce92e8 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -490,7 +490,7 @@ static NSLock *lock; bindFieldsEnum = [[bindFields componentsSeparatedByString: @","] objectEnumerator]; while ((currentField = [bindFieldsEnum nextObject])) - [qs appendFormat: @" OR (%@='%@')", currentField, escapedUid]; + [qs appendFormat: @" OR (%@='%@')", [currentField stringByTrimmingSpaces], escapedUid]; } if (_filter && [_filter length])