Re: Programmatic Access to LogOn Dialog



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.

.



Relevant Pages

  • Programmatic Access to LogOn Dialog
    ... My question is about programmatic use of Windows authentication. ... way to prompt the user for his/her password and ... for example when a supervisor wishes to access restricted ... are part of the same domain and all users of the system have Windows domain ...
    (microsoft.public.platformsdk.security)
  • RE: Integrated Authentication
    ... Your understanding about how Integrated Windows Authentication is right. ... external site and prompt you for credentials again. ... Microsoft Developer Support ...
    (microsoft.public.inetserver.iis.security)
  • Re: IIS Windows Authentication
    ... I have checked the Windows Authentication ... >prompt for the Windows Username and Passowrd. ... Add the domain to your Intranet sites in the security tab of Internet ...
    (microsoft.public.inetserver.iis.security)
  • Windows Authentication security
    ... protect with Windows Authentication directory security, ... I thought IIS would not prompt users to log in to the web ...
    (microsoft.public.inetserver.iis.security)
  • IIS Windows Authentication
    ... I ran into interesting problem while configuring IIS ... I have checked the Windows Authentication ... prompt for the Windows Username and Passowrd. ...
    (microsoft.public.inetserver.iis.security)