-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ntlm authentication #3731
ntlm authentication #3731
Conversation
Want to reuse the prompting options for ntlm.
otherwise wouldn't error until after user inputs un/pw
Added to allow the finally statement in main to run.
@vmuriart @pfmoore It looks like this came to a standstill because existing ntlm libraries were stagnant, restrictively licensed, focused for web not proxy, have password storage security issues, or have massive compiled dependencies. Is that correct? I recently put together (independently) a little bit of code to download through an ntlm proxy using SSPI credentials, with a ctypes alternative to pywin32. Do you want to take a look and suggest what it would take to properly solve this problem with python installers behind corporate networks? |
@benjimin Your library looks promising! Couple things (I think I know the answer, but want to verify)
|
|
Thanks for the reply. They are along the lines of what I was thinking, but wanted to confirm. |
My intention is for myself and others to be able to install python software without needing to separately find and download every dependency manually (through a web browser). I'm commenting here for ideas how/where best to contribute to that? Ideally, random python software (but especially pip/conda) should just work everywhere, even alas on MS-Windows and even behind corporate firewalls (like all mainstream/opensource web browsers already do). Rather than building a separate package and patching proxy-auth support into everything separately, I personally think it would be simpler if the de facto standard python web library were updated so that the defaults would work everywhere (either by implementing system proxy autodetection and WPAD/PAC, a 407 handler, code for the different auth protocols, trying system credentials if safe, and only raising an exception if it is necessary to prompt the user; or perhaps defaulting to use the native OS higher-level HTTP/S API rather than a low-level python sockets implementation). But I'm not sure what other people think is the best solution? |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
Hi @vmuriart! Is this still something that might be useful? If so, could you merge/rebase this PR on the current master and update it? |
Closing due to a lack of response. :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Adding ntlm for #1182. Other authentication libraries can be added the same way (ie, kerberos)
The import statement was placed inside the method to only import when needed, and not cause an ImportError if package isn't installed.
This was automatically migrated from #3419 to reparent it to the
master
branch. Please see original pull request for any previous discussion.Original Submitter: @vmuriart