javascript - Check if Windows Username and Password is correct in NodeJs -
i have nodejs application parameters. of them username , password.
i trying figure out whether there way can check if password provided given username right 1 according active directory.
on c# application, can this
bool isvalid = pc.validatecredentials(username, password, contextoptions.negotiate); but... how similar in nodejs?
edit: in other words, trying figure out given username , password part of windows domain, check whether password correct.
example: username: user@domain.com password: password123!
i wondering how validate windows domain credentials using nodejs
you need active directory lib can use in nodejs.
a few samples include:
node-sspiherepassport-windowsauthhereldapjshere an example of integrationldaphere
basically, through ldap (packages of ldap on npm) check if able make simple bind active directory, , therefore if credentials working.
Comments
Post a Comment