Skip to content

Instantly share code, notes, and snippets.

Brian Manning cordylus

Block or report user

Report or block cordylus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cordylus /
Last active Aug 28, 2015
DEMO: Python - Authenticate Against NTLM
# A simple demonstration of authenticating against ntlm.
# In this case we needed to be certain that we could access
# the SharePoint REST API through python.
import requests
from requests_ntlm import HttpNtlmAuth
def rest_test(domain, user, password, url):
# create a session
session = requests.Session()
You can’t perform that action at this time.