directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Muralidhar Yaragalla" <yaragallamur...@gmail.com>
Subject badly in need of help on LDIF
Date Tue, 06 Apr 2010 01:29:42 GMT
Hi I am running a default instance. I failed to create a context in the
partition at the time of server start using LDIF. My server.xml is as
follows

 

<?xml version="1.0" encoding="UTF-8"?>

 

<spring:beans xmlns="http://apacheds.org/config/1.5.6"

       xmlns:spring="http://xbean.apache.org/schemas/spring/1.0"

       xmlns:s="http://www.springframework.org/schema/beans">

 

  <defaultDirectoryService id="directoryService" instanceId="default"

                           replicaId="1"

                           workingDirectory="example.com"

                           allowAnonymousAccess="true"

                           accessControlEnabled="false"

                           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="murali" cacheSize="100" suffix="ou=murali"
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="uid" cacheSize="100"/>

          <jdbmIndex attributeId="objectClass" cacheSize="100"/>

        </indexedAttributes>

      </jdbmPartition>

    </partitions>

 

    <interceptors>

      <normalizationInterceptor/>

      <authenticationInterceptor/>

      <referralInterceptor/>

      <aciAuthorizationInterceptor/>

      <defaultAuthorizationInterceptor/>

      <exceptionInterceptor/>

      <operationalAttributeInterceptor/>

 

 

      <schemaInterceptor/>

      <subentryInterceptor/>

      <collectiveAttributeInterceptor/>

      <eventInterceptor/>

      <triggerInterceptor/>

 

    </interceptors>

 

 

  </defaultDirectoryService> 

 

  <!-- 

  +============================================================+

  | LDAP Service configuration                                 |

  +============================================================+

  -->

  

  <ldapServer id="ldapServer"

            allowAnonymousAccess="false"

            saslHost="localhost"

            saslPrincipal="yaragalla"

            searchBaseDn="ou=users,ou=system,dc=murali"

            maxTimeLimit="15000"

            maxSizeLimit="1000">

    <transports>

      <tcpTransport address="0.0.0.0" port="10389" nbThreads="8"
backLog="50" enableSSL="false"/>

      <tcpTransport address="localhost" port="10636" enableSSL="true"/>

    </transports>

 

    <directoryService>#directoryService</directoryService>

 

    <!-- The list of supported authentication mechanisms.
-->

    <saslMechanismHandlers>

      <simpleMechanismHandler mech-name="SIMPLE"/>      

    </saslMechanismHandlers>

 

    <!-- The realms serviced by this SASL host, used by DIGEST-MD5 and
GSSAPI. -->

    <saslRealms/>

    <!-- the collection of extended operation handlers to install
-->

    <extendedOperationHandlers>

      <startTlsHandler/>

      <gracefulShutdownHandler/>

      <launchDiagnosticUiHandler/>

      <!-- The Stored Procedure Extended Operation is not stable yet and it
may cause security risks.-->

      <!--storedProcedureExtendedOperationHandler/-->

    </extendedOperationHandlers>

  </ldapServer>

 

  <apacheDS id="apacheDS">

    <ldapServer>#ldapServer</ldapServer>

               <ldifDirectory>murali.ldif</ldifDirectory>

  </apacheDS>  

  

</spring:beans>

___________________________________________________________

 

My LDIF file is as below

_____________________________________________________

version: 1

 

dn: ou=murali

objectClass: organizationalUnit

objectClass: top

ou: murali

 

In the server.xml I have defined a partition "murali".  I want to have a
context in that partition at the time of server start . so I have configured
the LDIF file as per the documentation in server.xml but the context is not
getting created automatically. I tried too hard but no success. Can anybody
explain me what the problem is?


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message