diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-25 11:31:20 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-25 11:31:20 +0200 |
commit | 678d20c8308fe00d84ff15c9ce8f04bdb96b53b5 (patch) | |
tree | 5998caa825158c3b02929f2c78518240740e8c82 | |
parent | fdea40221fbe6864e8fa083902306207006a56b8 (diff) | |
download | web-678d20c8308fe00d84ff15c9ce8f04bdb96b53b5.tar.gz web-678d20c8308fe00d84ff15c9ce8f04bdb96b53b5.tar.bz2 web-678d20c8308fe00d84ff15c9ce8f04bdb96b53b5.zip |
fixed password bug for register()
-rw-r--r-- | account.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |