-
Notifications
You must be signed in to change notification settings - Fork 50
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
"Non-integrated authentication" example / integration not working #52
Comments
This works for me:
|
As it is working for you, there seems to be a different implementation for accessing the AD than for example "activedirectory" is using, which is working for me. Which library is passport-windowsauth using for accessing the AD? |
Just one thing worth trying @Mika83AC - try removing the |
Hm... makes no difference for me. The AD request runs forever, no timeout, no error, the callback of As |
LDAP use distinguishedName for authentication. The BindDN must be distinguisedName. @cjmyles maybe this example works because the server allow anonymous authentication. I've been several days trying to understand how LDAP works for auth and i did not find a way to direct authetication with sAMAccountName. There is way if you find the distinguisedName with a search but you need to authenticate first with a Service Account (an account that you create to read values). So you need to auth 2 times, first with service account, find the DN, then auth with this DN and passowrd. |
Hello everyone,
I'm trying to get the non-integrated authentication example to work, but I'm still failing.
So i tried some different approaches and found https://www.npmjs.com/package/activedirectory which is working fine for me. Here is the relevant snippet from my activedirectory implementation:
This works fine and the username_login user gets authenticated.
Now I'm trying the "same" with passport-windowsauth and I'm failing. There returns no error, but also nothing else ever happens. The app gets lost in the
passport.use
andfunction(profile, done)
never gets called:Where is my mistake, I'm stuck figuring it out on my own ...
Regards,
Michael
The text was updated successfully, but these errors were encountered: