Skip to content

Commit

Permalink
Fix encoding issues in AD backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kakwa committed Jul 6, 2016
1 parent 9edc7e5 commit caef6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldapcherry/backend/backendAD.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ def _set_password(self, cn, password):

ldap_client = self._bind()

dn = str('CN=%(cn)s,%(user_dn)s' % {
dn = self._str('CN=%(cn)s,%(user_dn)s' % {
'cn': cn,
'user_dn': self.userdn
})

attrs = {}

attrs['unicodePwd'] = str(password_value)
attrs['unicodePwd'] = self._str(password_value)

ldif = modlist.modifyModlist({'unicodePwd': 'tmp'}, attrs)
ldap_client.modify_s(dn, ldif)
Expand Down

0 comments on commit caef6a8

Please sign in to comment.