jlguenego / node-expose-sspi

Expose Microsoft Windows SSPI to Node for SSO authentication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Correct authentication fails after bad authentication

bruceceng opened this issue · comments

I am testing both the client and server feature along with the setCredentials function to test logins with good and bad credentials. If I have good credentials it works as expected. If I have bad credentials, it fails as expected. But if I put in good credentials after bad credentials I get adding to input a serverContextHandle (not first exchange) right after the NTLM_NEGOTIATE_01 and then it hangs.

It seems to me that it isn't re-initializing properly after submitting bad credentials.

Note: I have set useCookies: false and useGroups: false

I am going to investigate.

Yes it is a good one... (I feel a little bit stupid on this one, the resource are not correctly released...).

please test with node-expose-sspi@0.1.37