Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c.LDAPAuthenticator.bind_dn_template doesn't work on Active Directory #31

Closed
kamilszkoda opened this issue Jan 31, 2017 · 2 comments
Closed

Comments

@kamilszkoda
Copy link

Just an example:

My AD path is: OU=Laptop_Users,OU=exmple,OU=company,DC=company,DC=com
I have c.LDAPAuthenticator.user_attribute = 'sAMAccountName' insted of 'uid'

my CN it is for example "CN=Jon Smith" and attribute as login= "jons"
how should looks like my base_dn_template ?

none from below works properly:
bind_dn_template = 'uid={username},OU=Laptop_Users,OU=exmple,OU=company,DC=company,DC=com'
bind_dn_template = 'sAMAccountName={username},OU=Laptop_Users,OU=exmple,OU=company,DC=company,DC=com'

if CN == login them below example works properly:
bind_dn_template = 'CN={username},OU=Laptop_Users,OU=exmple,OU=company,DC=company,DC=com'

if CN =! login them I don't know to what bind_dn_template should be

Everything is fine as long as CN ==login
please help.

@mateuszboryn
Copy link
Contributor

This is solved with #32

@dhirschfeld
Copy link
Collaborator

Closing as resolved. This will be in the next release - #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants