On 6/16/10 11:27 AM, Sudheer Kumar wrote:
Hi,
Thank you very much for your time and patience! We cannot wait for the 2.0
release this time, may be we will migrate to it later this year.
The given server.xml did not work for me, server failed during startup
saying some errors. However I have converted it to the following:
*
<?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="http://apacheds.org/config/1.5.7"
xmlns:spring="http://xbean.apache.org/schemas/spring/1.0"
xmlns:s="http://www.springframework.org/schema/beans">
<defaultDirectoryService id="directoryService" instanceId="default"
workingDirectory="rdsinst"
allowAnonymousAccess="false"
accessControlEnabled="true"
denormalizeOpAttrsEnabled="false"
syncPeriodMillis="15000"
maxPDUSize="2000000">
<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"/>
<referralInterceptor/>
<aciAuthorizationInterceptor/>
<defaultAuthorizationInterceptor/>
<exceptionInterceptor/>
<operationalAttributeInterceptor/>
<s:bean id="Apache RDS Password Policy"
class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.passwordpolicy.RDSPasswordPolicyInterceptor"/>
<schemaInterceptor/>
<subentryInterceptor/>
<collectiveAttributeInterceptor/>
<eventInterceptor/>
<triggerInterceptor/>
</interceptors>
</defaultDirectoryService>
<ntpServer>
<transports>
<tcpTransport port="60123"/>
<udpTransport port="60123" nbThreads="1"/>
</transports>
</ntpServer>
<ldapServer id="ldapServer"
allowAnonymousAccess="false"
saslHost="ldap.example.com"
saslPrincipal="ldap/ldap.example....@example.com"
searchBaseDn="ou=people,dc=telelogic,dc=com"
maxTimeLimit="15000"
maxSizeLimit="1500">
<transports>
<tcpTransport address="0.0.0.0" port="10389" nbThreads="8" backLog="50"
enableSSL="false"/>
<tcpTransport address="localhost" port="1636" enableSSL="true"/>
</transports>
<directoryService>#directoryService</directoryService>
<!-- The list of supported authentication mechanisms.
-->
<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>
<!-- The realms serviced by this SASL host, used by DIGEST-MD5 and
GSSAPI. -->
<saslRealms>
<s:value>example.com</s:value>
<s:value>apache.org</s:value>
</saslRealms>
<extendedOperationHandlers>
<startTlsHandler/>
<gracefulShutdownHandler/>
<launchDiagnosticUiHandler/>
<s:bean id="customExtendedHandler1"
class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sso.CreateSSOCustomExtendedHandler"/>
<s:bean id="customExtendedHandler2"
class="com.telelogic.tds.engine.ldap.jndi.apacheplugins.sso.ValidateSSOCustomExtendedHandler"/>
<!-- The Stored Procedure Extended Operation is not stable yet and it
may cause security risks.-->
<!--storedProcedureExtendedOperationHandler/-->
</extendedOperationHandlers>
</ldapServer>
<apacheDS id="apacheDS">
<ldapServer>#ldapServer</ldapServer>
</apacheDS>
</spring:beans>
*
-------------------------------------------
I have few questions:
1. How to convert the following:
Apache DS 1.5.4:
<standardThreadPool id="standardThreadPool" maxThreads="8"/>
<datagramAcceptor id="datagramAcceptor"
logicExecutor="#standardThreadPool"/>
<socketAcceptor id="socketAcceptor" logicExecutor="#standardThreadPool"/>
This has been moved to the TcpTransport bean :
<tcpTransport address="0.0.0.0" port="10389" nbThreads="8" backLog="50"
enableSSL="false"/>
You can remove this section from the server.xml file.
2. syncPeriodMillis="15000" , maxPDUSize="2000000" what are these settings
(1.5.7)?
The first value is telling the server to flush to disk any modified data
every 15 seconds, the second value is used to limit the size of incoming
messages to 2Mb. For instance, if one tries to store a 600 Mb video in
the server, it will reject the AddRequest.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com