From 678d20c8308fe00d84ff15c9ce8f04bdb96b53b5 Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Tue, 25 Sep 2012 11:31:20 +0200 Subject: fixed password bug for register() --- account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index f00efed..15e8539 100644 --- a/account.py +++ b/account.py @@ -131,12 +131,12 @@ class AccountService: dn = 'uid=%s,ou=users,%s' % (account.uid, self.base_dn) attr = [ ('objectClass', ['top','inetOrgPerson']), ('uid', account.uid), - ('sn', ' '), ('cn', ' '), ('mail', account.mail), - ('userPassword', account.password) + ('sn', ' '), ('cn', ' '), ('mail', account.mail) ] self.connection.add_s(dn, attr) account.dn = dn + account.new_password_root = (None,account.password) self._alter_passwords(account) self._unbind() -- cgit v1.2.3-1-g7c22