From 6b25f08943032852466189cd98b3c956772f276b Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Tue, 18 Jun 2013 19:33:36 -0400 Subject: [PATCH] Use domainDefaults to get imapCASServiceName --- SoObjects/SOGo/SOGoWebAuthenticator.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoWebAuthenticator.m b/SoObjects/SOGo/SOGoWebAuthenticator.m index c60ac7732..923ee7d15 100644 --- a/SoObjects/SOGo/SOGoWebAuthenticator.m +++ b/SoObjects/SOGo/SOGoWebAuthenticator.m @@ -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