Fix warning message on ldap import
This commit is contained in:
parent
68513b775b
commit
a3ef53102d
|
@ -386,7 +386,7 @@ def extract_user_data_from_field(user, field):
|
||||||
if match:
|
if match:
|
||||||
return match.group(1)
|
return match.group(1)
|
||||||
else:
|
else:
|
||||||
raise Exception("Could Not Parse LDAP User: %s", user)
|
raise Exception("Could Not Parse LDAP User: {}".format(user))
|
||||||
|
|
||||||
# CN=Firstname LastName,OU=Laba,OU=...,DC=...,DC=...
|
# CN=Firstname LastName,OU=Laba,OU=...,DC=...,DC=...
|
||||||
# CN=user displayname,OU=ouname1,OU=ouname2,OU=ouname3,DC=domain,DC=domain
|
# CN=user displayname,OU=ouname1,OU=ouname2,OU=ouname3,DC=domain,DC=domain
|
||||||
|
@ -395,7 +395,7 @@ def extract_user_identifier(user, filter):
|
||||||
if match:
|
if match:
|
||||||
dynamic_field = match.group(1)
|
dynamic_field = match.group(1)
|
||||||
else:
|
else:
|
||||||
raise Exception("Could Not Parse LDAP User: %s", user)
|
raise Exception("Could Not Parse LDAP User: {}".format(user))
|
||||||
return extract_user_data_from_field(user, dynamic_field)
|
return extract_user_data_from_field(user, dynamic_field)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user