Re: Programmatic Access to LogOn Dialog
- From: Kellie Fitton <KELLIEFITTON@xxxxxxxxx>
- Date: Mon, 28 Apr 2008 18:32:41 -0700 (PDT)
On Apr 28, 7:11 am, Gholson <Ghol...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
My question is about programmatic use of Windows authentication. Is there a
way to prompt the user for his/her password (and optionally a user name) and
return a simple authentication pass/fail result (plus user name if
applicable) to the caller?
To elaborate: I'm developing a Windows application that needs to do two
things: (a) confirm the identity of the current user at various stages to
provide a chain of custody; (b) confirm the identity of a user other than the
current one, for example when a supervisor wishes to access restricted
functionality.
Clearly, I could do this by implementing my own password system but I'd like
to use Windows authentication if possible as this would be both more elegant
and more secure. The application is a client-server system written in VB
under VS 2005 using SQL Server 2005 as the back end. All machines/accounts
are part of the same domain and all users of the system have Windows domain
accounts.
Any suggestions would be appreciated. Thank you in anticipation.
Hi,
You can use the following APIs to create and display
a configurable dialog box that accepts credentials
information from a user:
CredUIPromptForCredentials()
CredUIPromptForWindowsCredentials()
http://msdn2.microsoft.com/en-us/library/aa375177(VS.85).aspx
http://msdn2.microsoft.com/en-us/library/aa375178(VS.85).aspx
Kellie.
.
- References:
- Programmatic Access to LogOn Dialog
- From: Gholson
- Programmatic Access to LogOn Dialog
- Prev by Date: RE: Programmatic smartcard logon certificate renewal on behalf of...
- Next by Date: RE: Programmatic smartcard logon certificate renewal on behalf of.
- Previous by thread: RE: Programmatic Access to LogOn Dialog
- Next by thread: Programmatic smartcard logon certificate renewal on behalf of...
- Index(es):
Relevant Pages
|