Express middleware for NTLM authentication in Node.js. Current stable version 2.7.0. Maintained as of 2023. It provides NTLM authentication for Express apps, supporting both NTLMv1 and NTLMv2, with optional LDAP validation. Compared to alternatives like passport-ntlm, express-ntlm is simpler and does not require Passport.js. It handles NTLM negotiation, extracts user info (username, domain, workstation), and can validate against Active Directory via LDAP. Known issues with proxies and multiple users on same connection.
npm install express-ntlmVerified import paths — ran on the pinned version, not inferred.
Sets up an Express server with NTLM authentication middleware, requiring LDAP domain controller.
Update property names in your code from req.ntlm.username to req.ntlm.UserName, etc.
Use connection-pinning (e.g., nginx ip_hash) or custom reverse proxy with session sharing.
Always provide a domaincontroller for LDAP validation in production.
Use the standard middleware options; NTLM_No_Proxy is removed.
Ensure the client sends proper NTLM authentication; verify network setup and proxy configuration.
Check LDAP server availability, firewall rules, and domaincontroller URL.
Update to latest version (2.6.1+); if persists, check client NTLM version support.
No dependency data recorded yet.