Click here to get back home

question on setting security

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
question on setting security Special Access 11-09-2006
Get Chitika Premium
Posted by Special Access on November 9, 2006, 10:20 pm
Please log in for more thread options
I have a server that I secured using an INF template we created. Now
they installed IIS and changes were made to the settings. We have a
template that documents the changes in the security settings (iusr,
iwam, iis_wpg and aspnet were added to several user rights) and want
to import that into the original SDB.

Problem is when we import and configure using the second template,
some of the settings are completely over written by it rather than
augmented by it. For example, deny local logon is set to GUESTS by
the original template. When we add IIS, ASPNET is added to this
right. However after we configure the computer with the new template
only ASPNET is listed.

We are using secedit in a script to do this. First we configure with
our security template to create the SDB file, then we configure with
the IIS template.

Obviously I'm doing something wrong here. I would expect the end
result to be a combination of the two templates but any place the
second template makes changes I'm only seeing those changes.

Help?!

Mike

Posted by Roger Abell [MVP] on November 10, 2006, 12:03 pm
Please log in for more thread options
When you merge settings by importing multiple templates into
a sdb in merge mode, they are merged, but not as you expect.
Each policy setting is handled all-or-none, that is, the last
loaded template that specifies a particular setting specifies
the complete, total and exclusive, value for that setting.
In your scenario, the last-loaded IIS template needs to state
both ASPNET and Guests for the Deny local logon settings.

>I have a server that I secured using an INF template we created. Now
> they installed IIS and changes were made to the settings. We have a
> template that documents the changes in the security settings (iusr,
> iwam, iis_wpg and aspnet were added to several user rights) and want
> to import that into the original SDB.
>
> Problem is when we import and configure using the second template,
> some of the settings are completely over written by it rather than
> augmented by it. For example, deny local logon is set to GUESTS by
> the original template. When we add IIS, ASPNET is added to this
> right. However after we configure the computer with the new template
> only ASPNET is listed.
>
> We are using secedit in a script to do this. First we configure with
> our security template to create the SDB file, then we configure with
> the IIS template.
>
> Obviously I'm doing something wrong here. I would expect the end
> result to be a combination of the two templates but any place the
> second template makes changes I'm only seeing those changes.
>
> Help?!
>
> Mike



Posted by Special Access on November 10, 2006, 6:19 pm
Please log in for more thread options
On Fri, 10 Nov 2006 10:03:12 -0700, "Roger Abell [MVP]"

>When you merge settings by importing multiple templates into
>a sdb in merge mode, they are merged, but not as you expect.
>Each policy setting is handled all-or-none, that is, the last
>loaded template that specifies a particular setting specifies
>the complete, total and exclusive, value for that setting.
>In your scenario, the last-loaded IIS template needs to state
>both ASPNET and Guests for the Deny local logon settings.
>
>>I have a server that I secured using an INF template we created. Now
>> they installed IIS and changes were made to the settings. We have a
>> template that documents the changes in the security settings (iusr,
>> iwam, iis_wpg and aspnet were added to several user rights) and want
>> to import that into the original SDB.
>>
>> Problem is when we import and configure using the second template,
>> some of the settings are completely over written by it rather than
>> augmented by it. For example, deny local logon is set to GUESTS by
>> the original template. When we add IIS, ASPNET is added to this
>> right. However after we configure the computer with the new template
>> only ASPNET is listed.
>>
>> We are using secedit in a script to do this. First we configure with
>> our security template to create the SDB file, then we configure with
>> the IIS template.
>>
>> Obviously I'm doing something wrong here. I would expect the end
>> result to be a combination of the two templates but any place the
>> second template makes changes I'm only seeing those changes.
>>
>> Help?!
>>
>> Mike
>

That's what I thought... figures, now I have to re-write the VBS that
generates the IIS.INF file to include any settings already set by the
original template.

Thanks for the info. I appreciate the help.

Mike

Posted by Roger Abell [MVP] on November 10, 2006, 6:34 pm
Please log in for more thread options

> On Fri, 10 Nov 2006 10:03:12 -0700, "Roger Abell [MVP]"
>
>>When you merge settings by importing multiple templates into
>>a sdb in merge mode, they are merged, but not as you expect.
>>Each policy setting is handled all-or-none, that is, the last
>>loaded template that specifies a particular setting specifies
>>the complete, total and exclusive, value for that setting.
>>In your scenario, the last-loaded IIS template needs to state
>>both ASPNET and Guests for the Deny local logon settings.
>>
>>>I have a server that I secured using an INF template we created. Now
>>> they installed IIS and changes were made to the settings. We have a
>>> template that documents the changes in the security settings (iusr,
>>> iwam, iis_wpg and aspnet were added to several user rights) and want
>>> to import that into the original SDB.
>>>
>>> Problem is when we import and configure using the second template,
>>> some of the settings are completely over written by it rather than
>>> augmented by it. For example, deny local logon is set to GUESTS by
>>> the original template. When we add IIS, ASPNET is added to this
>>> right. However after we configure the computer with the new template
>>> only ASPNET is listed.
>>>
>>> We are using secedit in a script to do this. First we configure with
>>> our security template to create the SDB file, then we configure with
>>> the IIS template.
>>>
>>> Obviously I'm doing something wrong here. I would expect the end
>>> result to be a combination of the two templates but any place the
>>> second template makes changes I'm only seeing those changes.
>>>
>>> Help?!
>>>
>>> Mike
>>
>
> That's what I thought... figures, now I have to re-write the VBS that
> generates the IIS.INF file to include any settings already set by the
> original template.
>
> Thanks for the info. I appreciate the help.
>

Actually only any settings in the original that are also to be in the
IIS.inf

Roger



Posted by Roger Abell [MVP] on November 10, 2006, 6:49 pm
Please log in for more thread options
> On Fri, 10 Nov 2006 10:03:12 -0700, "Roger Abell [MVP]"
>
>>When you merge settings by importing multiple templates into
>>a sdb in merge mode, they are merged, but not as you expect.
>>Each policy setting is handled all-or-none, that is, the last
>>loaded template that specifies a particular setting specifies
>>the complete, total and exclusive, value for that setting.
>>In your scenario, the last-loaded IIS template needs to state
>>both ASPNET and Guests for the Deny local logon settings.
>>
>>>I have a server that I secured using an INF template we created. Now
>>> they installed IIS and changes were made to the settings. We have a
>>> template that documents the changes in the security settings (iusr,
>>> iwam, iis_wpg and aspnet were added to several user rights) and want
>>> to import that into the original SDB.
>>>
>>> Problem is when we import and configure using the second template,
>>> some of the settings are completely over written by it rather than
>>> augmented by it. For example, deny local logon is set to GUESTS by
>>> the original template. When we add IIS, ASPNET is added to this
>>> right. However after we configure the computer with the new template
>>> only ASPNET is listed.
>>>
>>> We are using secedit in a script to do this. First we configure with
>>> our security template to create the SDB file, then we configure with
>>> the IIS template.
>>>
>>> Obviously I'm doing something wrong here. I would expect the end
>>> result to be a combination of the two templates but any place the
>>> second template makes changes I'm only seeing those changes.
>>>
>>> Help?!
>>>
>>> Mike
>>
>
> That's what I thought... figures, now I have to re-write the VBS that
> generates the IIS.INF file to include any settings already set by the
> original template.
>
> Thanks for the info. I appreciate the help.

As an afterthought, I once wrote a script to compare templates,
that I still use, and it was not too hard. You could probably
write one that did a quick merge of two templates, or at least
a rewrite of the second to make sure any conflicting values
were merged in, and then use it as a post-processing step to
your existing script.

Roger



Similar ThreadsPosted
Setting COM Security at the parent levels November 7, 2006, 10:01 am
Security question June 19, 2006, 11:09 am
security DFS question October 12, 2006, 10:05 am
Folder security question February 10, 2006, 11:58 am
Security Issue/Question April 28, 2007, 12:12 am
Windows Security Question September 19, 2008, 1:36 am
Security of a Windows 2003 VPN Question April 26, 2006, 5:55 pm
Security Configuration Wizard question December 12, 2007, 8:59 pm
Folder/Share security question January 7, 2008, 10:17 am
Security Right question when copying or moving files September 11, 2006, 2:02 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap