'authurl is a random URL on the server that is protected by NTLM.
user is the Windows user, probably in the DOMAIN\username format.
pw is the password for the user.'

def __init__(self, user, pw, authurl, *args, **kwargs):

    super(NTLMConnectionPool, self).__init__(*args, **kwargs)
    self.authurl = authurl
    self.rawuser = user
    user_parts = user.split('\\', 1)
    self.domain = user_parts[0].upper()
    self.user = user_parts[1]
    self.pw = pw
