-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows SSPI support and use newer NTLM class (#10)
* Use simpler token generator for NTLM auth * Fix up auth after recent changes * Added Windows SSPI support * Satisfy pep8
- Loading branch information
Showing
6 changed files
with
166 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,19 +122,16 @@ def test_username_without_domain(self): | |
actual = NtlmContext("username", "password") | ||
assert actual.domain == "" | ||
assert actual.username == "username" | ||
assert actual.password == "password" | ||
|
||
def test_username_in_netlogon_form(self): | ||
actual = NtlmContext("DOMAIN\\username", "password") | ||
assert actual.domain == "DOMAIN" | ||
assert actual.username == "username" | ||
assert actual.password == "password" | ||
|
||
def test_username_in_upn_form(self): | ||
actual = NtlmContext("[email protected]", "password") | ||
assert actual.domain == "" | ||
assert actual.username == "[email protected]" | ||
assert actual.password == "password" | ||
|
||
|
||
class TestSession(object): | ||
|