title: How NTLM works for webservice to authenticate users?
body: <p>I gone through some websites for better understanding of ntlm like <a href="http://www.innovation.ch/personal/ronald/ntlm.html" rel="noreferrer">http://www.innovation.ch/personal/ronald/ntlm.html</a>.
  And I started to create a demo which authenticate users in nodejs application using ntlm. In this demo I created application with <strong>expressjs</strong> and <strong>express-ntlm</strong> modules.
  But still I didn't understood that, how ntlm works with nodejs webservices?</p>
  
  <p>I am having some questions in my mind about ntlm authentication. </p>
  
  <ul>
  <li>How ntlm works for webservice?</li>
  <li>How can I customize login page while using ntlm? currently I am getting input box for login credentials. </li>
  <li>Which users can I use to authenticate? currently the application accepting anything as username and password. So I am not clear that which username and password it will use. </li>
  </ul>
  
  <p>Here is my code.</p>
  
  <pre><code>var app, express, ntlm;
  
  express = require('express');
  
  ntlm = require('express-ntlm');
  
  app = express();
  
  app.all('/', ntlm());
  
  app.get('/', function(request, response) {
    response.send(request.ntlm);
  });
  
  app.listen(3000);
  </code></pre>