<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Requests
    PUBLIC "-//iPlanet//iDSAME 5.0 Admin CLI DTD//EN"
    "file:%IDSAME_BASEDIR%/%IDSAME_PRODUCT_DIR%/dtd/amAdmin.dtd"
>
<Requests>
  <OrganizationRequests DN="%ORG_DN%">
    <RegisterServices>
      <Service_Name>SunPortalWSRPProducerService</Service_Name>
    </RegisterServices>
  </OrganizationRequests>

  <OrganizationRequests DN="%ORG_DN%">
    <CreateContainer createDN="WSRPProducers">
    </CreateContainer>
  </OrganizationRequests>

  <ContainerRequests DN="ou=WSRPProducers,%ORG_DN%">
    <CreateSubContainer createDN="default">
      <AttributeValuePair>
        <Attribute name="objectClass"/>
        <Value>top</Value>
        <Value>sunNameSpace</Value>
        <Value>iplanet-am-managed-org-unit</Value>
        <Value>organizationalUnit</Value>
        <Value>sunPortalWSRPProducer</Value>
      </AttributeValuePair>
      <AttributeValuePair>
        <Attribute name="sunPortalWSRPProducerRequiresRegistration"/>
        <Value>true</Value>
      </AttributeValuePair>
      <AttributeValuePair>
        <Attribute name="sunPortalWSRPProducerSupportsInBandRegistration"/>
        <Value>true</Value>
      </AttributeValuePair>
      <AttributeValuePair>
        <Attribute name="sunPortalWSRPProducerRegistrationValidatorClassName"/>
        <Value>com.sun.portal.wsrp.producer.registration.validator.impl.DefaultRegistrationValidator</Value>
      </AttributeValuePair>
    </CreateSubContainer>
  </ContainerRequests>

  <ContainerRequests DN="ou=default,ou=WSRPProducers,%ORG_DN%">
    <RegisterServices>
      <Service_Name>iPlanetAMAuthService</Service_Name>
    </RegisterServices>
  </ContainerRequests>

  <ContainerRequests DN="ou=default,ou=WSRPProducers,%ORG_DN%">
    <CreateServiceTemplate>
      <Service_Name>iPlanetAMAuthService</Service_Name>
    </CreateServiceTemplate>
  </ContainerRequests>

  <PeopleContainerRequests DN="ou=People,ou=default,ou=WSRPProducers,%ORG_DN%">
    <CreateUser createDN="default">
      <AttributeValuePair>
	<Attribute name="cn"/>
	<Value>default</Value>
      </AttributeValuePair>
      <AttributeValuePair>
	<Attribute name="userPassword"/>
	<Value>%IDSAME_USER_NAMING%=default,ou=People,ou=default,ou=WSRPProducers,%ORG_DN%</Value>
      </AttributeValuePair>
    </CreateUser>
  </PeopleContainerRequests>

  <RoleRequests DN="cn=Deny Write Access,%ORG_DN%">
    <AddUsers>
      <DN>%IDSAME_USER_NAMING%=default,ou=People,ou=default,ou=WSRPProducers,%ORG_DN%</DN>
    </AddUsers>
  </RoleRequests>

  <SchemaRequests serviceName="SunPortalWSRPProducerService" SchemaType="Global">
    <ModifyDefaultValues>
      <AttributeValuePair>
        <Attribute name="sunPortalWSRPProducerRegistry"/>
        <Value>
          &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
          &lt;ProducerRegistry xmlns="http://www.sun.com/portal/wsrp/producer"&gt;
            &lt;ProducerRegistryElement&gt;
              &lt;key&gt;default&lt;/key&gt;
              &lt;organization&gt;%ORG_DN%&lt;/organization&gt;
              &lt;instance&gt;default&lt;/instance&gt;
            &lt;/ProducerRegistryElement&gt;
          &lt;/ProducerRegistry&gt;
        </Value>
      </AttributeValuePair>
    </ModifyDefaultValues>
  </SchemaRequests>
</Requests>
