From a36ce4070bd2d6f64487972290d692a8e8e7f802 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 27 May 2022 19:52:59 +0200 Subject: [PATCH] LdapClient.add_object: ignore 'dn' attribute if provided --- mylib/ldap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mylib/ldap.py b/mylib/ldap.py index 1b7daeb..74dd0e5 100644 --- a/mylib/ldap.py +++ b/mylib/ldap.py @@ -705,6 +705,7 @@ class LdapClient: attrs = dict( (attr, self.encode(values)) for attr, values in attrs.items() + if attr != 'dn' ) try: if self._just_try: