You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Muralidhar Yaragalla <ya...@gmail.com> on 2010/04/06 03:29:42 UTC
badly in need of help on LDIF
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?
RE: badly in need of help on LDIF
Posted by Muralidhar Yaragalla <ya...@gmail.com>.
Yes. Eventually I did the same and it worked. But I think we should update
docs that are there on the site. If required I would be happy to help in
that.
-----Original Message-----
From: Kiran Ayyagari [mailto:ayyagarikiran@gmail.com]
Sent: Tuesday, April 06, 2010 1:31 PM
To: users@directory.apache.org
Subject: Re: badly in need of help on LDIF
On Tue, Apr 6, 2010 at 4:29 AM, Muralidhar Yaragalla
<ya...@gmail.com> wrote:
> 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
>
> <ldifDirectory>murali.ldif</ldifDirectory>
try after giving the path to the directory in which your ldif file is
present
HTH
Kiran Ayyagari
Re: badly in need of help on LDIF
Posted by Kiran Ayyagari <ay...@gmail.com>.
On Tue, Apr 6, 2010 at 4:29 AM, Muralidhar Yaragalla
<ya...@gmail.com> wrote:
> 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
>
> <ldifDirectory>murali.ldif</ldifDirectory>
try after giving the path to the directory in which your ldif file is present
HTH
Kiran Ayyagari
Re: badly in need of help on LDIF
Posted by Alex Karasulu <ak...@gmail.com>.
Version?
On Tue, Apr 6, 2010 at 4:29 AM, Muralidhar Yaragalla <
yaragallamurali@gmail.com> wrote:
> 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?
>
>
--
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org
To set up a meeting with me: http://tungle.me/AlexKarasulu