Thank you all for you time and efforts.  I tried the LogonUser function at
home on Windows 2000 and it worked great. But, when I came into work...well,
I did not get the same results. I get the following error, even when trying
to validate against my local windows nt 4.0 box.

api_error: (1314, 'LogonUser', ' A required privilege is not held by the
client.')

Thanks for your help in advance.

-Chris

-----Original Message-----
From: Mark Hammond [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 4:28 PM
To: Austin, Chris; [EMAIL PROTECTED]
Subject: RE: credential validation


You should check out the win32 API function called "LogonUser" - this has
special flags to do exactly what you want - not perform a "real" logon, but
simply validate the credentials.

This function is exposed in the Python module win32security.  You wont find
many docs on it in Python, as it is a simple wrapper of the Windows
function.  "Python Programming on Win32" does discuss this in a little more
detail.

This subject has also come up on the newsgroup (as most have!) over the last
few years - a deja search may be useful.

Mark.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Saturday, 9 December 2000 7:58 AM
> To: [EMAIL PROTECTED]
> Subject: credential validation
>
>
> Does anyone know of any module that I can use to validate credentials
> against our NT domain?  I would like to have the user enter their
> username/password on a web page without using NT Challenge Response.
> Reason, I need to validate against a database first then if not
> found in the
> database the script will try to validate against the NT Domain
> users/groups.
>
> Thanks for in advance.
>
> -Chris
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activepython
>

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to