I just configured up to use the django-auth-ldap module and its not
working. ( well something's not)
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
Django version 1.3.1
python-django-auth-ldap 1.0.5-1
python-ldap-2.3.11-1ubuntu2
Talking to a Active Directory server that I dont administer ( so I may
need to get a bit more details there)
-------------------------- my run -------------------
$ ./manage.py runserver
0.0.0.0:8000
Validating models...
0 errors found
Django version 1.3.1, using settings
'logging_auth_prototype2.settings'
Development server is running at
http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Initiating TLS
Initiating TLS
Caught LDAPError while authenticating jds: CONNECT_ERROR({'info':
'(unknown error code)', 'desc': 'Connect error'},)
Caught LDAPError while authenticating jds: CONNECT_ERROR({'info':
'(unknown error code)', 'desc': 'Connect error'},)
[08/Oct/2011 22:17:04] "POST /admin/ HTTP/1.1" 200 2162
----------------------------------------------------------------
My Config
-----------------------------------------------------------
AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',
'django.contrib.auth.backends.ModelBackend',
)
AUTH_LDAP_SERVER_URI = "ldap://
servername.company.com"
#AUTH_LDAP_USER_DN_TEMPLATE = "uid=%
(user)s,cn=users,dc=company,dc=com"
AUTH_LDAP_START_TLS = True
AUTH_LDAP_GLOBAL_OPTIONS = {
ldap.OPT_REFERRALS: 0,
}
-----------------------------------------------------------
Thoughts..? ( note: I wrote a stand alone program that used python-
ldap
and got a host of other issues going on, which is where I found the
OPT_REFERRALS option from.
Thanks,
Jeff Sheffield