-
Notifications
You must be signed in to change notification settings - Fork 45
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 #28
Comments
Checkout this fork. works great for me. https://github.com/cgc17/python-sharepoint/tree/master There is a pull request but its pretty old. |
Here is a solution I pieced together:
Hope that helps! |
#32 👀 |
The above helped me as well when having issues with NTLM authentication. |
Just coming across this thread... I’ve inherited a SharePoint system... yuck, gosh I have something similar and thought I had built it correctly in python 3.7.... is this thread still alive? If it is I’ll post my code. I can connect via session.auth but really struggling with build_opener |
I maybe able to able help. The build_handler function was very difficult for me to finally get working. There is little to no documentation on it.
Thomas
… On Jan 23, 2019, at 3:59 AM, gwsampso ***@***.***> wrote:
Just coming across this thread... I’ve inherited a SharePoint system... yuck, gosh I have something similar and thought I had built it correctly in python 3.7.... is this thread still alive? If it is I’ll post my code. I can connect via session.auth but really struggling with build_opener
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Please do help! |
@thomas-reg did you get a version of your above solution working in python3? We've been using that, but now we need to update to python3, and The only other sharepoint connection methods that use NTLM I found use |
I did get it working with Python3 using the python-ntlm3 module. But soon thereafter we moved to Sharepoint in the Cloud and I had to switch to using OAUTH2 which was more difficult at first and now is easier. I will see if I can pull up my old code and send some snippets, but can you tell me what exactly are the error(s) you are encountering? Can you send a piece of code I can review?
Thomas Register
… On Feb 18, 2020, at 3:19 PM, Graham Pugh ***@***.***> wrote:
@thomas-reg <https://github.com/thomas-reg> did you get a version of your above solution working in python3? We've been using that, but now we need to update to python3, and python-ntlm does not exist for py3. There is an python-ntlm3 module but it fails.
The only other sharepoint connection methods that use NTLM I found use requests (e.g. https://sathua.wordpress.com/2017/05/30/extracting-data-from-sharepoint-using-python-and-rest-api/ <https://sathua.wordpress.com/2017/05/30/extracting-data-from-sharepoint-using-python-and-rest-api/>), but I haven't figured out how to bring requests and sharepoint together (specifically, to make the SharePointSite object).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#28?email_source=notifications&email_token=AEOSMVZY6ECMN75HFJA5DETRDRGFTA5CNFSM4CAH2HG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMFCG2Q#issuecomment-587866986>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEOSMV2CGNVLGMTWZAMR74LRDRGFTANCNFSM4CAH2HGQ>.
|
@thomas-reg
I get the following error, at the point of running the line
|
Update: I managed to solve it by editing two lines in python-ntlm3 - Lines 57 and 107 require Line 57:
Line 107-108:
|
Doest this library provides NTLM authentication? The site in which I'm trying to use has NTLM authentication!
The text was updated successfully, but these errors were encountered: