directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Carlo.Acco...@ibs-ag.com>
Subject RE: Enabling partition on ApacheDS 2.0.0-M1
Date Fri, 06 Jan 2012 14:39:16 GMT
Here's what I've done..	

Install Server and Connect with studio using uid=admin,ou=system to ou=config base dn. 
1.) Import LDIF 1_my_jdbm_partition.ldif (text below)
Stop, restart Server, reconnect
2.) Import LDIF 2_my_root_tree.ldif (text below)
Stop, restart Server.
3.) Reconnect with base dn o=mypart and you're off to the races. 


#begin  1_my_jdbm_partition.ldif
dn: ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: top
objectClass: ads-base
objectclass: ads-partition
objectclass: ads-jdbmPartition
ads-indexes: apacheRdn
ads-indexes: apacheSubLevel
ads-indexes: apachePresence
ads-indexes: apacheOneLevel
ads-indexes: apacheOneAlias
ads-indexes: apacheSubAlias
ads-indexes: apacheAlias
ads-indexes: entryUUID
ads-indexes: entryCSN
ads-indexes: o
ads-indexes: krb5PrincipalName
ads-indexes: objectClass
ads-indexes: ou
ads-indexes: uid
ads-indexes: employeeNumber
ads-indexes: displayName
ads-partitionSuffix: o=mypart
ads-jdbmpartitionoptimizerenabled: TRUE
ads-partitioncachesize: 100
ads-partitionsynconwrite: TRUE
ads-partitionid: mypart
ads-enabled: TRUE


dn: ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: organizationalUnit
objectclass: top
ou: indexes

dn: ads-indexAttributeId=apacheRdn,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: apacheRdn
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=apacheSubLevel,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: apacheSubLevel
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=apachePresence,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: apachePresence
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=apacheOneLevel,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: apacheOneLevel
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=apacheOneAlias,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: apacheOneAlias
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=apacheSubAlias,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: apacheSubAlias
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=apacheAlias,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: apacheAlias
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=o,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: o
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=krb5PrincipalName,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: krb5PrincipalName
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=objectClass,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: objectClass
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=entryUUID,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: entryUUID
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=entryCSN,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: entryCSN
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=ou,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: ou
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=uid,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: uid
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=employeeNumber,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: employeeNumber
ads-enabled: TRUE
ads-indexcachesize: 100

dn: ads-indexAttributeId=displayName,ou=indexes,ads-partitionId=mypart,ou=partitions,ads-directoryServiceId=default,ou=config
objectclass: ads-index
objectclass: ads-jdbmIndex
objectclass: ads-base
objectclass: top
ads-indexattributeid: displayName
ads-enabled: TRUE
ads-indexcachesize: 100

#Optional - Change password policy to allow hashed passwords from ldif
dn: ads-pwdId=default,ou=passwordPolicies,ads-interceptorId=authenticationInterceptor,ou=interceptors,ads-directoryServiceId=default,ou=config
changetype: modify
replace: ads-pwdcheckquality
ads-pwdcheckquality: 1
#end  1_my_jdbm_partition.ldif

#begin 2_my_root_tree.ldif
dn: o=mypart
objectClass: organization
objectClass: top
o: mypart

dn: ou=int,o=mypart
objectClass: organizationalUnit
objectClass: top
ou: int
description: Internal

dn: ou=users,ou=int,o=mypart
objectClass: organizationalUnit
objectClass: top
ou: users
description: Internal Users

dn: ou=groups,ou=int,o=mypart
objectClass: organizationalUnit
objectClass: top
ou: groups
description: Internal Groups
dn: ou=ext,o=mypart
objectClass: organizationalUnit
objectClass: top
ou: ext
description: External

dn: ou=users,ou=ext,o=mypart
objectClass: organizationalUnit
objectClass: top
ou: users
description: External Users


#end 2_my_root_tree.ldif





-----Original Message-----
From: Herson Cruz [mailto:herson@gmail.com] 
Sent: Thursday, January 05, 2012 8:31 PM
To: users@directory.apache.org
Subject: Enabling partition on ApacheDS 2.0.0-M1

Hi all,

I've done the following steps in order to create a new partition for my ou=MyCompany

1. Copy example partition entry and then paste it with a new name as:

	ads-partitionId=MyCompany,ou=partitions,ads-directoryServiceId=default,ou=config

2. Changed attribute ads-partitionsuffix to dc=MyCompany,dc=com

3. On ads-directoryServiceId=default,ou=config have added attribute ads-partitions=MyCompany

4. When trying to create a new ou under Root DSE or trying to copy ou=system and paste it
with a new name (MyCompany) I get the following error:

[LDAP: error code 32 - NO_SUCH_OBJECT: failed for MessageType : ADD_REQUEST Message ID : 89
    Add Request :
Entry
    dn[n]: ou=MyCompany
    objectClass: top
    objectClass: organizationalUnit
    objectClass: extensibleObject
    ou: MyCompany
: ERR_268 Cannot find a partition for ou= MyCompany]


What should I be missing?

Any help is very much appreciated, thanks in advance.

Herson.

Mime
View raw message