Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

335
Views
\[express-ntlm\] No Authorization header present

I try to implement ntlm to ensure a user is in a certain ActiveDirectory-group in order to know if he's allowed to view the content or not. He should not have to login himself in if he has a user account which is in the ActiveDirectory. I'm new to ntlm but I guess the whole thing is exactly about that.

I have a node.js backend with an express server. For ntlm I use the package express-ntlm. The code in the backend looks like this:

app.use(ntlm({
  domain: `${LDAP_DOMAIN}`,
  domaincontroller: `ldaps://${LDAP_USER}:${LDAP_PASSWORD}@${LDAP_HOST}`,
}))

If I now try to access the endpoint the console logs

[express-ntlm] No Authorization header present

I guess I have to do something on the client side but I cannot imagine that I need to provide the username by myself (for security reasons). The request that I make from the frontend (react) looks like this:

request made by frontend

So what am I doing wrong and why can't I check the user against the AD?

(I know it isn't a very specific question and this should not be done here but I don't how to be more specific because I'm new to ntlm/ldap/AD.)

Any ideas or responses are appreciated. Many thanks!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!