summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-09-26 21:16:06 +0200
committerMarian Sigler <m@qjym.de>2012-09-26 21:16:06 +0200
commit74729063ee1c22a0bf0f1a351b8f1a6bb8a26488 (patch)
tree987850f8862d86e636e343d64ee3bffcf7b0caed
parent81df01b9301b3a635b5db0d5e98c8ccafbebe2c3 (diff)
downloadweb-74729063ee1c22a0bf0f1a351b8f1a6bb8a26488.tar.gz
web-74729063ee1c22a0bf0f1a351b8f1a6bb8a26488.tar.bz2
web-74729063ee1c22a0bf0f1a351b8f1a6bb8a26488.zip
account: fix delete()
-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)