diff --git a/moulinette/authenticators/ldap.py b/moulinette/authenticators/ldap.py index 7a9236e8..e23ca3e2 100644 --- a/moulinette/authenticators/ldap.py +++ b/moulinette/authenticators/ldap.py @@ -241,7 +241,8 @@ class Authenticator(BaseAuthenticator): try: if new_rdn: self.con.rename_s(dn, new_rdn) - dn = new_rdn + "," + self.basedn + new_base = dn.split(",", 1)[1] + dn = new_rdn + "," + new_base self.con.modify_ext_s(dn, ldif) except Exception as e: