summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--account.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/account.py b/account.py
index 51aabc2..bd5281a 100644
--- a/account.py
+++ b/account.py
@@ -194,9 +194,8 @@ class AccountService:
else:
self._bind_as_user(user, password)
- uid = self._escape(uid)
- dn = [self._format_dn([('uid',uid),('cn',s),('ou','services')]) for s.id in account.services]
- dn.append(user)
+ dn = [self._format_dn([('uid',user),('cn',s),('ou','services')]) for s.id in account.services]
+ dn.append(self._format_dn([('uid', user), ('ou','users')]))
for x in dn:
self.connection.delete_s(x)