Don't use encoded bytes and its str representation as uid
(Refer redmine #7764)
This commit is contained in:
parent
2cbf146ebc
commit
42fb55dee1
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class LdapManager:
|
|||
logger.debug("{uid} does not exist. Using it".format(uid=uidNumber))
|
||||
self._set_max_uid(uidNumber)
|
||||
try:
|
||||
uid = user.encode("utf-8")
|
||||
uid = user
|
||||
conn.add("uid={uid},{customer_dn}".format(
|
||||
uid=uid, customer_dn=settings.LDAP_CUSTOMER_DN
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue