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
5
votes
2 answers

JMeter NTLM/Windows Authentication Load Testing

What is to be done? We have an application deployed on the Sharepoint (corporate) Server which uses the windows credentials to log into the application. App URL format: http://testmachine:1000/sites/test/ Windows Credentials Format:…
Ravindra S
  • 6,302
  • 12
  • 70
  • 108
4
votes
1 answer

IIS Windows Authentication Rejecting Some Users

We have a very basic SOAP web service setup using Windows Authentication, open for all users: The Issue However, some Windows accounts are getting 401…
Matt Mitchell
  • 40,943
  • 35
  • 118
  • 185
4
votes
1 answer

Spring security 3 + JCIFS ntlm

Can they work together? Some project sample would be great. I have a web-app on Spring3. And i need to implement NTLM. Spring stopped NTLM support in 3rd version. Is there any possibilities to implement it? Looking for a sample project.
StrekoZ
  • 618
  • 6
  • 12
4
votes
1 answer

System.Windows.Forms.WebBrowser sometimes does NTLM auth - why?

I have a Windows Forms app targeting .NET 2.0. I'm attempting to add a single sign-on feature via the SAML 2.0 protocol, for which the most efficient apparent solution was an embedded web browser. I've verified using a dummy app containing only a…
Ben
  • 6,023
  • 1
  • 25
  • 40
4
votes
2 answers

SMTP commands for "AUTH NTLM"

I'm failing at finding the commands I need to send to authenticate to a SMTP server using NTLM. I think it goes something like: AUTH NTLM 334 235
Dylan
  • 2,392
  • 6
  • 26
  • 34
4
votes
1 answer

Browsing a NTLM protected website using python with python NTLM

I have been tasked with creating a script that logs on to a corporate portal goes to a particular page, downloads the page, compares it to an earlier version and then emails a certain person depending on changes that have been made. The last parts…
jias
  • 41
  • 1
  • 2
4
votes
1 answer

ASP.NET Form Authentication + NTLM + LDAP

I'm trying to add LDAP support to an existing ASP.NET website that uses Form Authentication. This is not a big problem, I just build a simple login dialog (ordinary HTTP POST), query the LDAP directory and log the user in via Form Authentication…
Hannes Sachsenhofer
  • 1,835
  • 1
  • 23
  • 38
4
votes
1 answer

NTLM authentication in ZAP

I'm trying to do some penetration testing of REST Api using ZAP. Api uses windows authentication [domain\username] and is hosted locally on a specific port. First I did a test using postman to try to connect and make an example request. My config…
Chris4D
  • 167
  • 4
  • 12
4
votes
2 answers

.NET calling SharePoint Web Service gets an HTTP 401 Unauthorized exception

I am trying to call a SharePoint Lists service to get list definition and data. The SharePoint site is my companies but I have no control over it. Here is all I know about the server's security: Server is HTTPS:// Server accepts Windows Active…
markti
  • 2,783
  • 1
  • 23
  • 30
4
votes
1 answer

Writing a custom NTLM challenge/response in ASP.Net

I know that you can enable NTLM authentication in an ASP.Net app using: However - I need to handle Forms, HTTP and other custom authentications in the same app, so ASP.Net's limited built-in support is no use. The…
Keith
  • 150,284
  • 78
  • 298
  • 434
4
votes
4 answers

Automatic NTLM with python on Windows

How can I use automatic NTLM authentication from python on Windows? I want to be able to access the TFS REST API from windows without hardcoding my password, the same as I do from the web browser (firefox's network.automatic-ntlm-auth.trusted-uris,…
liorda
  • 1,552
  • 2
  • 15
  • 38
4
votes
0 answers

Using ntlm authentication in Nativescript ios platform

I am building an app with authenticates the user against a sharepoint site which uses NTLM authentication. I found the ntlm.js which has been patched for nativescript here https://github.com/hdeshev/nativescript-ntlm-demo. I have managed to get it…
tigerdi
  • 612
  • 7
  • 13
4
votes
3 answers

Can CNTLM be configured to passthrough? Trying to achieve zero-configuration proxy switching for browsers, ssh, and the like

My primary laptop shuttles between two office wifi environments (one behind an NTLM proxy and one require Cyberoam authentication) and various wifi/LAN environments. My network connectivity is managed by netctl[1], with a home-brew script which does…
Ng Oon-Ee
  • 1,193
  • 1
  • 10
  • 26
4
votes
8 answers

Login without username and password from the web browser on Windows

I heard that on Windows you can login from a web browser to the web server without going through the usual login entering username and password but using instead the credentials from Windows directly, using the NTLM protocol. How is this achieved?…
Janko Mivšek
  • 3,954
  • 3
  • 23
  • 29
4
votes
1 answer

Android NTLM getting HTTP/1.1 401 Unauthorized

I am try to get data from share point server. Following is my code. DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getAuthSchemes().register("ntlm", new NTLMSchemeFactory()); …
Rahul Giradkar
  • 1,818
  • 1
  • 17
  • 28