Questions tagged [ntlm]

NTLM (NT LAN Manager) is a suite of Microsoft security protocols that provides authentication, integrity, and confidentiality to users.

NTLM has been deprecated for many uses as it doesn't support the latest standards:

Implementers should be aware that NTLM does not support any recent cryptographic methods, such as AES or SHA-256. It uses cyclic redundancy check (CRC) or message digest algorithms (RFC1321) for integrity, and it uses RC4 for encryption. Deriving a key from a password is as specified in RFC1320 and FIPS46-2. Therefore, applications are generally advised not to use NTLM - MSDN and to use Kerberos instead.

Despite this NTLM is still used inside enterprise networks where Microsoft Active Directory provides the enterprise directory service for Integrated Windows Authentication when Kerberos is not available.

NTLM over HTTP handshake is fairly simple:

Request  - [unauthenticated - no user info passed]

Response - 401 Unauthorized
           WWW-Authenticate: NTLM


Request  - Authorization: NTLM <base64-encoded type-1-message>

Response - 401 Unauthorized
           WWW-Authenticate: NTLM <base64-encoded type-2-message>


Request  - Authorization: NTLM <base64-encoded type-3-message>

           Server can now check username/password against LDAP from type-3 message
Response - 200 Ok [now authenticated & authorised]
1230 questions
4
votes
1 answer

get username from NTLM auth header?

Is there any way to work out what a user's name is just by sniffing the NTLM header? I have an app, that accesses a NTLM auth'd site, and so an Auth prompt opens for the user to authenticate with the site by entering their username / password. Is…
Jonsie
  • 41
  • 1
  • 3
4
votes
0 answers

IOException Authentication Failure during NTLM connection only on Windows

I have got this simple snippet of code trying to connect to Windows Server with NTLM authentication. It works on Linux, MacOS but not on Windows 10. On Windows it always throws java.io.IOException Authentication Failure. public static void…
sovanegger
  • 121
  • 4
4
votes
1 answer

How to use a Service Worker With BASIC Authentication (NTLM, Negotiate)

I have been trying to use a service worker within a IIS hosted web site that caches some of the static content of the site. The site is an internal application that uses Windows Authentication. I have been able to register and run a service worker…
Nathan Fisher
  • 7,961
  • 3
  • 47
  • 68
4
votes
2 answers

Consuming soap service with NTLM Authentication

I am trying to consume a SOAP service with NTLM authentication by creating a NTLM engine (following instructions on http://hc.apache.org/httpcomponents-client-4.3.x/ntlm.html ) implemented AuthSchemeFactory and finally registered the…
Madhur Taneja
  • 41
  • 1
  • 3
4
votes
3 answers

Accessing SMTP server with AUTH NTLM from Node.js

I'm trying to access a SMTP server with AUTH type of NTLM. I'm using nodemailer and nodemailer-smtp-transport as such: var config = require('./config.json'); var nodemailer = require('nodemailer'); var smtpTransport =…
davidx1
  • 3,525
  • 9
  • 38
  • 65
4
votes
1 answer

Chrome basic authentication custom message stopped working

I am using nginx proxy to server my web-page. For login user need to provide his 2 factor authentication code and his password, to let users know that they need to enter their password+2 factor code to login, I send them a message "Login required,…
4
votes
0 answers

Visual Studio setup proxy authentication fails

I am installing Visual Studio 2015 behind corp firewall. The setup fails to install some components with the message HTTP status 407: proxy authentication is required. This must be a common problem, but I have dug around and haven't found a suitable…
aateeque
  • 2,161
  • 5
  • 23
  • 35
4
votes
0 answers

NTLM authentication to invoke SOAP webservice from node.js soap client?

I have a node.js app running express.js framework that is trying to consume a SOAP webservice that needs authentication. If I input the URL for this particular WSDL into a browser, a login dialog pops up. After entering my user credentials, I'll get…
davidx1
  • 3,525
  • 9
  • 38
  • 65
4
votes
0 answers

NTLM Proxy Authentication in Node Request

I'm trying to make a request using Node behind a corporate web proxy which requires NTLM authentication. I've tried using a couple libraries such as the proxying-agent but am having little success. Here's a simplified version of my code using the…
Chris Edgington
  • 2,937
  • 5
  • 23
  • 42
4
votes
2 answers

NTLM authentication using Angular2

In my client web application, I need to authenticate with the server using ntlm protocol. While using Angular1, with the $http service get request, the browsers (chrome, edge) were doing all the 3 steps of the NTLM authentication by prompting user…
rajkiran
  • 332
  • 3
  • 14
4
votes
2 answers

curl with ntlm authentication works in command line but not inside php

I have to connect from a Centos Host to a IIS with curl. Using curl with --ntlm option works fine on the command line, but non in php. Server is a Microsoft IIS and answers first with 401 Unauthorized, on second pass with 200 OK. After investigating…
Joachim Ruisz
  • 121
  • 1
  • 1
  • 7
4
votes
0 answers

EWS Basic/NTLM Authentication

I'm currently trying to send a SOAP request to an Exchange server, but I'm getting a 401 Unauthorized. I repeated the request using Postman, and it looks like it's trying to do NTLM authentication. However, I want to authenticate using Basic…
4
votes
1 answer

How to do Integrated Windows Authentication (IWA) in a scala play web application

I've tried hard to familiarize myself with the different authentication protocols for Windows (NTLM v1, NTLM v2, Keberos, LDAP..) and based on that understanding I believe NTLM (v1/2) should be the target implementations. I have a simple web…
Carlos
  • 5,405
  • 21
  • 68
  • 114
4
votes
1 answer

NTLM Authentication with HttpURLConnection

Is there any way to implement NTLM Authentication with HttpURLConnection? Currently I have implemented it with DefaultHttpClient and JCIFSEngine for the authentication scheme. ( My inspiration was : Android: NTLM Authentication, ksoap, and…
Iulia Barbu
  • 1,522
  • 12
  • 25
4
votes
1 answer

Is it possible to convert NetMTLMv2 hash to NTLM hash?

Is there any way to convert NetNTLMv2 to ntlm hashes? For instance ntlm value of the 123 is 3DBDE697D71690A769204BEB12283678 Same password for user "try" in computer "PC" which has private ip address 192.168.73.130 NetNTLMv2 value…
skywalkerc
  • 233
  • 1
  • 3
  • 10