ntlm

Symfony2: automatically logging in users from their Windows session

一笑奈何 提交于 2020-01-03 07:21:06
问题 In Symfony2 I have built an intranet. It currently uses the FOSUserBundle and an LDAP bundle to log users in, and I would like to add the functionality to log in user from their session in Windows. I found an NTLM script for PHP and an updated version of it, but I haven't been able to incorporate them into Symfony2. I also found an NTLM bundle for Symfony2, but it was written for an older version of Symfony and it is not maintained anymore. I was unable to rewrite it and get it to work. My

Trying to access hosted SharePoint 2013 from Java app gives me 401 although I use correct OAuth token

不想你离开。 提交于 2020-01-02 07:27:07
问题 I'm trying to access our company SharePoint 2013 instance, which is hosted at ourinstance.sharepoint.com, with small Java web application. I registered application through _layouts/15/AppRegNew.aspx this way: I let SP generate Client ID, Client Secret, to App Domain I set: ourdomain:8443 to Redirect URL I set: https://ourdomain:8443/our-redirect-processing I edited application permissions with _layouts/15/appinv.aspx, where I looked it up by client ID and edited its Permission Request XML to

PHP NTLM session with cURL

倖福魔咒の 提交于 2020-01-02 06:31:53
问题 So a little trivia first.. There is written in ASP.NET website, which uses NTLM protocol to authenticate users that want to log in. It's perfectly ok when they normally use it, they type in website URL, they provide their credentials, authenticate and maintain session in web browser. What I want to do, is create PHP website that will act as bot. It is my companys internal website and I am approved to do so. The problem I run into, is managing session. Users will be able to type in their

PHP NTLM session with cURL

你说的曾经没有我的故事 提交于 2020-01-02 06:31:09
问题 So a little trivia first.. There is written in ASP.NET website, which uses NTLM protocol to authenticate users that want to log in. It's perfectly ok when they normally use it, they type in website URL, they provide their credentials, authenticate and maintain session in web browser. What I want to do, is create PHP website that will act as bot. It is my companys internal website and I am approved to do so. The problem I run into, is managing session. Users will be able to type in their

Firebug console error HTTP 407 Proxy Authentication Required

旧时模样 提交于 2020-01-02 00:56:11
问题 I am behind a proxy at work (using NTLM authentication). Whenever I load up a page, my Firebug console gets flooded with messages like this: "NetworkError: 407 Proxy Authentication Required - http://somewebsite/Scripts/jquery-1.8.2.min.js" It does that for all URLs referenced on that page: JS, CSS, Image, whatnot. The annoying thing is that the file is actually successfully loaded. It seems that Firefox hits the 407 Error, spams the log and then loads it anyway with the NTLM credentials. Is

How do I download a protected file using PowerShell?

拥有回忆 提交于 2020-01-01 11:42:10
问题 I am trying to download a file using PowerShell 3.0 from my TeamCity build server. I have configured TeamCity to use NTLM authentication but I cannot download the file directly and get redirected to login. I am trying to use the following PowerShell code to download the file. $artifacts = "http://teamcity/repository/download/bt1/.lastSuccessful/%7Bbuild.number%7D.zip" Invoke-WebRequest -Uri $artifacts -UseDefaultCredentials My response from the request is a redirection to the login page. 回答1:

Spring security 3 + JCIFS ntlm

北城余情 提交于 2020-01-01 05:48:16
问题 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. 回答1: They can be used together. Essentially what you want to do is hook into the SPNEGO protocol and detect when you receive an NTLM packet from the client. A good description of the protocol can be found here: http://www.innovation.ch/personal/ronald/ntlm

Android: NTLM Authentication, ksoap, and persistent connections

∥☆過路亽.° 提交于 2019-12-31 03:18:07
问题 After working with iOS and dealing with auth challenges without much of a learning curve, I've found that Windows Authentication is much more complicated of a process in Java/Android. I tried multiple different approaches, so without getting too much into those, I will get to the one that worked for the most part. I'm now using the class created for NTLM and ksoap called NtlmTransport I'm now successfully authenticating in the following way: NtlmTransport httpTransport = new NtlmTransport();

Mechanize and NTLM Authentication

孤者浪人 提交于 2019-12-30 13:23:12
问题 The following code generates a 401 => Net::HTTPUnauthorized error. From the log: response-header: x-powered-by => ASP.NET response-header: content-type => text/html response-header: www-authenticate => Negotiate, NTLM response-header: date => Mon, 02 Aug 2010 19:48:17 GMT response-header: server => Microsoft-IIS/6.0 response-header: content-length => 1539 status: 401 The Script is as follows: require 'rubygems' require 'mechanize' require 'logger' agent = WWW::Mechanize.new { |a| a.log =

Java client for SOAP web service with NTLM authentication

限于喜欢 提交于 2019-12-30 09:32:49
问题 I spent many days and nights trying to find a proper Java framework that could connect to Microsoft Dynamics CRM which uses Negotiate/NTLM authentication. I tried all existing suggestions on Stackoverflow and other resources with JAX-WS, Axis2, CXF with various HTTP protocol handlers. No one of them worked as expected. The best approach currently is Axis2/commons-httpclient-3.1, where I can trace at least all three phases with NTLM digest, however the target IIS still refuses the