mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-09 10:25:08 +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:
@@ -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