summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-09-25 11:31:20 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-09-25 11:31:20 +0200
commit678d20c8308fe00d84ff15c9ce8f04bdb96b53b5 (patch)
tree5998caa825158c3b02929f2c78518240740e8c82
parentfdea40221fbe6864e8fa083902306207006a56b8 (diff)
downloadweb-678d20c8308fe00d84ff15c9ce8f04bdb96b53b5.tar.gz
web-678d20c8308fe00d84ff15c9ce8f04bdb96b53b5.tar.bz2
web-678d20c8308fe00d84ff15c9ce8f04bdb96b53b5.zip
fixed password bug for register()
-rw-r--r--account.py4
1 files 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()