Ask Your Question

How te set up ldap auth

asked 2015-02-05 09:34:52 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

Hello, I tried several solutions but no one helped me. I installed python-ldap module, and changed settings/LDAP_SETTINGS settings in the next way

LDAP protocol version  = version 3
LDAP URL = ldap://
LDAP encoding = utf-8
Base DN (distinguished name) = DC=example,DC=com
User search filter template = (%s=%s)
UserID/login field = sAMAccountName
"Common Name" = blank
"Common Name" field format = First name, Last name
Given (First) name = givenName
Surname (last) name = sn
LDAP Server EMAIL field name = mail

I also added to the :
LDAP_LOGIN_DN = 'askbot'
LDAP_PASSWORD = 'My_secure_password'

But ldap authentications is not working. I tryed to find "askbot.deps.django_authopenid.backends.ldap_authenticate" function to insert a break point, but I haven't found it.

Version of askbot = 0.7.50 Can someone show correct settings for ldap?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-18 03:32:27 -0600

miktil's avatar

LDAP_LOGIN_DN is a guess DomainName but i put ldap_username there
LDAP_USER your ldap_username
LDAP_PASSWORD your ldap_password

I think you are missing CN in BaseDN as the users are not in the root of domain so the line would be:
Base DN (distinguished name) = CN=users, DC=example,DC=com
Common Name = CN as its default i'm not sure if you have to fill this in

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-02-05 09:34:52 -0600

Seen: 423 times

Last updated: Feb 18 '15