Use domainDefaults to get imapCASServiceName

pull/12/head
Jean Raby 2013-06-18 19:33:36 -04:00
parent a0022e06f7
commit 6b25f08943
1 changed files with 4 additions and 1 deletions

View File

@ -279,12 +279,15 @@
if ([authType isEqualToString: @"cas"])
{
SOGoCASSession *session;
SOGoUser *user;
NSString *service, *scheme;
session = [SOGoCASSession CASSessionWithIdentifier: password
fromProxy: NO];
service = [sd imapCASServiceName]; // try configured service first
user = [self userInContext: context];
// Try configured CAS service name first
service = [[user domainDefaults] imapCASServiceName];
if (!service)
{
// We must NOT assume the scheme exists