mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-04 14:46:24 +00:00
Also consider the "mail" attribute in order to get the user's login
This commit is contained in:
@@ -43,6 +43,8 @@
|
||||
#import "SOGoCache.h"
|
||||
#import "SOGoSAML2Exceptions.h"
|
||||
#import "SOGoSystemDefaults.h"
|
||||
#import "SOGoUserManager.h"
|
||||
|
||||
|
||||
#import "SOGoSAML2Session.h"
|
||||
|
||||
@@ -246,6 +248,13 @@ LassoServerInContext (WOContext *context)
|
||||
login = [NSString stringWithUTF8String: textNode->content];
|
||||
[login retain];
|
||||
}
|
||||
else if (strcmp (attribute->Name, "mail") == 0)
|
||||
{
|
||||
value = LASSO_SAML2_ATTRIBUTE_VALUE (attribute->AttributeValue->data);
|
||||
textNode = value->any->data;
|
||||
login = [[SOGoUserManager sharedUserManager] getUIDForEmail: [NSString stringWithUTF8String: textNode->content]];
|
||||
[login retain];
|
||||
}
|
||||
else
|
||||
attributeList = attributeList->next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user