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

django ldap automatic login #7

Open
youxit5 opened this issue Jun 22, 2017 · 4 comments
Open

django ldap automatic login #7

youxit5 opened this issue Jun 22, 2017 · 4 comments

Comments

@youxit5
Copy link

youxit5 commented Jun 22, 2017

Hi Alexis,

I am developing a web app within my company for my company's employees with Django. Our company has a Active Directory server. Let's say I have ldap backend set up with django-auth-ldap on my Django web app. Every time users go to my web app, they would need to enter their AD user name and password. Is there a way to automatically sign in the users after they log into their window PC?

Thank you

@morocarlo
Copy link

hi, have you find a way to solve this "problem"?

@zedingli
Copy link

No, Django official guide doesn't have enough information, either. I have been trying to find a solution but have not had time to get into it. Please let me if you find a solution. I am wondering if it needs a windows server to do this.

@morocarlo
Copy link

we are tring to use https://github.com/kvspb/nginx-auth-ldap
ngnix try to contact the ldap server and with a "magic" procedure the server append in the request the username.
Then in django with a middleware you can read this header and autheticate the user.

When we will finish to develop this part I'll publish the code

@eqx-fschottz
Copy link

Hey @morocarlo could you finish this?

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

4 participants