Skip to content
Snippets Groups Projects
Commit 512750e2 authored by Miguel Angel Valero Navarro's avatar Miguel Angel Valero Navarro
Browse files

search_filter = "(&(mail={})(|(cernAccountType=Primary)(cernAccountType=Service)))".format(email)

parent 4721a82d
Branches
Tags 1.0.19
1 merge request!1Developer
......@@ -96,7 +96,7 @@ class CernLdapClient:
def get_user_by_email(self, email, external=False):
dn_to_use = self.base_dn
search_filter = "(&(userPrincipalName={})(|(cernAccountType=Primary)(cernAccountType=Service)))".format(email)
search_filter = "(&(mail={})(|(cernAccountType=Primary)(cernAccountType=Service)))".format(email)
if external:
dn_to_use = self.base_dn_external
search_filter = "(mail={})".format(email)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment