Hello everyone, I am trying to get the 
http://packages.python.org/django-auth-ldap
to work, but I am having trouble.
If someone can give me any ideas, thanks.
What is the user i am supposed to use when I log on because I am
always getting authentication failed in my environment.
Am i supposed to logging with u...@domain.com or with user id only?

Any help would be apprreciated here is a link of my settings.py

AUTH_LDAP_BIND_DN = "cn=scotty,dc=scottdomain,dc=com"
AUTH_LDAP_BIND_PASSWORD = "password"

AUTH_LDAP_SERVER_URI = "ldap://server5.scottalvarino.com";
AUTH_LDAP_USER_SEARCH =
LDAPSearch("OU=Employees,OU=Users,OU=IT,OU=General,OU=Enterprise,DC=scottdomain,DC=com",
    ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
AUTH_LDAP_USER_ATTR_MAP = {
    "first_name": "givenName",
   "last_name": "sn",
    "email": "mail"
}
AUTHENTICATION_BACKENDS = (
                           'django_auth_ldap.backend.LDAPBackend',
 
'django.contrib.auth.backends.ModelBackend',)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to