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.
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.