Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login with current Domain Account

Status
Not open for further replies.

russland

Programmer
Jan 9, 2003
315
CH
Hi, I wrote an c# .NET 2.0 WinForm client. Since me and my mates are already loged in at our ActiveDirectory, I think it would be fancy if this client could login with that existing account to my server application (WebService to check if granted)
I found ...
System.Security.Principal.WindowsIdentity.GetCurrent()
... which returns the current user (obj WindowsIdentity.

a) I can read the UserName from that object, but how do I read the password? Is that even possible (I hope not!!)?

b) Can I send the object (WindowsIdentity) directly so that I don't have to mess/read/copy the password (I'd feel more comfortable with this approach).

Any wise hint is higly appreciated. Thanks heaps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top