From 47aeb8f7dde39b934c0450147ae197b7ca919312 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 16 Mar 2009 18:26:08 +0000 Subject: [PATCH] Monotone-Parent: 0a9ebb81d46a0321c166273fb763ad39c233cc50 Monotone-Revision: f735bdc8793af33775f3d62a37f21c20a54806c9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-16T18:26:08 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ SoObjects/SOGo/LDAPSource.m | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 89689825a..b8f911012 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-03-16 Wolfgang Sourdeau + + * SoObjects/SOGo/LDAPSource.m ([LDAPSource + -setBaseDN:newBaseDNIDField:newIDFieldCNField:newCNFieldUIDField:newUIDFieldmailFields:newMailFieldsandBindFields:newBindFields]): + bug setting the CN and UID field only if they were set before, + rather than checking their value passed as parameter. + 2009-03-13 Ludovic Marcotte * Optimized the IMAP client code to avoid diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 173f26829..97c185c79 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -233,9 +233,9 @@ static NSLock *lock; ASSIGN (baseDN, newBaseDN); if (newIDField) ASSIGN (IDField, newIDField); - if (CNField) + if (newCNField) ASSIGN (CNField, newCNField); - if (UIDField) + if (newUIDField) ASSIGN (UIDField, newUIDField); if (newMailFields) ASSIGN (mailFields, newMailFields);