Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- username = "GS-1434"
- domain = "gslab.com"
- password = ""
- import win32security
- token = win32security.LogonUser(
- username,
- domain,
- password,
- win32security.LOGON32_LOGON_NETWORK,
- win32security.LOGON32_PROVIDER_DEFAULT)
- authenticated = bool(token)
- if authenticated == 1:
- print "You are Authenticated"
- else:
- print "Wrong Credentials"
- #print authenticated
Add Comment
Please, Sign In to add comment