Impersonation without passing username and password.

  • Thread starter Thread starter Luft
  • Start date Start date
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.
 
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
 
wel once it worked as simple as this

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


HTH

Michel
 
Back
Top