title: Check if Windows Username and Password is correct in NodeJs
body: <p>I have a NodeJs application with certain parameters. Some of them are a Username and a Password.</p>
  
  <p>I am trying to figure out whether there is a way I can check if the Password provided for the given UserName is the right one according to Active Directory.</p>
  
  <p>On my C# application, I can do something like this</p>
  
  <pre><code>bool isValid = pc.ValidateCredentials(UserName, Password, ContextOptions.Negotiate);
  </code></pre>
  
  <p>but... how to do something similar in NodeJs?</p>
  
  <p><strong>EDIT</strong>:
  In other words, I am trying to figure out given a UserName and Password that are part of a Windows domain, check whether the password is correct.</p>
  
  <p>Example:
  <strong>UserName</strong>: user@domain.com
  <strong>PassWord</strong>: password123!</p>
  
  <p>I am wondering how to validate windows domain credentials using NodeJS</p>