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
16
votes
1 answer

401 when calling Web Service only on particular machines

We have developed a WPF Application with C# and are using RestSharp to communicate with a simple Web Service like this: Client = new RestClient(serviceUri.AbsoluteUri); Client.Authenticator = new NtlmAuthenticator(SvcUserName,…
hoetz
  • 2,368
  • 4
  • 26
  • 58
16
votes
1 answer

"The matching wildcard is strict, but no declaration can be found for element 'http'" Error

I am trying to configure NTLM authentication, but receive error: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'. I read a lot of topics with a similar error, but I could not find a…
DmitryB
  • 1,149
  • 5
  • 20
  • 34
15
votes
6 answers

Integrated Windows Auth (NTLM) on a Mac using Google Chrome or Safari

An IIS7 Intranet site with Windows Authentication enabled. When hit from Chrome on windows the pass-through authentication works fine (no User / Password prompt), however, Chrome on a Mac you get a prompt. Since the internal network uses CAC/PKI no…
Louis Ricci
  • 20,804
  • 5
  • 48
  • 62
15
votes
4 answers

How to enable windows authentication through a reverse proxy?

Sorry if it is a duplicate, as I am not a security nor network expert I may have missed the correct lingo to find information. I am working on an application to intercept and modify HTTP requests and responses between a web browser and a web server…
jeremy-george
  • 1,171
  • 1
  • 9
  • 20
14
votes
2 answers

NTLM authentication HttpClient in Core

I am trying to use the HttpClient to access a REST service which requires NTLM authentication. However I keep getting a 401 Unauthorized. My code looks like this private static void Main() { var uri = new…
Torben Nielsen
  • 663
  • 1
  • 8
  • 21
14
votes
1 answer

Is there a proper way to add NTLM auth type into SwiftMailer using SwiftMailer bundle in symfony?

I have symfony project with swiftMailer bundle. I was trying to send email via swiftmailer using NTLM auth. But I have not found a way to turn on NTLM via configuration of the bundle. After struggling with it I have found solution First…
sectus
  • 15,605
  • 5
  • 55
  • 97
13
votes
3 answers

JAX-WS Sharepoint 401 Unauthorized NTLM

I try to access a Sharepoint list via JAX-WS as described here However, when running the code below I get: java.lang.Exception: Exception. See stacktrace.com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 401:…
Christoph
  • 131
  • 1
  • 1
  • 3
13
votes
1 answer

Powershell invoke WebRequest with NTLM for a post

INITIAL QUESTION How Can I perform Invoke-WebRequest or similar, with Powershell so that NTLM authentication is used but also supply a body for a post. EXAMPLE The code sample below is my example post using invoke web request and pipes response out…
Murchie85
  • 815
  • 2
  • 12
  • 27
13
votes
5 answers

Javamail NTLM Authentication Failure

Trying to connect to Exchange server using NTLM in JavaMail. I can connect to SMTP, but not IMAP. I can also authenticate via the OS X Mail.app application using the identical host/username/password, account type = "IMAP", Port 143, ssl=false,…
Sam Barnum
  • 10,559
  • 3
  • 54
  • 60
13
votes
3 answers

SMTP through Exchange using Integrated Windows Authentication (NTLM) using Python

I want to use the credentials of the logged-in Windows user to authenticate an SMTP connection to an Exchange server using NTLM. I'm aware of the python-ntlm module and the two patches that enable NTLM authentication for SMTP, however I want to use…
Louis
  • 523
  • 1
  • 4
  • 9
13
votes
5 answers

nginx reverse proxy with Windows authentication that uses NTLM

Anyone knows if is possible to do reverse proxy with Windows authentication that uses NTLM? I cant find any example on this. What should be the values of more_set_headers field? location / { proxy_http_version 1.1; …
matheus
  • 131
  • 1
  • 1
  • 5
13
votes
6 answers

git clone with NTLM proxy hangs after resolving deltas

I saw here many questions covering git and proxy topics but none of them solves my problem. I am cloning a git repository from Bitbucket. Everything works fine from my home network but hangs at work where we are using proxy with NTLM authentication.…
tommyk
  • 3,187
  • 7
  • 39
  • 61
12
votes
3 answers

Access Exchange Web Services with PHP and cURL

Hello, I am currently writing a client to access a Microsoft Exchange server and read contacts, appointments etc. from it. Through days of searching I've been able to connect to the EWS via PHP's Soap client and a custom HTTPS Stream wrapper. This…
DarkDevine
  • 1,047
  • 1
  • 9
  • 12
12
votes
6 answers

HttpClient 4.1.1 returns 401 when authenticating with NTLM, browsers work fine

I'm trying to use the Apache/Jakarta HttpClient 4.1.1 to connect to an arbitrary web page using the given credentials. To test this, I have a minimal install of IIS 7.5 on my dev machine running where only one authentication mode is active at a…
Jesse
  • 253
  • 1
  • 3
  • 12
12
votes
11 answers

Jenkins proxy 407 error

I'm running Jenkins CI inside a corporate network which uses a proxy for internet access. I tried to configure proxy details in Plugins->Advanced, but even though the credentials are correct (yeah, I checked it a bunch of times), it cannot validate…
Ilves
  • 121
  • 1
  • 1
  • 4
1 2
3
81 82