How does NTLM work for webservice to authenticate users?

I looked at some websites to better understand ntlm, like http://www.innovation.ch/personal/ronald/ntlm.html . And I started creating a demo that authenticates users in a nodejs application using ntlm. In this demo, I created an application with expressjs and express-ntlm modules . But still I didn’t understand how ntlm works with webservices nodejs?

I am having some questions related to ntlm authentication.

  • How does ntlm work for webservice?
  • How to set up login page while using ntlm? I am currently getting an input field for login credentials.
  • What users can use for authentication? currently the application accepts anything like a username and password. Therefore, I do not understand what username and password he will use.

Here is my 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);
+4
source share
2 answers

There is a Passport.js authentication strategy that supports NTLM authentication and has a way to allow a custom login screen. How to configure it will depend on what type of server you are using, but they are well versed in the concepts in their examples.

See Non-Integrated Authentication

https://www.npmjs.org/package/passport-windowsauth

+5

, . josh3736, NTLM.

, , , .js . http://passportjs.org/guide/

+2

All Articles