Skip to content

Commit 71e6b9f

Browse files
Bug Fix
1 parent f3b0354 commit 71e6b9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/ldap.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ def fetch_users_of_group(group_name):
8080
paged_size=5)
8181
for user_set in user_data:
8282
data_set = user_set["attributes"]
83-
login = clean_attribute(data_set[configuration.LDAP_USER_LOGIN_ATTRIBUTE])
84-
name = clean_attribute(data_set[configuration.LDAP_USER_NAME_ATTRIBUTE])
85-
mail = clean_attribute(data_set[configuration.LDAP_USER_MAIL_ATTRIBUTE])
83+
login = data_set[configuration.LDAP_USER_LOGIN_ATTRIBUTE]
84+
name = data_set[configuration.LDAP_USER_NAME_ATTRIBUTE]
85+
mail = data_set[configuration.LDAP_USER_MAIL_ATTRIBUTE]
8686
if not login or not name:
8787
continue
8888
if not mail:
89-
mail = clean_attribute(data_set[configuration.LDAP_USER_LOGIN_ATTRIBUTE])
89+
mail = login
9090
result.append({
9191
"login": login,
9292
"name": name,

0 commit comments

Comments
 (0)