Hi,
I am doing one application want to know how to get the current active user id,password and domain name using c#.
Thnx.
Get the current active user id,domain name,password from the active directory.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Binu Subi68 pointsPosted Mar 6, 2006, 6:51 AM EST
http://www.c-sharpcorner.com/DirectoryServices.asp
Good Luck!
Tushar Badwe3 pointsPosted Mar 6, 2006, 8:54 PM EST
Thnx for the link,
I am doing the code by using ActiveDS type library.
But I got the right information when I used it with windows desktop vb.net application.But when I am using same library for the c#(asp.net application) its giving me wrong information.
Current username its showing as ASPNET.But the windows logon user is different.
Thnx in advance.