ntlm

How to use a Service Worker With BASIC Authentication (NTLM, Negotiate)

≡放荡痞女 提交于 2021-02-18 07:48:48
问题 I have been trying to use a service worker within a IIS hosted web site that caches some of the static content of the site. The site is an internal application that uses Windows Authentication. I have been able to register and run a service worker without too much hassle, but as soon as I open the caches and start adding files to the cache, the promise fails with an authorisation failure. the returned HTTP result is 401 Unauthorised. This is the usual response for the first few requests until

curl with ntlm authentication works in command line but not inside php

别等时光非礼了梦想. 提交于 2021-02-04 18:40:08
问题 I have to connect from a Centos Host to a IIS with curl. Using curl with --ntlm option works fine on the command line, but non in php. Server is a Microsoft IIS and answers first with 401 Unauthorized, on second pass with 200 OK. After investigating for several hours i did not find a working solution.. When i use curl on the command line (centos 6.4) to retrieve the content of a service: curl -v http://example.com/do.asmx --ntlm -u DOMAIN\\username:password the server answers successfully

Python: Installing PIP via NTLM from embedded ZIP file

别说谁变了你拦得住时间么 提交于 2021-01-29 03:48:32
问题 So I have downloaded the "Windows x86-64 embeddable zip file" from https://www.python.org/ftp/python/3.7.4/python-3.7.4-embed-amd64.zip and it works well I want to install PIP so I also got https://bootstrap.pypa.io/get-pip.py However it's throwing up a 407 proxy authentication error and despite me putting proxy information in, I presume at this point that NTLM is to blame. My question is how would I get around this? Is it possible to install PIP/Setuptools via the embeddable zip method 100%

Python: Installing PIP via NTLM from embedded ZIP file

a 夏天 提交于 2021-01-29 03:40:42
问题 So I have downloaded the "Windows x86-64 embeddable zip file" from https://www.python.org/ftp/python/3.7.4/python-3.7.4-embed-amd64.zip and it works well I want to install PIP so I also got https://bootstrap.pypa.io/get-pip.py However it's throwing up a 407 proxy authentication error and despite me putting proxy information in, I presume at this point that NTLM is to blame. My question is how would I get around this? Is it possible to install PIP/Setuptools via the embeddable zip method 100%

Consuming soap service with NTLM Authentication

佐手、 提交于 2021-01-27 09:06:37
问题 I am trying to consume a SOAP service with NTLM authentication by creating a NTLM engine (following instructions on http://hc.apache.org/httpcomponents-client-4.3.x/ntlm.html ) implemented AuthSchemeFactory and finally registered the AuthSchemeFactory to my HTTP Client. When I hit the service using my HTTP Client I get a reponse that "Status code - 415 , Message - The server cannot service the request because the media type is unsupported." Can anybody tell how can I fix this issue of

Consuming soap service with NTLM Authentication

喜欢而已 提交于 2021-01-27 09:06:18
问题 I am trying to consume a SOAP service with NTLM authentication by creating a NTLM engine (following instructions on http://hc.apache.org/httpcomponents-client-4.3.x/ntlm.html ) implemented AuthSchemeFactory and finally registered the AuthSchemeFactory to my HTTP Client. When I hit the service using my HTTP Client I get a reponse that "Status code - 415 , Message - The server cannot service the request because the media type is unsupported." Can anybody tell how can I fix this issue of

Consuming soap service with NTLM Authentication

ε祈祈猫儿з 提交于 2021-01-27 09:05:01
问题 I am trying to consume a SOAP service with NTLM authentication by creating a NTLM engine (following instructions on http://hc.apache.org/httpcomponents-client-4.3.x/ntlm.html ) implemented AuthSchemeFactory and finally registered the AuthSchemeFactory to my HTTP Client. When I hit the service using my HTTP Client I get a reponse that "Status code - 415 , Message - The server cannot service the request because the media type is unsupported." Can anybody tell how can I fix this issue of

cURL NTLM Proxy Authorization

与世无争的帅哥 提交于 2020-08-04 07:52:45
问题 I have been using curl for some time now and its working fine but with a proxy which uses users 'domain\username' to authenticate curl fails asking for Authorization. Authorization method is NTLM. This code goes in a batch file. Code: curl --proxy-ntlm --proxy-user : --proxy %PROXY_URL% --user %Username%:%Password% -f -O --url "%SITE_URL%" Curl Version: curl 7.30.0 (i386-pc-win32) libcurl/7.30.0 OpenSSL/1.0.1c zlib/1.2.7 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3

cURL NTLM Proxy Authorization

人盡茶涼 提交于 2020-08-04 07:51:09
问题 I have been using curl for some time now and its working fine but with a proxy which uses users 'domain\username' to authenticate curl fails asking for Authorization. Authorization method is NTLM. This code goes in a batch file. Code: curl --proxy-ntlm --proxy-user : --proxy %PROXY_URL% --user %Username%:%Password% -f -O --url "%SITE_URL%" Curl Version: curl 7.30.0 (i386-pc-win32) libcurl/7.30.0 OpenSSL/1.0.1c zlib/1.2.7 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3

NTLM认证协议学习笔记(一)

拥有回忆 提交于 2020-04-09 20:32:32
NTLM认证协议学习笔记(一) zhao_rong 2011-06-15 这个文章放草稿箱里已经太多天了,工作太忙,没时间继续写,先发出来,有空点就写点吧。。。希望大家给意见 NTLM是一种保护在认证过程中保护用户名和密码的认证协议,一般用在Microsoft的产品中,比如IE,IIS等等,以前Windows登陆认证也是用这种认证协议,现在已经被Kerberos协议取代。现在其他的浏览器也支持NTLM认证,Firefox需要输入about:config,把network.auth.force-generic-ntlm设置为true,或者将信任网站加入到network.automatic-ntlm-auth-trusted-uris中, Firefox的相关设置可以google一下,一搜一大把;现在的chrome自己就支持ntlm,不需要额外设置,至少chrome11是这样。 关于IE,需要看设置,工具>Internet选项>安全>自动定义级别,滚动框拉到最下面,用户登录有四个选项,一般都是选择在intranet中自动登录,这是正常的,一般只有内网站点的认证信息才会和你的用户名密码有关,我们现在为了学习实验,可以它设置为自动使用当前用户名和密码登录。 当使用浏览器访问一个URL时,获得401 response code的时候,会弹出对话框让用户输入用户名和密码,类似于下图所示: