Re: AD Authentication From Windows Forms

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



My question is not about how to deal with the timeout. I want to know how,
if given a user name and password, to determine if that is a valid AD user.
This is a WinForms app, not a web app. Thanks.

Jerry



"Linda Liu [MSFT]" <v-lliu@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:vuX7rFcwGHA.5864@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Jerry,

I am sorry that I may not understand your question exactly.

If I want to authenticate a user against AD from a WinForms app, how do I
go about it?

Could you tell me what you mean by "against AD from a WinForms app"?

I want a user to have to re-authenticate after a timeout period.

This feature is commonly used in web app, in which case we usually make
use
of Session object on Web Server side. If you want to implement this
function in WinForms app, I think you may use Timer component to do it.
Set
the Interval property of the Timer and handle its Tick event to require
the
user to input a password.

I look forward to your reply.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.



.



Relevant Pages

  • RE: Impersonation and remote registry access
    ... Reading "App Lockdown", I found that remote registry uses named pipes. ... I'm confident (from examining the thread token during impersonation) that ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.platformsdk.security)
  • Re: MSAccess to Web App
    ... Online banking is really not in any way analogous to what you're ... proposing for your app. ... be happy with a web app, since they don't have to install ... there is the reality of support that comes into play. ...
    (comp.databases.ms-access)
  • Re: Forms Authentication - Sudden Redirect Failure on Login
    ... login page and executable to the production environment failed, ... web app in VS 2005 using forms authentication. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: AD Authentication From Windows Forms
    ... This is a WinForms app, not a web app. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: AD Authentication From Windows Forms
    ... This is a WinForms app, not a web app. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)