comparison rhodecode/lib/auth.py @ 2000:72c525a7e7ad beta

added migrations from 1.2.X to 1.3
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 19 Feb 2012 17:41:07 +0200
parents 4d3179d2adfe
children 7e979933ffec
comparison
equal deleted inserted replaced
1999:6b474c01ba98 2000:72c525a7e7ad
224 user_attrs = { 224 user_attrs = {
225 'name': safe_unicode(get_ldap_attr('ldap_attr_firstname')), 225 'name': safe_unicode(get_ldap_attr('ldap_attr_firstname')),
226 'lastname': safe_unicode(get_ldap_attr('ldap_attr_lastname')), 226 'lastname': safe_unicode(get_ldap_attr('ldap_attr_lastname')),
227 'email': get_ldap_attr('ldap_attr_email'), 227 'email': get_ldap_attr('ldap_attr_email'),
228 } 228 }
229 229
230 # don't store LDAP password since we don't need it. Override 230 # don't store LDAP password since we don't need it. Override
231 # with some random generated password 231 # with some random generated password
232 _password = PasswordGenerator().gen_password(length=8) 232 _password = PasswordGenerator().gen_password(length=8)
233 # create this user on the fly if it doesn't exist in rhodecode 233 # create this user on the fly if it doesn't exist in rhodecode
234 # database 234 # database
235 if user_model.create_ldap(username, _password, user_dn, 235 if user_model.create_ldap(username, _password, user_dn,