diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2011-06-30 21:29:58 +0300 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2011-06-30 21:29:58 +0300 |
commit | 6f3fdad110eb089e093e01fa4ff4748a4c6a8245 (patch) | |
tree | d5e2fb3efc0966b6e0b60c6decd730af716b1e58 /signup | |
parent | Fix small bug in user registration, the snippet produced an (diff) | |
download | identity.gentoo.org-6f3fdad110eb089e093e01fa4ff4748a4c6a8245.tar.gz identity.gentoo.org-6f3fdad110eb089e093e01fa4ff4748a4c6a8245.tar.bz2 identity.gentoo.org-6f3fdad110eb089e093e01fa4ff4748a4c6a8245.zip |
New function, ldap_admin_user_bind
Diffstat (limited to 'signup')
-rw-r--r-- | signup/views.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/signup/views.py b/signup/views.py index 6c2c2b2..ebb86fe 100644 --- a/signup/views.py +++ b/signup/views.py @@ -51,13 +51,7 @@ def addDataToLDAP(request, credentials, empty = True): ''' Need to bind with the admin user to create new accounts ''' - ldap_admin_user_username = settings.LDAP_ADMIN_USER_DN.split('=')[1].split(',')[0] - ldap_admin_user_attr = settings.LDAP_ADMIN_USER_DN.split('=')[0] - ldap_admin_user_base_dn = ','.join(settings.LDAP_ADMIN_USER_DN.split(',')[1:]) - l = ldap_bind(ldap_admin_user_username, - settings.LDAP_ADMIN_USER_PW, - ldap_admin_user_attr, - ldap_admin_user_base_dn) + l = ldap_admin_user_bind() if empty: ''' LDAP server is empty, before adding the new user, |