diff options
author | Marian Sigler <m@qjym.de> | 2012-09-26 21:16:06 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-26 21:16:06 +0200 |
commit | 74729063ee1c22a0bf0f1a351b8f1a6bb8a26488 (patch) | |
tree | 987850f8862d86e636e343d64ee3bffcf7b0caed /account.py | |
parent | 81df01b9301b3a635b5db0d5e98c8ccafbebe2c3 (diff) | |
download | web-74729063ee1c22a0bf0f1a351b8f1a6bb8a26488.tar.gz web-74729063ee1c22a0bf0f1a351b8f1a6bb8a26488.tar.bz2 web-74729063ee1c22a0bf0f1a351b8f1a6bb8a26488.zip |
account: fix delete()
Diffstat (limited to 'account.py')
-rw-r--r-- | account.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |