-
Notifications
You must be signed in to change notification settings - Fork 63
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
401 error while connecting to EWS #36
Comments
Can you go through this doc https://suds-py3.readthedocs.io/en/latest/#windows-ntlm If you could share a simple NET WCF service with NTML auth enabled, i could test and fix if possible. Have a look at |
@cackharot code:
error logs:
Note:
|
@cackharot seems the issue is with https://github.com/trustrachel/python-ntlm3. where the |
I am connecting to EWS, but I get 401 error
urllib.error.HTTPError: HTTP Error 401: Anonymous Request Disallowed
Below is the code
ssl._create_default_https_context = ssl._create_unverified_context
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.client').setLevel(logging.DEBUG)
url = "https://xxx.xxx.xxx.com/EWS/Services.wsdl"
username = 'DOMAIN\USER'
password = 'PASS'
ntlm = WindowsHttpAuthenticated(username=username,password=password)
client = Client(url=url,transport=ntlm)
The text was updated successfully, but these errors were encountered: