Impersonation without passing username and password.

L

Luft

I have a service running on a server that gives users access to a
database through remoting services. My supervisor wants the server
that the service starts to access the database with the user
credentials of the user making the request.

I'm thinking that this will have to be done though some kind of
impersonation but all of the examples I have seen require me to pass
the user name and password. The user is logged onto our domain and I
need to find a way to access the database through the server via
remoting using the credentials of the user without passing a username/
password.
 
M

Martin H.

Hello Luft,

perhaps you could use NTLM. This way you do not need
to know the password as the whole process is done
behind the scenes by Windows.

Best regards,

Martin
 
M

Michel Posseth [MCP]

wel once it worked as simple as this

Dim myProxy As localhost.Service1 = New localhost.Service1()
myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials


HTH

Michel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top