linkchecker icon indicating copy to clipboard operation
linkchecker copied to clipboard

Does not authenticate against IS aproxy

Open wummel opened this issue 13 years ago • 5 comments

Converted from SourceForge issue 3345882, submitted by None

Linkchecker picks up the proxy server settings from IE (and via set http_proxy=) and prints it correctly whenrunning but does not authenticate against the ISA server, even though in IE and env var state the user and password.

I can send a trace file on request.

wummel avatar Dec 21 '12 14:12 wummel

Submitted by None

forgot to mention that the proxy requires NTLM

wummel avatar Dec 21 '12 14:12 wummel

Submitted by calvin

Yeah, NTLM authentication is a major pain. Please send a trace file and hopefully I can whip up some kind of support for this. I'm making no promises though.

wummel avatar Dec 21 '12 14:12 wummel

Hello, I find a need for NTLM auth. to be available. If you can point me to a how-to for creating a trace file, I would certainly assist.

fwfr avatar Mar 05 '13 19:03 fwfr

Since linkchecker uses Python requests now you might want to look at https://github.com/requests/requests-ntlm and see if you can get it running in linkcheck/checker/httpurl.py:HttpUrl.send_request()

wummel avatar Mar 11 '14 20:03 wummel

To solve NTLM authentication, the following working for me.

site-packages\linkcheck\director\aggregator.py

... from requests_ntlm import HttpNtlmAuth ... def new_request_session(config, cookies): """Create a new request session.""" session = requests.Session() if config["ntlmuser"] and config["ntlmpassword"]: session.auth = HttpNtlmAuth(config["ntlmuser"],config["ntlmpassword"])

site-packages\linkcheck\configuration\confparse.py

def read_authentication_config (self): ... self.read_string_option(section, "ntlmuser") self.read_string_option(section, "ntlmpassword")

.linkchecker\linkcheckerrc ... ##################### password authentication ########################## [authentication] .... ntlmuser=domain\username ntlmpassword=password

Jinggit avatar Aug 02 '18 22:08 Jinggit