nickw444 / flask-ldap3-login

LDAP3 Logins for Flask/Flask-Login

Home Page:http://flask-ldap3-login.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only cn attribute is working

Litchfield-TWOSE opened this issue · comments

I'm recording this as an issue as I do not know where else to turn.

For context, I'm coding this against a Windows 2012 R2 Active Directory server. I am also using the sample application to get it working, before implementing it into my application.

I have this working as long as I set LDAP_USER_RDN_ATTR and LDAP_USER_LOGIN_ATTR to 'cn'. If I set it to 'sAMAccountName', then I only ever get 'Invalid Username/Password.

Any suggestions or recommendations on how I can get this code to recognize anything else other than the 'cn' attribute in AD?

Thank you in advance!!

I figured out the issue, and it was a coding mistake on my side. I will close this

This could be an indication that our documentation is incomplete or unclear. Can you share with us what went wrong and how you fixed it? If you identified a problem with the docs, feel free to point that out, too.