Hi,

As per your suggestions we are migrating our server.xml from 1.5.4 to 1.5.7,
however I am bit confused with it. If you could help me to convert it or
give me a guide to use 1.5.7 server.xml it would be a great help.
-- 

I have attached the 1.5.4 server.xml file.


Thank you.
Sudheer Kumar Arimbra
<?xml version="1.0" encoding="UTF-8"?>

<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
-->


<spring:beans xmlns:spring="http://xbean.apache.org/schemas/spring/1.0"; 
			  xmlns:s="http://www.springframework.org/schema/beans";
			  xmlns="http://apacheds.org/config/1.0";>

  <defaultDirectoryService id="directoryService" instanceId="default"
                           workingDirectory="rdsinst"
                           allowAnonymousAccess="false"
                           accessControlEnabled="true"
                           denormalizeOpAttrsEnabled="false">
    <systemPartition>
      <!-- use the following partitionConfiguration to override defaults for -->
      <!-- the system partition                                              -->
      <jdbmPartition id="system" cacheSize="100" suffix="ou=system" optimizerEnabled="true" syncOnWrite="true">
        <indexedAttributes>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
          <jdbmIndex attributeId="ou" cacheSize="100"/>
          <jdbmIndex attributeId="uid" cacheSize="100"/>
          <jdbmIndex attributeId="objectClass" cacheSize="100"/>
        </indexedAttributes>
      </jdbmPartition>
    </systemPartition>

    <partitions>
      <!-- NOTE: when specifying new partitions you need not include those   -->
      <!-- attributes below with OID's which are the system indices, if left -->
      <!-- out they will be automatically configured for you with defaults.  -->
      <jdbmPartition id="RDS" cacheSize="100" suffix="dc=telelogic,dc=com" optimizerEnabled="true"
                     syncOnWrite="true">
        <indexedAttributes>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
          <jdbmIndex attributeId="dc" cacheSize="100"/>
          <jdbmIndex attributeId="ou" cacheSize="100"/>
          <jdbmIndex attributeId="objectClass" cacheSize="100"/>
          <jdbmIndex attributeId="uniquemember" cacheSize="100"/>
		  <jdbmIndex attributeId="cn" cacheSize="100"/>
		  <jdbmIndex attributeId="sn" cacheSize="100"/>
		  <jdbmIndex attributeId="member" cacheSize="100"/>
          <jdbmIndex attributeId="uid" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsFullyQualifiedObjectId" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsDoorsUserId" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsDoorsGroupId" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsRoleId" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsCorporateDN" cacheSize="100"/>
  		  <jdbmIndex attributeId="tdsdoorsdatabaseid" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsEndId" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsExternalObjectContext" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsExternalObjectURN" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsRelationshipTypeId" cacheSize="100"/>
		  <jdbmIndex attributeId="tdsApplicationRepositoryId" cacheSize="100"/>
          <jdbmIndex attributeId="tdsExternalObjectURN" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsEndIdA" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsEndIdB" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsExtObjectARepId" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsExtObjectBRepId" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsExtObjectAURN" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsExtObjectBURN" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsExtObjectAContext" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsExtObjectBContext" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsEndARuleValues" cacheSize="100"/>
		  <jdbmIndex attributeId="rdsEndBRuleValues" cacheSize="100"/>
        </indexedAttributes>
      </jdbmPartition>
    </partitions>

    <interceptors>
      <normalizationInterceptor/>
      <s:bean id="Apache Authentication" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.authentication.RDSAuthenticationInterceptor" />
	  <aciAuthorizationInterceptor/>
      <defaultAuthorizationInterceptor/>
      <exceptionInterceptor/>
      <operationalAttributeInterceptor/>
      <s:bean id="Apache RDS Password Policy" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.passwordpolicy.RDSPasswordPolicyInterceptor" />

      <!-- Uncomment to enable the password policy interceptor
      <passwordPolicyInterceptor/>
      <keyDerivationInterceptor/>
      -->
      <schemaInterceptor/>
      <subentryInterceptor/>
      <collectiveAttributeInterceptor/>
      <eventInterceptor/>
      <triggerInterceptor/>

      <!-- Uncomment to enable replication interceptor
      <replicationInterceptor>
        <configuration>
          <replicationConfiguration serverPort="10390" peerReplicas="instanc...@localhost:10392">
            <replicaId>
              <replicaId id="instance_a"/>
            </replicaId>
          </replicationConfiguration>
        </configuration>
      </replicationInterceptor>
      -->
    </interceptors>
  </defaultDirectoryService>

  <standardThreadPool id="standardThreadPool" maxThreads="8"/>
  <datagramAcceptor id="datagramAcceptor" logicExecutor="#standardThreadPool"/>
  <socketAcceptor id="socketAcceptor" logicExecutor="#standardThreadPool"/>

