I am trying to implement username and password auth with Express-ntlm.I have added below code as middleware
app.use( ntlm({
domain: '<domainname>',
domaincontroller: '<ldap url>',
}));
I am not providing any user name password in the request and its automatically adding ntlm header in the request with my loggedin user details. I am getting {Authenticated:true}
along with my username and system name in request.ntlm
.
How can I provide different username/password in this and authenticate?
Also will this work if I login from linux/mac system?