Skip to content

Commit 93dc91f

Browse files
committed
Merge PR #817 into 16.0
Signed-off-by pedrobaeza
2 parents f00af93 + 873eea4 commit 93dc91f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

users_ldap_populate/models/users_ldap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def action_populate(self):
6666
results = self._get_ldap_entry_dicts(conf)
6767
for result in results:
6868
login = result[1][login_attr][0].lower().strip()
69+
if isinstance(login, bytes):
70+
login = login.decode()
6971
user_id = None
7072
try:
7173
user_id = self.with_context(

0 commit comments

Comments
 (0)