aboutsummaryrefslogtreecommitdiff
path: root/signup
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2011-06-30 21:29:58 +0300
committerTheo Chatzimichos <tampakrap@gentoo.org>2011-06-30 21:29:58 +0300
commit6f3fdad110eb089e093e01fa4ff4748a4c6a8245 (patch)
treed5e2fb3efc0966b6e0b60c6decd730af716b1e58 /signup
parentFix small bug in user registration, the snippet produced an (diff)
downloadidentity.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.py8
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,