diff options
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) |