ntlm

Using Libcurl to authenticate ntlm proxy without pass

旧街凉风 提交于 2019-12-12 06:03:32
问题 i'm testing some network simple process to understand better and know how to work with NTLM. Following this (ntlm-proxy-without-password) Q&A i found hot to uthenticate my transaction via ntml using the log information of the current user. The command is this: curl.exe -U : --proxy-ntlm --proxy myproxy.com:8080 http://www.google.com Know i have to do the same thing using libcurl since i need to achieve that result into the application i'm developing. There is a way to do this? Following this

Universal App NTLM working for Windows Store, but not Windows Phone

给你一囗甜甜゛ 提交于 2019-12-12 01:44:44
问题 I am building a Universal App that accesses a web API for data. When I run the authentication piece in the Windows Store app, everything works and I get a 200 response on my login call (an HTTP POST call to _url2 in the code below) When I run the exact same code from the Windows Phone emulator, I get a 401 Unauthorized. Here is the code I'm using to access the service: var handler = new HttpClientHandler { AllowAutoRedirect = true, PreAuthenticate = true, CookieContainer = _cookies,

NodeJS - Communicating with a server that is attempting ntlm authentication, but encountering strange behavior

*爱你&永不变心* 提交于 2019-12-11 17:26:48
问题 I am attempting to write code that will allow my nodeJS server to scrape another website that is attempting to run ntlm authentication. When I arrive on the page a popup appears, into which I am supposed to enter credentials to access the site. However, that popup does not appear to be a part of chrome but a part of the OS; No matter what I try I can't find it in the elements of the page, which makes me think it is a part of the OS. (I am running Windows 10 on my development machine, but the

how to send NTLM request in iOS

天大地大妈咪最大 提交于 2019-12-11 13:39:30
问题 I was using json(NSJSONSerialization) and NSURL for server client communication. Till now it was working fine but now NTLM security has been implemented on server. Can anyone tell me how to send request with NTLM in iOS ? Thanks 回答1: If you can use NSURLProtectionSpace, it provides NSString *NSURLAuthenticationMethodNTLM; authentication method. Something on the lines: NSURLProtectionSpace *protectionSpace = [[NSURLProtectionSpace alloc] initWithHost: _host port: 80 protocol: @"http" realm:

How to redirect if NTLM authentication won't work

廉价感情. 提交于 2019-12-11 12:13:54
问题 I have this script snippet: $headers = apache_request_headers(); if (!isset($headers['Authorization'])){ header('HTTP/1.1 401 Unauthorized'); header('WWW-Authenticate: NTLM'); //header("location: login.php"); exit; } $auth = $headers['Authorization']; if (substr($auth,0,5) == 'NTLM ') { $msg = base64_decode(substr($auth, 5)); if (substr($msg, 0, 8) != "NTLMSSP\x00") die(header('location: login.php')); if ($msg[8] == "\x01") { $msg2 = "NTLMSSP\x00\x02"."\x00\x00\x00\x00". // target name len

Java 6 HTTPURLConnection and Project Server NTLM Authentication from RHEL5.5

我的未来我决定 提交于 2019-12-11 11:09:44
问题 Currently at a loss for authenticating with a Microsoft Project Server 2007 instance running on IIS with Integrated Windows Authentication enabled from a Java 1.6(u19) client running on linux, RHEL 5.5. Note: The client works on my Windows workstation. I initially was trying to implement a JAX-WS call and found that I could not retrieve the WSDL due to authentication errors, specifically a 401.2, followed by a 500. So I simplified it to a Java class that: Creates an Authenticator and sets it

Python suds error “'NoneType' object has no attribute 'promotePrefixes'”

允我心安 提交于 2019-12-11 10:38:45
问题 I have an ASP.NET webservice running on a Windows 7 box. I have two Linux boxes (Ubuntu 12.04) that I'm trying to hit the webservice from, using Python 2.7.3 and Suds 0.4. The script I'm trying to execute is as follows: from suds import client from suds.transport.https import WindowsHttpAuthenticated url = "https://webserver.mydomain.com/webservice/services.asmx?WSDL" ntlm = WindowsHttpAuthenticated(username = "user", password = "pwd") c = client.Client(url, transport = ntlm) resp = c.service

How to prevent unauthorized child action to return 401

耗尽温柔 提交于 2019-12-11 06:27:12
问题 Problem Long story short, how can you prevent unauthorized ChildActions to return a 401 code and return an empty result instead. Context My application uses NTLM to authenticate on the network. I also want to handle anonymous identification, for non NTLM capable devices or if someone goes through some proxy. One the the web application, there is controller/actions that absolutely require to be logged in to be viewable and some other that are viewable as anonymous. For the ones that

How to override portal-impl jar classes in Liferay ext-plugin

丶灬走出姿态 提交于 2019-12-11 06:25:37
问题 I want to override two portal-impl.jar classes NtlmFiler.java and NtlmPostFilter.java , I have created an ext-plugin project and placed my custom written classes in ext-impl/src but I am unable to configure my spring.xml file to use my newly written classes instead of portal-impl classes, maybe i am totally wrong about doing it this way. My ext-spring.xml code is : <?xml version="1.0" encoding="UTF-8"?> <beans> <bean id="com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter" class="com

Can JCIFS be used with Jersey?

流过昼夜 提交于 2019-12-11 05:28:14
问题 I have trouble adding NTLM authentication to my existing application that uses Jersey and Apache HttpClient. I was only able to authenticate using JCIFS, the default NTLM authentication from HttpClient does not work (I get 401 ). The example from Apache HttpClient page shows how to use CloseableHttpClient: https://hc.apache.org/httpcomponents-client-4.5.x/ntlm.html Registry<AuthSchemeProvider> authSchemeRegistry = RegistryBuilder.<AuthSchemeProvider>create() .register(AuthSchemes.NTLM, new