Link to home
Start Free TrialLog in
Avatar of RETAILREALM
RETAILREALMFlag for United States of America

asked on

Obtain user name and password from Active Directory

I am writing a windows service in .Net which will check the current user logged into Active Directory. It will obtain teh user name and password from the active directory and then login to another 3 party program.
Can any one tell me if itis possible to obtain User Name and Password of the current user from active directory?
Avatar of RiteshShah
RiteshShah
Flag of India image

this one is also a good resource, all you need to do is, use Microsoft script repository to access AD from your C#.

http://www.c-sharpcorner.com/Articles/ArticleListing.aspx?SectionID=1&SubSectionID=1
You can get the username but not the password - if you want this then you would need to use an off the shelf SSO application or write your own. (typically you would get the username of the logged on user and pass that to the 3rd party app in a secure way - in very simple terms...)
Avatar of RETAILREALM

ASKER

HI Ritesh,
Thank you for the quick response. I am little short of time here. Let me ask a more specific question. and the links yo have given mostly refer to Windows 2000 Active directory.

Do yoiu know any  code which can help me get the user name and password from the current user in Windows 2003 Active Directory? Retrieving the passwor id particularly important.
ASKER CERTIFIED SOLUTION
Avatar of RiteshShah
RiteshShah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial