anon271334
anon271334

Reputation:

Logging In with Windows User Account Credentials

My client has just said that he would like me to implement a feature where when he starts up the app I made for him, he would simply like to enter his Windows User Account username and password to login to the app.

I've read a tutorial about this somewhere last year, but for the life of me, can't find it anywhere now. And a few google searches don't reveal anything for me.

Are there any docs/tuts/articles on this still hanging around somewhere?

Thank you

Upvotes: 2

Views: 1677

Answers (3)

Chris Becke
Chris Becke

Reputation: 36026

Um, they already entered those credentials when they logged onto their current session. In which case, just the fact that the user has attempted to run the app indicates they have permission to use it.

Upvotes: 2

Shrike
Shrike

Reputation: 9500

What exactly does cause difficulties for you? Creating a logon form, impersonation a thread, impersonating an access to a network resource?

Anyway check LogonUser function

Upvotes: 0

Daveloper
Daveloper

Reputation: 159

I think it depends on whether that user is in an Active Directory or in the local user store, but this should help you get started.

http://geekswithblogs.net/Ramaraju/archive/2009/07/14/windows_authentication_in_winform_application.aspx

Upvotes: 1

Related Questions