Re: impersonation



Am Tue, 31 May 2005 11:42:34 -0500 schrieb Mark:

> Assume a windows domain, and a .NET windows application connecting to a SQL
> Server 2000 server on the domain. I don't want to give a windows user or
> group direct access to modifying data, or executing stored procedures. I'd
> like to use impersonation, once I've validated the user. However, I don't
> want to store the impersonation credentials in clear text, or similar.
>
> What is the recommended way of dealing with this situation? Code
> samples/link to a related article would be appreciated.
>
> Thanks in advace.
>
> Mark

Hi Mark,

System.Net.CredentialCache.DefaultCredentials returns the user running
current application.
You could use a WebService to do the database stuff. If you do so it's
quite easy to set the permissions of that WebService to a certain user
group. Then you just need to add that webservice as a web reference (which
will be inherited from SoapHttpClientProtocol class) and supply it with
these credentials before calling any methods.

I dont know any samples right now but I hope this is a good start. Hope
this helps.

Regards,
Munir Husseini
.



Relevant Pages

  • Re: Openldap and Active Directory Trust Relationship
    ... >> through a Trust Relationship between windows domain and kerberos realm ... >> Supposely windows should trust mac os x server kdc to authenticate ... and both mac and win server have user accounts. ...
    (microsoft.public.win2000.active_directory)
  • Using secured COM+ component over a ASP.net WebService with impersonate
    ... a asp.net client with windows nt auth. ... a COM+ dll which is called over DCOM (the dll is on a remote W2k Server and ... only restiricted users can access this dll., the webservice server and the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How do you get ECONNRESET on recv?
    ... UX 11 Pa RISC that sends a SOAP request via sendto a webservice ... network issue between the client and server. ... Solaris and Windows and have never experienced this issue. ...
    (comp.unix.programmer)
  • Re: Visual Studio 2008 Webservice conversion problem
    ... The webservice needs to be able to run on Windows ... The Test environment happens to be a Windows 2003 Server. ... John Saunders | MVP – Windows Server System – Connected System Developer ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • REPOST made 04 feb 04
    ... > installed on my own win 2k server. ... > linux server is on the same LAN as the geocode webservice server, ... > not a firewall problem. ... >> Are you sure the service is running on the Windows box? ...
    (comp.os.linux.setup)