Date parsed: 05/10/2007 01:59:20
Date: Fri, 05 Oct 2007 08:59:20 -0700
Hello,
Please see my answers inline
Dylan Nicholson wrote:
>Running as an administrator, I can retrieve the account password
>stored by IIS for any application pool (using the WAMUserPass
>property). But, unsurprisingly, an ASP.NET application running inside
>an application pool that is does not have administrator privileges
>can't even enumerate the list of application pools.
That is true, by default non-administrators cannot enumerate the list of
application pools.
>I can access the application pool by hard-coding the name, but even
>then the WAMUserPass is an empty property value collection.
That is also true. By default, non-administrators can access non-secure
properties, but not secure properties.
>This doesn't hugely surprise me, but it's somewhat frustrating - the
>reason I want access to this password is to schedule Windows Tasks
>with the same account, and for that I need the password. Seeing as
>the password has already been configured and stored by IIS, I want to
>avoid needing to configure and store it elsewhere too.
>Unless there's another way around this...
I would run the scheduled application with a special user that has been
setup specifically for this purpose. Then you can evaluate what
permissions are needed, and run the application with a locked-down user
account.
Hope this helps!
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info