Authenticating a user on Windows Server 2003
From: Matthias Moetje (moetje_at_terasens_nospam_.de)
Date: Sun, 7 Sep 2003 00:56:44 +0200
I have previously been using code derived from KB article
Q180548 HOWTO: Validate User Credentials on Microsoft Operating Systems.
This code always worked well on W2k and WinXP but on Windows Server 2003 the
code fails at function AcceptSecurityContext with error SEC_E_LOGON_DENIED
although the specified credentials are valid.
The same problem occurs with the VB version from article
Q279815 HOWTO: Validate User Credentials from Visual Basic by Using SSPI,
so there must have been some kind of change in Windows 2003.
How can I get this to work? I know, that for security reasons normally this
of authentication should not be used, but we need this function for a setup
that needs to check that the credentials provided ar logon information for a
are valid. (Otherwise the Windows Installer based setup will fail...)
Thanks for any help!