fix user ldap creation from bytes to string

This commit is contained in:
wcolmenares 2019-05-02 21:24:54 -04:00
parent 86a082c29f
commit 503e31cc69

View file

@ -91,7 +91,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 # user.encode("utf-8")
conn.add("uid={uid},{customer_dn}".format(
uid=uid, customer_dn=settings.LDAP_CUSTOMER_DN
),