win32security.LogonUser
PyHANDLE = LogonUser(Username, Domain , Password , LogonType , LogonProvider )
Attempts to log a user on to the local computer, that is, to the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer.
Parameters
Comments
Accepts keyword argsOn Windows 2000 and earlier, the calling process must have SE_TCB_NAME privilege.