Skip to content

Instantly share code, notes, and snippets.

View cordylus's full-sized avatar

Brian Manning cordylus

View GitHub Profile
@cordylus
cordylus / ntlm_auth_demo.py
Last active August 28, 2015 19:32
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()