<!--  missing  atou=users,dc=example,dc=com
  <changePasswordServer ipPort="60464">
    <directoryService>#directoryService</directoryService>
    <datagramAcceptor>#datagramAcceptor</datagramAcceptor>
    <socketAcceptor>#socketAcceptor</socketAcceptor>
  </changePasswordServer>
-->
<!--  missing atou=users,dc=example,dc=com
  <kdcServer ipPort="60088">
    <directoryService>#directoryService</directoryService>
    <datagramAcceptor>#datagramAcceptor</datagramAcceptor>
    <socketAcceptor>#socketAcceptor</socketAcceptor>
  </kdcServer>
-->
  <ntpServer ipPort="60123">
    <datagramAcceptor>#datagramAcceptor</datagramAcceptor>
    <socketAcceptor>#socketAcceptor</socketAcceptor>
  </ntpServer>
<!--  missing atou=users,dc=example,dc=com
  <dnsServer ipPort="8053">
    <directoryService>#directoryService</directoryService>
    <datagramAcceptor>#datagramAcceptor</datagramAcceptor>
    <socketAcceptor>#socketAcceptor</socketAcceptor>
  </dnsServer>
-->

 <!--  <ldapService id="ldapsService"
              enabled="true"
              ipPort="1636"
			  maxSizeLimit="1500"
              enableLdaps="true">
    <directoryService>#directoryService</directoryService>
    <socketAcceptor>#socketAcceptor</socketAcceptor>
  </ldapService>
  -->

   <s:bean id="ldapsService" class="org.apache.directory.server.ldap.LdapService">
	<s:property name="ipPort" value="1636" />
	<s:property name="enableLdaps" value="true"/>
	<s:property name="enabled" value="true"/>
	<s:property name="allowAnonymousAccess" value="false"/>
	<s:property name="saslHost" value="ldap.example.com"/>
	<s:property name="saslPrincipal" value="ldap/[email protected]"/>
	<s:property name="searchBaseDn" value="ou=people,dc=telelogic,dc=com"/>
	<s:property name="maxTimeLimit" value="15000"/>
	<s:property name="maxSizeLimit" value="1500"/>
    <s:property name="directoryService" ref="directoryService"/>
    <s:property name="socketAcceptor" ref="socketAcceptor"/>
	<s:property name="saslMechanismHandlers">
		<s:map>
			<s:entry key="PLAIN">
				<s:bean id="PlainHandler" class="org.apache.directory.server.ldap.handlers.bind.plain.PlainMechanismHandler"/>
			</s:entry>
			<s:entry key="SIMPLE">
				<s:bean id="simpleMechanismHandler" class="org.apache.directory.server.ldap.handlers.bind.SimpleMechanismHandler"/>
			</s:entry>
			<s:entry key="RDS-SASL">
				<s:bean id="RDSSASLMechanismHandler" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sasl.server.RDSSASLMechanismHandler"/>
			</s:entry>	
			<s:entry key="GSS-SPNEGO">
				<s:bean id="ntlmMechanismHandler" class="org.apache.directory.server.ldap.handlers.bind.ntlm.NtlmMechanismHandler">
				</s:bean>
			</s:entry>
		</s:map>
	</s:property>
	<s:property name="extendedOperationHandlers">
		<s:list>
			<s:bean id="startTlsHandler" class="org.apache.directory.server.ldap.handlers.extended.StartTlsHandler"/>
			<s:bean id="gracefulShutdownHandler" class="org.apache.directory.server.ldap.handlers.extended.GracefulShutdownHandler"/>
			<s:bean id="launchDiagnosticUiHandler" class="org.apache.directory.server.ldap.handlers.extended.LaunchDiagnosticUiHandler"/>
			<s:bean id="customExtendedHandler" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sso.CreateSSOCustomExtendedHandler"/>
			<s:bean id="customExtendedHandler" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sso.ValidateSSOCustomExtendedHandler"/>
		</s:list>
	</s:property>	
  </s:bean>

  <s:bean id="ldapService" class="org.apache.directory.server.ldap.LdapService">
	<s:property name="ipPort" value="1389"/>
	<s:property name="allowAnonymousAccess" value="false"/>
	<s:property name="saslHost" value="ldap.example.com"/>
	<s:property name="saslPrincipal" value="ldap/[email protected]"/>
	<s:property name="searchBaseDn" value="ou=people,dc=telelogic,dc=com"/>
	<s:property name="maxTimeLimit" value="15000"/>
	<s:property name="maxSizeLimit" value="1500"/>
	
    <s:property name="directoryService" ref="directoryService"/>
    <s:property name="socketAcceptor" ref="socketAcceptor"/>
	
	<s:property name="saslMechanismHandlers">
		<s:map>
			<s:entry key="PLAIN">
				<s:bean id="PlainHandler" class="org.apache.directory.server.ldap.handlers.bind.plain.PlainMechanismHandler"/>
			</s:entry>
			<s:entry key="SIMPLE">
				<s:bean id="simpleMechanismHandler" class="org.apache.directory.server.ldap.handlers.bind.SimpleMechanismHandler"/>
			</s:entry>
			
			<s:entry key="RDS-SASL">
				<s:bean id="RDSSASLMechanismHandler" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sasl.server.RDSSASLMechanismHandler"/>
			</s:entry>	
			
			<s:entry key="GSS-SPNEGO">
				<s:bean id="ntlmMechanismHandler" class="org.apache.directory.server.ldap.handlers.bind.ntlm.NtlmMechanismHandler">
				</s:bean>
			</s:entry>
		</s:map>
	</s:property>
	
	<s:property name="extendedOperationHandlers">
		<s:list>
			<s:bean id="startTlsHandler" class="org.apache.directory.server.ldap.handlers.extended.StartTlsHandler"/>
			<s:bean id="gracefulShutdownHandler" class="org.apache.directory.server.ldap.handlers.extended.GracefulShutdownHandler"/>
			<s:bean id="launchDiagnosticUiHandler" class="org.apache.directory.server.ldap.handlers.extended.LaunchDiagnosticUiHandler"/>
			<s:bean id="customExtendedHandler" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sso.CreateSSOCustomExtendedHandler"/>
			<s:bean id="customExtendedHandler" class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sso.ValidateSSOCustomExtendedHandler"/>
		</s:list>
	</s:property>	
  </s:bean>


  <apacheDS id="apacheDS"
            synchPeriodMillis="15000"
            allowAnonymousAccess="false">

    <directoryService>#directoryService</directoryService>
    <ldapService>#ldapService</ldapService>
    <ldapsService>#ldapsService</ldapsService>
  </apacheDS>

  <!-- another bean I didn't convert -->
  <spring:bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
    <spring:property name="customEditors">
      <spring:map>
        <spring:entry key="javax.naming.directory.Attributes">
          <spring:bean class="org.apache.directory.server.core.configuration.AttributesPropertyEditor"/>
        </spring:entry>
      </spring:map>
    </spring:property>
  </spring:bean>
</spring:beans>

Reply via email to