-
Notifications
You must be signed in to change notification settings - Fork 100
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
No error on bad credentials #87
Comments
You are apparently trying to use custom callbacks, see that on how the middleware needs to be called then. |
You are right. I've changed code to this:
But how to check if it user password is incorrect or bindDN credentials are incorrect? |
The strategy does not provide such info as this is more of a configuration error. It is sort of expected that admin credentials are provided correctly. You can pass a Bunyan logger instance to the underlying ldapauth-fork library and see the trace for bind errors, or try eg. with command line tool ldapsearch to see if your admin credentials are correct. |
@victornikitin Hi. I came across this issue just now. Did you come up with anything? |
No, we did not found any good solutions how to determine is this a user
credentials error or a connection error.
…On Sat, Mar 7, 2020 at 2:01 AM Matt ***@***.***> wrote:
@victornikitin <https://github.com/victornikitin> Hi. I came across this
issue just now. Did you come up with anything?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#87?email_source=notifications&email_token=ABWIPGE7FOJUHBCUBJSHA63RGF6F3A5CNFSM4HHEAX3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEODEB5Y#issuecomment-596001015>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWIPGFGOLUT32H4M5A4OY3RGF6F3ANCNFSM4HHEAX3A>
.
|
I'm having the same issue. No matter what I am getting "Unauthorized". I wrote a quick c# .net app using all the same settings and it works (queries). I know my code works because I've used it against another ldap server. Kind of hard to ask IT to fix something when you don't know what is wrong. Using wireshark to diagnose I see this using nodejs: But using .Net App I see much more activity: |
How to catch that bindDN or bindCredentials are incorrect?
I pass authenticate to express via router:
Even if I create strategy with
handleErrorsAsFailures
option,failureErrorCallback
does not trigger too.How to catch this situation?
Or what I'm doing wrong?
The text was updated successfully, but these errors were encountered: