mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-15 19:55:56 +00:00
Monotone-Parent: 1aac0a8e6c7ea5d24479bcc2272829762708cb56
Monotone-Revision: 2a59bba0a73aaeebae8c13b21e4099f844924b1b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-15T14:39:11 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2010-06-15 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoDAVAuthenticator.m (-checkLogin:password:):
|
||||
perform authentication in LDAP inconditionnally and fallback on
|
||||
CAS if enabled for DAV.
|
||||
|
||||
2010-06-14 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/UIxPreferences.js: Fixed a bug when saving
|
||||
|
||||
@@ -57,27 +57,24 @@
|
||||
int expire, grace;
|
||||
BOOL rc;
|
||||
|
||||
sd = [SOGoSystemDefaults sharedSystemDefaults];
|
||||
if ([[sd davAuthenticationType] isEqualToString: @"cas"])
|
||||
perr = PolicyNoError;
|
||||
rc = ([[SOGoUserManager sharedUserManager] checkLogin: _login
|
||||
password: _pwd
|
||||
perr: &perr
|
||||
expire: &expire
|
||||
grace: &grace]
|
||||
&& perr == PolicyNoError);
|
||||
if (!rc)
|
||||
{
|
||||
/* CAS authentication for DAV requires using a proxy */
|
||||
session = [SOGoCASSession CASSessionWithIdentifier: _pwd
|
||||
fromProxy: YES];
|
||||
if (session)
|
||||
rc = [[session login] isEqualToString: _login];
|
||||
else
|
||||
rc = NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
perr = PolicyNoError;
|
||||
|
||||
rc = ([[SOGoUserManager sharedUserManager] checkLogin: _login
|
||||
password: _pwd
|
||||
perr: &perr
|
||||
expire: &expire
|
||||
grace: &grace]
|
||||
&& perr == PolicyNoError);
|
||||
sd = [SOGoSystemDefaults sharedSystemDefaults];
|
||||
if ([[sd davAuthenticationType] isEqualToString: @"cas"])
|
||||
{
|
||||
/* CAS authentication for DAV requires using a proxy */
|
||||
session = [SOGoCASSession CASSessionWithIdentifier: _pwd
|
||||
fromProxy: YES];
|
||||
if (session)
|
||||
rc = [[session login] isEqualToString: _login];
|
||||
}
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user