From 74729063ee1c22a0bf0f1a351b8f1a6bb8a26488 Mon Sep 17 00:00:00 2001 From: Marian Sigler Date: Wed, 26 Sep 2012 21:16:06 +0200 Subject: account: fix delete() --- account.py | 5 ++--- 1 file 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) -- cgit v1.2.3-1-g7c22