<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Requests SYSTEM "file:%IDSAME_BASEDIR%/SUNWam/dtd/amAdmin.dtd">
<Requests>

    <!-- Remove SRA online help from online help list -->
    <SchemaRequests serviceName="iPlanetAMAdminConsoleService" SchemaType="Organization">
        <RemovePartialDefaultValues>
            <AttributeValuePair>
                <Attribute name="iplanet-am-admin-console-online-help"/>
                <Value>SRA Help|ps/srahelp.html|srapGatewayAdminConsole|%DYNAMIC_URI%</Value>
            </AttributeValuePair>
        </RemovePartialDefaultValues>
    </SchemaRequests>

    <!-- Remove gateway authentication configuration -->
    <OrganizationRequests DN="%ORG_DN%">
        <DeleteSubConfiguration subConfigName="Configurations/srapGatewayAccessService"
            serviceName="iPlanetAMAuthConfiguration"/>
    </OrganizationRequests>

    <!-- Delete gateway logging user -->
    <PeopleContainerRequests DN="%PEOPLE_DN%">
        <DeleteUsers>
            <DN>
                %USER_NAMING_ATTR%=amService-srapGateway,%PEOPLE_DN%
            </DN>
        </DeleteUsers>
    </PeopleContainerRequests>
    
    <!-- Remove gateway access service from required services list -->
    <SchemaRequests serviceName="iPlanetAMAdminConsoleService" SchemaType="Organization">
        <RemovePartialDefaultValues>
            <AttributeValuePair>
                <Attribute name="iplanet-am-required-services"/>
                <Value>srapGatewayAccessService</Value>
            </AttributeValuePair>
        </RemovePartialDefaultValues>
    </SchemaRequests>

    <!-- Remove gateway domain from cookie domain list -->
    <!-- TODO - What if Portal server and Gateway domains are same ?
    
    <SchemaRequests serviceName="iPlanetAMPlatformService" SchemaType="Global">
        <RemovePartialDefaultValues>
            <AttributeValuePair>
                <Attribute name="iplanet-am-platform-cookie-domains"/>
                <Value>.%GW_DOMAIN%</Value>
            </AttributeValuePair>
        </RemovePartialDefaultValues>
    </SchemaRequests>

    -->

    <!-- Delete basic authentication through gateway policy and unregister gateway service -->
    <OrganizationRequests DN="%ORG_DN%">
        <UnregisterServices>
            <Service_Name>srapGatewayAccessService</Service_Name>
        </UnregisterServices>
        <DeletePolicy deleteDN="%ORG_DN%">
            <PolicyName name="To enable Basic Authentication through Gateway"/>
        </DeletePolicy>
    </OrganizationRequests>

    <!-- Delete all gateway configurations -->
    <ServiceConfigurationRequests serviceName="srapGatewayService">
        <DeleteAllServiceConfiguration/>
    </ServiceConfigurationRequests>

</Requests>

