mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
Monotone-Parent: 3b6167a285693c223c66e79510a47baee8f6a2c9
Monotone-Revision: 051d8ace5da3411559f163252040cc091ab7fb99 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-29T16:01:11 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2007-08-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/LDAPSource.m ([LDAPSource
|
||||
-checkLogin:loginToCheckandPassword:passwordToCheck]): initialize
|
||||
didBind to NO to make sure no false authentication is returned if
|
||||
the bind operation is not executed.
|
||||
|
||||
2007-08-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoDraftObject.m: added support for the
|
||||
|
||||
@@ -272,6 +272,8 @@ static int sizeLimit;
|
||||
NSString *userDN;
|
||||
NGLdapConnection *bindConnection;
|
||||
|
||||
didBind = NO;
|
||||
|
||||
if ([loginToCheck length] > 0)
|
||||
{
|
||||
bindConnection = [[NGLdapConnection alloc] initWithHostName: hostname
|
||||
@@ -290,13 +292,10 @@ static int sizeLimit;
|
||||
binddn: userDN
|
||||
credentials: passwordToCheck];
|
||||
NS_HANDLER
|
||||
didBind = NO;
|
||||
NS_ENDHANDLER
|
||||
}
|
||||
[bindConnection release];
|
||||
}
|
||||
else
|
||||
didBind = NO;
|
||||
|
||||
return didBind;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user