Special case for auth with SOGoStaticAuthenticator
parent
2fe87f14fd
commit
e946a67ddf
|
@ -35,6 +35,7 @@
|
||||||
#import "NSString+Utilities.h"
|
#import "NSString+Utilities.h"
|
||||||
#import "SOGoAuthenticator.h"
|
#import "SOGoAuthenticator.h"
|
||||||
#import "SOGoDomainDefaults.h"
|
#import "SOGoDomainDefaults.h"
|
||||||
|
#import "SOGoStaticAuthenticator.h"
|
||||||
#import "SOGoSystemDefaults.h"
|
#import "SOGoSystemDefaults.h"
|
||||||
#import "SOGoUser.h"
|
#import "SOGoUser.h"
|
||||||
#import "SOGoUserManager.h"
|
#import "SOGoUserManager.h"
|
||||||
|
@ -153,9 +154,13 @@
|
||||||
[client connectToAddress: addr];
|
[client connectToAddress: addr];
|
||||||
if ([authenticationType isEqualToString: @"plain"])
|
if ([authenticationType isEqualToString: @"plain"])
|
||||||
{
|
{
|
||||||
login = [[SOGoUserManager sharedUserManager]
|
/* XXX Allow static credentials by peeking at the classname */
|
||||||
getExternalLoginForUID: [[authenticator userInContext: woContext] loginInDomain]
|
if ([authenticator isKindOfClass: [SOGoStaticAuthenticator class]])
|
||||||
inDomain: [[authenticator userInContext: woContext] domain]];
|
login = [(SOGoStaticAuthenticator *)authenticator username];
|
||||||
|
else
|
||||||
|
login = [[SOGoUserManager sharedUserManager]
|
||||||
|
getExternalLoginForUID: [[authenticator userInContext: woContext] loginInDomain]
|
||||||
|
inDomain: [[authenticator userInContext: woContext] domain]];
|
||||||
|
|
||||||
password = [authenticator passwordInContext: woContext];
|
password = [authenticator passwordInContext: woContext];
|
||||||
if ([login length] == 0
|
if ([login length] == 0
|
||||||
|
|
Loading…
Reference in New Issue