Re: How to assign a fixed identity to ASPNET process?
From: Tom Vogel (tvch@yahoo.com)
Date: 10/13/02
- Next message: John: "Unique Windows Account Identifier"
- Previous message: Jon: "Re: Forms Authentication and ASP"
- In reply to: Jimco Add-ins: "Re: How to assign a fixed identity to ASPNET process?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Tom Vogel" <tvch@yahoo.com> Date: Sun, 13 Oct 2002 13:36:47 +0200
I specified the userName attribute in the form of "domain\userid".
And I tried with both 'Forms' and 'Windows' authentication in the config
file.
It doesn't make a difference. The same error message appears.
I tried this also on my own computer (Win2k Pro) with the administrator
account. Same result.
But running the entire ASP.NET application under a write-privileged account
is not a good solution anyway. I might try to programatically impersonate
and revert whenever the app needs to write to disk. The only difficulty with
that is to create an account token with the advapi32.dll. Does anybody have
a working sample for that?
"Jimco Add-ins" <jimco@nospam.jimcoaddins.com> wrote in message
news:#2VF0LgcCHA.1748@tkmsftngp12...
> What type of authentication are you using?
>
> --
>
> Jimco Add-ins
> -------------------------------------------------------------------
> http://www.jimcoaddins.com
> FREE Add-ins and Utilities for FrontPage
> -------------------------------------------------------------------
> Secure pages with ASP!
> Read our most recent edition of Insights
> -------------------------------------------------------------------
>
>
>
> "Tom Vogel" <tvch@yahoo.com> wrote in message
> news:uzQ8DJgcCHA.2324@tkmsftngp11...
> > The configuration setting <identity impersonate="true" /> prompts for
> > username password when the ASP.NET application attempts to write a file.
> >
> > Therefore I tried using the identity impersonation with a fixed username
> >
> > <identity impersonate="true" userName="myaccount"
password="mypassword"/>
> >
> > but I got the following error:
> >
> > Could not create Windows user token from the credentials specified in
the
> > config file. Error from the operating system 'A required privilege is
not
> > held by the client. '
> >
> > I used my FTP account which does allow me to write to the specified
> > location. Any ideas?
> >
> > Tom
> >
> > "Jimco Add-ins" <jimco@nospam.jimcoaddins.com> wrote in message
> > news:uATCt4ecCHA.1340@tkmsftngp10...
> > > Tom,
> > >
> > > All you have to do is change your web.config file. If you enable
> > > impersonation and deny unauthenticated users, you will be running
under
> > your
> > > own account. In other words, add the following:
> > >
> > > <identity impersonate="true" />
> > >
> > > Then you will need to change the <authorization> section as follows:
> > >
> > > <authorization>
> > >
> > > <deny users="?" />
> > >
> > > </ authorization>
> > >
> > > --
> > >
> > > Jimco Add-ins
> > > -------------------------------------------------------------------
> > > http://www.jimcoaddins.com
> > > FREE Add-ins and Utilities for FrontPage
> > > -------------------------------------------------------------------
> > > Secure pages with ASP!
> > > Read our most recent edition of Insights
> > > -------------------------------------------------------------------
> > >
> > >
> > >
> > > "Tom Vogel" <tvch@yahoo.com> wrote in message
> > > news:#HuEauecCHA.2520@tkmsftngp11...
> > > > The situation at my ASP.NET hosting provider is that,
> > > > - I have a virtual web server
> > > > - a Windows NT account and FTP access to my folder
> > > > - and ASP.NET running, I assume, under the ASPNET account
> > > >
> > > > The problem is, that the ASPNET account can read my pages but I have
> no
> > > > other privileges like writing to disk etc.
> > > >
> > > > Unfortunately Microsoft only lets you change the username in the
> > > > ProcessModel section of the machine.config file. This is not a
> suitable
> > at
> > > > all for a multi-site environment.
> > > >
> > > > What I'd like to do is have the ASP.NET process run under my account
> id.
> > > Is
> > > > this possible and how?
> > > >
> > > > Thanks for your help.
> > > >
> > > > Tom
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: John: "Unique Windows Account Identifier"
- Previous message: Jon: "Re: Forms Authentication and ASP"
- In reply to: Jimco Add-ins: "Re: How to assign a fixed identity to ASPNET process?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|