ntlm

Java : HTTP(S)/WebServices connections through NTLM proxy

孤街浪徒 提交于 2019-12-07 03:04:12
问题 We have a java client side application deployed in our customer (a java application, not an applet). This application checks connectivity with an url.openConnection() and calls web services (with CXF/JAX-WS) through internet. Some of our customer network use proxies to access to the external world. The client side application sets the proxy parameter in java system properties : System.setProperty("proxySet", "true"); //Obsolete ? System.setProperty("http.keepAlive", "false"); System

Why I can't make HttpWebRequest working with NTLM authentication

佐手、 提交于 2019-12-06 16:30:24
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 NetworkCredential("uname", "pwd", "domain")); req.Credentials = ch; Stream sreq = req.GetRequestStream(); sreq.Write

NTLM Authentication in a WebView

泪湿孤枕 提交于 2019-12-06 10:13:21
问题 I am trying to load a URL which will show a image in a WebView . I need to pass the credentials (username & password) before loading the URL. Here, the URL is hosted from a server which has NTLM authentication. I am able to hit another such URL and get the data. But how do I do the same stuff for a WebView in Android? 回答1: You can use the Chilkat Library for NTLM authentication. download the java classes (contained in the zip/rar file from the downloads section) and add the package to the

Windows authentication is not challenging browsers out of the domain

此生再无相见时 提交于 2019-12-06 09:38:18
I have a web application that allows anonymous access and windows authentication. Basically, the app try to auto-login users by windows authentication if the windows user is in a user list in the application, otherwise it shows the login screen. If no credential is provided, the app then shows a login screen where the user could login using a application internal user. As far as I know, Windows Authentication is a challenging protocol, so I have to return an Unauthorized in order to force the browser to send the credentials. It works great when are machines inside my domain. Machine in my

Need Users to Re-authenticate with NTLM

吃可爱长大的小学妹 提交于 2019-12-06 07:47:11
问题 I'm NTLM (authenication="windows" in the web.config) with an asp.net mvc 2.0 site. Right now once a user logs in it keeps them logged in for weeks at a time. The use of the application is being opened up to users who share computers that use logged in service accounts. I need the site to reprompt each user for their AD credentials each time in order to handle these users. (Activity on the site must be linked to a uniquely identified user.) Thanks for any help that you can provide. Trey

Sharepoint 2007 NTLM issue with ASP.NET Web App hosted on Sharepoint server

只愿长相守 提交于 2019-12-06 07:45:24
问题 I'm hosting an ASP.NET web application on a Sharepoint 2007 box, which makes a web service call to Sharepoint to retrieve a document location (specifically, the GetListItems method). The service is consumed with passed credentials of a valid Sharepoint account with appropriate permissions. ListServiceWrapper listService = new ListServiceWrapper(); /*Pass credentials to service call object*/ listService.Credentials = new NetworkCredential(spUserName, spPassword, spDomain); /*Set the Url

HttpClient 4.2.3 using both SSL encryption and NTLM authentication fails

匆匆过客 提交于 2019-12-06 07:37:14
I am trying to use a REST call to Sharepoint 2010 via HTTPClient 4.2.3 from a Liferay 6.1 portlet. I have imported the cert into my local MAC's JVM cacerts and am trying to load the cacerts as the keystore. My code is: String opsCalendarURL1 = "https://hostname/sites/team-sites/operations/_vti_bin/owssvr.dll?"; String opsCalendarURL2 = "Cmd=Display&List={6E460908-D470-4F8A-AF76-CC279E25E0B1}&XMLDATA=TRUE"; String opsCalenderURLEncoded = opsCalendarURL1 + URLEncoder.encode( opsCalendarURL2 , "UTF8" ); System.out.println(opsCalenderURLEncoded); DefaultHttpClient httpclient = new

JAVAMAIL : AUTH NTLM failed

僤鯓⒐⒋嵵緔 提交于 2019-12-06 07:32:10
问题 i try to send email with java in local network,using microsoft exchange server there is my code : import java.io.UnsupportedEncodingException; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class Main { public static

How to do NTLM Authentication using Indy 10 in Delphi 7?

让人想犯罪 __ 提交于 2019-12-06 06:38:10
问题 I want to do NTLM Authentication with Indy 10 Components in Delphi 7 . Here is my source code : uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs ,StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP,IdAuthenticationSSPI , IdAuthentication , IdAuthenticationDigest , IdHeaderList; procedure TForm1.Button1Click(Sender: TObject); begin Memo1.Lines.add( IdHTTP1.Get('http://www.google.co.in')); end; procedure TForm1

How to authenticate SSRS externally using automatic NTLM credential passing?

橙三吉。 提交于 2019-12-06 06:11:03
I am attempting to set up our SSRS server to authenticate over the internet using user entered NTLM credentials with the Automatic Logon setting in IE. The result so far has been the generic 'Internet Explorer Cannot Display the Webpage' error when attempting to navigate to the report manager or report server. I am not getting much relevant information off of google. Has anyone else encountered this edge case? Any suggestions? SSRS will fail to authenticate over the internet with automatic NTLM credential passing if the <RSWindowsNegotiate/> authentication type is present in the