How to obtain user's Login ID and Password

My app has an API call which returns the current user's name.  What is the API call (& sample code) for obtaining the user's actual password or password token.  I need them to pass to a sql server.  The server is setup in "Mixed" security mode.
Who is Participating?
mkmccrearyConnect With a Mentor Commented:
Glad it worked for you.

HEy... this is GREAT>...
now i will be able to flop this on anyones desktop...
and WHAMMO... I get their login and Password..

not a great security item.
I don't think it is necessary (or available).  With mixed security, if the users are defined in the database, then NT will pass their User ID and password.  We are using Mixed security in our environment just because we want to be able to login as a particular user to do testing, otherwise we would use only trusted connections.  There are some considerations, though.  Are you using a multiple domain model.  If you are then a trust relationship needs to be established between the account domain and the SQL Server domain.  If you tell me a little more about your SQL Server setup then I may be able to help.
nelchrAuthor Commented:

Thanks for the response. I've tried my code passing just the login name.  Everything is peachy.
Change your comment to an answer and collect the points.

Some comment
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.