+2007-07-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): set
+ acceptAnyUser to YES only when the SOGoAuthentificationMethod user
+ default is set to "bypass".
+
+ * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
+ -checkLogin:_loginpassword:_pwd]): accepts unverified connections
+ when authMethod is set to "bypass" from now on. This would avoid a
+ security concern with a default installation of SOGo.
+ AuthentificationMethod is now prefixed with "SOGo" for better
+ clarity.
+
2007-07-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions
if ((self = [super init]))
{
authMethod = [[NSUserDefaults standardUserDefaults]
- stringForKey: @"AuthentificationMethod"];
+ stringForKey: @"SOGoAuthentificationMethod"];
[authMethod retain];
}
accept = [um checkLogin: _login andPassword: _pwd];
}
else
- accept = ([_login length] > 0);
+ accept = ([authMethod isEqualToString: @"bypass"]
+ && [_login length] > 0);
return accept;
// || ([_login isEqualToString: @"freebusy"]
ASSIGN (superUsername, nsUsername);
}
- acceptAnyUser = (![ud stringForKey: @"AuthentificationMethod"]);
+ acceptAnyUser = ([[ud stringForKey: @"SOGoAuthentificationMethod"]
+ isEqualToString: @"bypass"]);
}
+ (SOGoUser *) userWithLogin: (NSString *) newLogin