ntlm

Using NTLM authentication in Java applications

无人久伴 提交于 2019-12-17 06:10:42
问题 I want to use Windows NTLM authentication in my Java application to authenticate intranet users transparently. The users should not notice any authentication if using their browsers (single sign-on). I've found a few libs with NTLM support, but don't know which one to use: http://spnego.sourceforge.net/ http://sourceforge.net/projects/ntlmv2auth/ http://jcifs.samba.org/ http://www.ioplex.com/jespa.html http://www.luigidragone.com/software/ntlm-authentication-in-java/ Any suggestions where to

Golang web scraper NTLM authentication

不想你离开。 提交于 2019-12-13 16:08:59
问题 A Golang web scraper needs to extract information from a webpage that is NTLM-authenticated. Having a valid username & password, how can the web scraper perform the NTLM 4-way handshake with the server in order to gain access to the protected webpage behind? url, username, password := "http://www.some-website.com", "admin", "12345" client := &http.Client{} req, _ := http.NewRequest("GET", url, nil) req.Header.Set("Authorization", "NTLM") res, _ := client.Do(req) 回答1: You can use a package

MonoTouch support for accessing Mono.Security.Protocol.Ntlm.NtlmFlags

ε祈祈猫儿з 提交于 2019-12-13 14:09:58
问题 We use NTLM auth to access an ASP.net web services from our MonoTouch app and everything works fine. One of our customers uses the same app and the NTLM auth fails from our app but works from the iPad's Safari browser. Looking at the packet flow from the customer, the server does not return NTLMSSP_CHALLENGE , when our app sends NTLMSSP_NEGOTIATE message. Looking the differences between our app's NTLMSSP_NEGOTIATE message and iPad's Safari same message Our MT app sets the NTLM flags to 0xb203

Pass-through NTLM authentication in a web app on an IMAP mail server

北慕城南 提交于 2019-12-13 06:23:22
问题 I'm in need of using NTLM authentication in my web application against an IMAP mail server. Authentication in the web app itself is NTLM too. Thus, the user opens the web app interface and the web server end grabs the inbox of that user on the mail server authenticating via NTLM. Is that possible if I never store (neither I have access to) the user's password? Is there any way to link the client's browser and the IMAP server via my web app so that token exchange would occur between them and I

NTLM token verification in Java

旧巷老猫 提交于 2019-12-13 03:37:47
问题 I want to verify/authenticate the type3message that Apache httpd server has received from the client browser and passed to Apache Tomcat . I am just not able to figure out how to do it. I have the following mechanism in place as depicted here. C is the client. S1 is the Apache httpd server and S2 is the Apache Tomcat server. 1. C -> S1 GET ... 2. S1 -> C 401 Unauthorized WWW-Authenticate: NTLM 3. C -> S1 GET ... (type 1 message) Authorization: NTLM

ntlm proxy authentication rcurl problem

こ雲淡風輕ζ 提交于 2019-12-13 02:19:16
问题 i'm behind an ntlm proxy server and i can't set the rcurl options correctly for it to work. Apparently curl woks fine with the correct settings which are: --proxy-ntlm --proxy_user <...> --proxy <...> but i don't know how to pass all these options correctly from R. I've got as far as: >curl = getCurlHandle() >curlSetOpt( .opts = list(proxy="...:...",proxyuserpwd="...:...",proxyauth="ntlm"),curl = curl) >getURL("http://www.omegahat.org", curl = curl) but this still doesn't seem to do the trick

Unable to pass proper credentials to server through corporate proxy in python, but able to do it in R

六眼飞鱼酱① 提交于 2019-12-13 01:17:02
问题 I am trying to convert an R program into Python. The R program uses the following code to pass a request to the server: auth <- function() { httr::authenticate(Sys.getenv("proxy_usr"), Sys.getenv("proxy_auth"), type = "ntlm") } raw_data <- httr::POST(url_base, body = url_options, auth()) %>% httr::content("text") This works exactly as expected. Here's what I have with Python: import os import requests from requests_ntlm import HttpNtlmAuth user = os.environ.get('proxy_usr', "") auth_pass = os

NTLM fails when consuming SharePoint web service from Java?

痴心易碎 提交于 2019-12-12 07:22:46
问题 I have a Java client that consumes SharePoint 2010 standard web services (sitedata.asmx, permissions.asmx, etc) written with JAX-WS implementation from the JDK 6. So far, authentication is done with NTLM using a custom Authenticator implementation and Authenticator.setDefault(...) approach. When running on my test environment which has only one SharePoint server, it works fine. I can see all the NTLM negotiation using WireShark. But, if running on a costumer which has multiple servers,

Java RESTful client [RESTEasy or Apache HttpClient] - NTLM on the other side

筅森魡賤 提交于 2019-12-12 06:30:12
问题 How to call RESTful webservice (from Java - using RESTEasy/Apache HttpClient) which requires NTLM authentication within Active Directory, without necessity of entering user data again (domain, username, password) - user is already authenticated in Windows? GET http://some_server/restapi/books This works perfectly from web browsers or even java.net.URL library - user is not getting prompted for credentials, no 401 authentication errors - simply 200 OK is returned. How to do the same using

How can I enable NTLM and TLS 1.2 with Xamarin on Android?

会有一股神秘感。 提交于 2019-12-12 06:25:42
问题 I am working with a client app in Xamarin on Android and I need TLS 1.2 and NTLM. So far, I have been using the regular System.Net.HttpClientHandler and it has worked fine - it looks like this: new System.Net.Http.HttpClientHandler() { Credentials = credentials }; But now I have a new customer and I need TLS 1.2. So I made this code for Android: new Xamarin.Android.Net.AndroidClientHandler() { Credentials = credentials }; With the environment variable: XA_HTTP_CLIENT_HANDLER_TYPE=Xamarin