Prev: Application startup time too long
Next: handle activeX dll Generated event in my WPF/.NET application
From: Luft on 13 May 2010 17:33 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.
From: Martin H. on 14 May 2010 02:10 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 On 13.05.2010 23:33, Luft wrote: > 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.
From: Michel Posseth [MCP] on 14 May 2010 02:51
wel once it worked as simple as this Dim myProxy As localhost.Service1 = New localhost.Service1() myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials HTH Michel "Luft" <edamron(a)spamcop.net> schreef in bericht news:421f9a35-f4cf-44fa-8a78-82d60db284b6(a)v12g2000prb.googlegroups.com... >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. |