diff --git a/ldapcherry/backend/backendLdap.py b/ldapcherry/backend/backendLdap.py index 8819e8a..a68cb7b 100644 --- a/ldapcherry/backend/backendLdap.py +++ b/ldapcherry/backend/backendLdap.py @@ -311,6 +311,9 @@ class Backend(ldapcherry.backend.Backend): dn, ldap.dn.dn2str([[(battr, bcontent, 1)]]) ) + dn = ldap.dn.dn2str( + [[(battr, bcontent, 1)]] + ldap.dn.str2dn(dn)[1:] + ) else: if attr in old_attrs: if type(old_attrs[attr]) is list: