Skip to content

Commit

Permalink
Fix ldap.managed errors
Browse files Browse the repository at this point in the history
Regression from 05e55bd (#48666):
- AttributeError: 'tuple' object has no attribute 'encode'
- ValueError: too many values to unpack

Fixes: #52022.
  • Loading branch information
sathieu committed Dec 21, 2019
1 parent a419182 commit d0fcb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/ldap3.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def add(connect_spec, dn, attributes):
if 'unicodePwd' in attributes:
attributes['unicodePwd'] = [_format_unicode_password(x) for x in attributes['unicodePwd']]

modlist = ldap.modlist.addModlist(attributes),
modlist = ldap.modlist.addModlist(attributes)
try:
l.c.add_s(dn, modlist)
except ldap.LDAPError as e:
Expand Down

0 comments on commit d0fcb9c

Please sign in to comment.