Monotone-Parent: 8d1d44754257c773dc6882bb69d2da203650f3cf

Monotone-Revision: 5a720314ac446bf86e127d6d6e938b844aab7441

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-01-12T23:22:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-01-12 23:22:04 +00:00
parent 57a57edbcd
commit 4c2a93e26c
2 changed files with 9 additions and 14 deletions
+4
View File
@@ -1,5 +1,9 @@
2007-01-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
-checkLogin:_loginpassword:_pwd]): authorize special "freebusy"
user with password "freebusy".
* SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject
-contentAsString]): the default timerange is now 14 days before
currentday and 1 month after.
+5 -14
View File
@@ -72,20 +72,11 @@ static SOGoAuthenticator *auth = nil;
- (BOOL) checkLogin: (NSString *) _login
password: (NSString *) _pwd
{
BOOL result;
// return YES;
if ([authMethod isEqualToString: @"LDAP"])
result = [self LDAPCheckLogin: _login password: _pwd];
else
{
if ([_login length] == 0)
result = NO;
else
result = YES;
}
return result;
return (([_login isEqualToString: @"freebusy"]
&& [_pwd isEqualToString: @"freebusy"])
|| ([authMethod isEqualToString: @"LDAP"]
&& [self LDAPCheckLogin: _login password: _pwd])
|| [_login length] > 0);
}
- (BOOL) LDAPCheckLogin: (NSString *) _login