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:

basically, through ldap (packages of ldap on npm) check if able make simple bind active directory, , therefore if credentials working.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -