From d0fcb9c6c5bb4bca017d9b023acc5e95594681a2 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 29 Aug 2019 12:35:25 +0200 Subject: [PATCH] Fix ldap.managed errors Regression from 05e55bd (#48666): - AttributeError: 'tuple' object has no attribute 'encode' - ValueError: too many values to unpack Fixes: #52022. --- salt/modules/ldap3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/ldap3.py b/salt/modules/ldap3.py index 30452f55e7b0..b2c00d11e12a 100644 --- a/salt/modules/ldap3.py +++ b/salt/modules/ldap3.py @@ -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: