From a0039a40f271ceef3d0d6faebe8c7312569fafa1 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 27 Jan 2011 16:01:24 +0000 Subject: [PATCH] See ChangeLog. Monotone-Parent: d44813d7233d6d5cad1ae38fa520e06886d97b83 Monotone-Revision: 67ceb1cbca26597fa55e31fb97e198f72e72f1df Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-01-27T16:01:24 Monotone-Branch: ca.inverse.sogo Monotone-Tag: SOGo_v1.3.5a --- ChangeLog | 4 ++++ SoObjects/SOGo/LDAPSource.m | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a31110bb8..3b347a659 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-01-27 Francis Lachapelle + * SoObjects/SOGo/LDAPSource.m + (-checkLogin:password:perr:expire:grace:): the caching of the DN + is now performed only if the DN was found. + * SoObjects/Mailer/SOGoDraftObject.m (-save): we no longer use the relative URL of the draft folder when it must be created. This fixes an issue when using a subfolder as the drafts folder. diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index fe8631d14..12daf3c56 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -489,11 +489,11 @@ static NSArray *commonSearchFields; IDField, _login, baseDN]; } - // We cache the _login <-> userDN entry to speed up things - [_dnCache setObject: userDN forKey: _login]; - if (userDN) { + // We cache the _login <-> userDN entry to speed up things + [_dnCache setObject: userDN forKey: _login]; + NS_DURING if (!passwordPolicy) didBind = [bindConnection bindWithMethod: @"simple"