Re: Uploading web service

From: Manohar Kamath (mkamath_at_TAKETHISOUTkamath.com)
Date: 03/04/05


Date: Fri, 4 Mar 2005 07:21:45 -0600

You can still impersonate, but use one account -- domain or local, which has
access to the network share. You can encrypt the username and password and
store it in registry using aspnet_setreg utility. Here's the info:

http://support.microsoft.com/default.aspx?scid=kb;en-us;329290

Hope that helps.

-- 
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Ramesh Chawla" <rameh28th@rediffmail.com> wrote in message
news:71D58A99-22E0-4521-A433-E740D0AB7B58@microsoft.com...
> I am making a web service which accesses a shared directory on the netwoek
to
> upload a file there. Here comes the problem, When I use impersonation and
> give the userName & password of an authenticated user, then it works fine
but
> when I impersonate, using ASPNET account of the machine where web service
is
> being hosted then the whole uploading process fails. As, it also exposes
the
> password in clear text format, it is also not acceptable. Also, if I make
a
> group on the machine where directory is shared, then again I cannot add
the
> ASPNET user account of the machine where web service being hosted, in that
> usergroup.
>
> So is there any solution for the above problem? All the suggestions and
> queries are welcome.
> -- 
> Thanks & Regards,
> Ramesh


Relevant Pages

  • Re: Why Must Impersonation be Used?
    ... Altough the application is running with Integrated Windows Authentication, ... the ASP.NET process is impersonated with the account ASPNET (Or the account ... It must consume to a web service we are publishing on ... If we don't impersonate first, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: how to pass nt password ?
    ... > f) the logonuser fucntion requires username, ... > Hope this explains why i want to pass my "password" onto other machines to impersonate. ... Services can have their own credentials. ... So long as the account exists on the local machine, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Accessing a network share with a non-domain account
    ... call LogonUser with the NEW_CREDENTIAL option - you can pass in the username/password on the account on the target machine. ... Then impersonate and access the resource. ... The shared drive requires a username and password. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: cannot log on to user account following password change
    ... cannot log on to user account following password change ... I changed the username on the account in ... | on the sbs box. ...
    (microsoft.public.windows.server.sbs)
  • Re: Sql Reporting Serviced - > ASP.NET ACCESS DENIED!
    ... The account you are logging in to when on the server doesn't have the ... do you have <Impersonate> set to True? ... > Exception Details: System.UnauthorizedAccessException: Access to the path ...
    (microsoft.public.dotnet.framework.aspnet.security)