ntlm

How to perform an NTLM challenge on the iPhone

本秂侑毒 提交于 2019-12-09 04:55:31
问题 I'm trying to access some web services in an iPhone application. If I GET to the .asmx page, I authenticate and get the WSDL as expected. However, if I POST to the .asmx page, setting the SOAPAction, Content-Type, Content-Length, and HTTPBody, I just keep getting didReceiveAuthenticationChallenge messages. Additionally, I'm trying to POST to IIS using Integrated Windows Authentication (IWA), which means I'm trying to negotiate an NTLM challenge. 回答1: I unfortunately found my answer.

Does Server decide what Authentication Method is to be followed?

那年仲夏 提交于 2019-12-08 12:15:50
问题 For a Web Application, Does the Server decide what authentication method is to be followed or is it the Client. Are Authentication methods like NTLM and Kerberos Browser specific. In a intranet web application, where does BASIC and Diget stand as compared to NTLM and Kerberos? Thank You :) 回答1: As discussed in RFC 2617, it requires the cooperation of both parties. When credentials are required to access a resource, the server will send back a 401 response with one or more WWW-Authenticate

Why I can't make HttpWebRequest working with NTLM authentication

寵の児 提交于 2019-12-08 09:16:23
问题 I'm trying to call EWS from MonoTouch like in this snippet: byte[] bytes = Encoding.UTF8.GetBytes("... some xml here ..."); HttpWebRequest req = WebRequest.Create("https://owa.site.com/ews/exchange.asmx") as HttpWebRequest; req.Method = "POST"; req.KeepAlive = true; req.ContentType = "text/xml"; req.ContentLength = bytes.Length; req.AuthenticationLevel = AuthenticationLevel.MutualAuthRequested; CredentialCache ch = new CredentialCache(); ch.Add(req.RequestUri, "Negotiate", new

CXF throws None of the policy alternatives can be satisfied

人盡茶涼 提交于 2019-12-08 08:21:30
I am trying to write Java client for .NET web service using CXF but when calling "client.getConduit()", it throws Exception - org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied. Please help! Here is the code snippet- ServiceClass service = new ServiceClass(); PortClass port = service.getPort(ServiceClass.class); Client client = ClientProxy.getClient(port); HTTPConduit httpConduit = (HTTPConduit) client.getConduit(); final HTTPClientPolicy httpClientPolicy = httpConduit.getClient(); httpClientPolicy.setAllowChunking(false); httpClientPolicy

Writing a custom NTLM challenge/response in ASP.Net

元气小坏坏 提交于 2019-12-07 11:45:25
问题 I know that you can enable NTLM authentication in an ASP.Net app using: <authentication mode="Windows" /> 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 NTLM handshake should be 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 support for Savon

拜拜、爱过 提交于 2019-12-07 08:17:03
问题 I'm using Savon to communicate with SharePoint using web services. Everything is working fine if SharePoint web application supports basic authentication, but if I change it to NTLM it fails. It fails at line newclient.http.auth.ntlm(username, password) and the error message is Install the httpi-ntlm gem for experimental NTLM support . FYI I have allready installed the specified gem and am using it. 来源: https://stackoverflow.com/questions/14050567/ntlm-support-for-savon

javax.naming.AuthenticationException in GSSAPI

空扰寡人 提交于 2019-12-07 08:09:33
问题 I'm trying to perform NTLM bind using JAVA GSSAPI. I'm receiving this error: javax.naming.AuthenticationException: GSSAPI [Root exception is javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Invalid option setting in ticket request. (101))]] I think (not sure) it worked in the past. To solve other problem, I tried "kinit". From that point is stopped working. I even deleted the cache file (couldn't find kclear in

NLTM auth using HttpUrlConnection failing

只愿长相守 提交于 2019-12-07 08:01:12
问题 I am trying to authenticate against a server supporting NTLM authentication in my Java application using java.net's HttpUrlConnection. The problem is that the application fails to send the Authenticate response. I have attached proxy to the http connection so that the traffic is routed via fiddler. In fiddler i can see Negotiate message being sent, and server Challenge is received. But after this, the application just stops saying it got a 401, without sending the type3 authenticate message.

Camel http4 and url-encoded passwords being interpreted as separate arguments

前提是你 提交于 2019-12-07 06:33:42
问题 We've got an Apache Camel (2.13.2) app that uses http4 to communicate with a webserver, using NTLM for auth. The endpoint is defined as (pseudo): ... .to("http4://thegreat.server.com/uri?authUsername=" + user + "&authPassword=" + pass + "&authenticationPreemptive=true&authMethod=NTLM&authDomain=DOMAIN&authHost=host") .to("otherEndpoint"); This works well as long as the pass variable contains "non-special" chars. However, if the pass contains for example "abcd&def" - Camel will intepret the

Automatic NTLM with python on Windows

冷暖自知 提交于 2019-12-07 03:06:32
问题 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, for example). 回答1: I found this answer which works great for me because: I'm only going to run it from Windows, so portability isn't a problem The response is a simple json document, so no need to store an open session It's using the WinHTTP