PC Review


Reply
Thread Tools Rate Thread

How to authenticate a user.

 
 
sparkhi@europe.com
Guest
Posts: n/a
 
      30th Jan 2007
First and foremost,
1) I am a newbie to the whole active directory thing, so I may be
completely off the mark
2) I could not find a suitable forum for my post, (aspnet security was
closest, however the replies that I would get would be very ASP
oriented and my requirement is winforms)

I have a client server application. At present the user name and
passwords are held in a separate data store and the application does
the authentication itself. I would like to go to ActiveDirectory for
the authentication. The way I want to do it is, As soon as my
application is launched, I want to find out if the current windows
user has been authenticated against the active directory.

If there is a local machine user (who does not have the active
directory), he will not be able to use my application irrespective of
successfully logging into windows. I do not know how to go about it.

I used the following code
System.Security.Principal.WindowsIdentity wi =
System.Security.Principal.WindowsIdentity.GetCurrent();
if (wi.IsAuthenticated)
{
MessageBox.Show("Welcome dude !!");
}
else
{
MessageBox.Show("Bye bye!!");
}

and even in case of a local user, the IsAuthenticated returns true, so
I am not sure how to fulfill my requirement.

TIA,

--SP

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to authenticate a user in SSL page Manuel Ricca Microsoft ASP .NET 0 5th Dec 2007 12:51 PM
Authenticate the user =?Utf-8?B?TWFyaw==?= Microsoft ASP .NET 1 14th Jul 2004 05:03 PM
The user (my user name) has connected and failed to authenticate on port com3. The line has been disconnected. =?Utf-8?B?ZGlzZ3J1bnRsZWQgeHAgdXNlcg==?= Windows XP Work Remotely 0 12th Feb 2004 07:31 PM
unix user to authenticate to a MS kdc Patrick Microsoft Windows 2000 Active Directory 2 21st Aug 2003 03:23 PM
unix user to authenticate to a MS kdc Patrick Microsoft Windows 2000 Security 2 21st Aug 2003 03:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:42 PM.