FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 02-23-2011, 10:48 PM
Diego Woitasen
 
Default Databases and sub suffixes from the command line

Hi,*I need to create 150 sub suffixes with their databases using the command line (I need subtree replication to 150 branches). I read the RHDS documentation and created the following entries:

ldapadd -x -D uid=scriptuser,ou=People,dc=domain,dc=ar -w foo << EOFdn: cn=ou=$1,dc=domain,dc=ar,cn=mapping tree,cn=configobjectclass: topobjectclass: extensibleObject
objectclass: nsMappingTreensslapd-state: backendnsslapd-backend: $1nsslapd-parent-suffix: dc=domain,dc=arcn: ou=$1,dc=domain,dc=ar
dn: cn=$1,cn=ldbm database,cn=plugins,cn=config
objectclass: extensibleObjectobjectclass: nsBackendInstancensslapd-suffix: ou=$1,dc=domain,dc=ar
dn: ou=$1,dc=domain,dc=arobjectClass: organizationalUnit
objectClass: topou: $1description: $1EOF
The bind user has permission to add these entries to cn=config. Their are created without error. The problem is the database. It looks like something is missing in the filesystem:

#ls -l /var/lib/dirsrv/slapd-mreldc03/db/testtotal 20-rw------- 1 ldap ldap * *46 Feb 23 20:41 DBVERSION-rw------- 1 ldap ldap 16384 Feb 23 20:41 id2entry.db4

If I add an object to the suffix, nothing changes in the DB directory.
Using the Java Console, works perfectly. There are a lot of files in the DB directory and that files are updates if a change something in the subtree.

May be I'm missing a step, but I reviewed the documention and my procedure looks fine.
Regards,*Diego
--
Diego Woitasen


--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 02-24-2011, 03:36 PM
Rich Megginson
 
Default Databases and sub suffixes from the command line

On 02/23/2011 04:48 PM, Diego Woitasen wrote:
Hi,
*I need to create 150 sub suffixes with their databases using
the command line (I need subtree replication to 150 branches). I
read the RHDS documentation and created the following entries:




ldapadd -x -D uid=scriptuser,ou=People,dc=domain,dc=ar -w
foo << EOF
dn: cn=ou=$1,dc=domain,dc=ar,cn=mapping tree,cn=config
objectclass: top
objectclass: extensibleObject

objectclass: nsMappingTree
nsslapd-state: backend
nsslapd-backend: $1
nsslapd-parent-suffix: dc=domain,dc=ar
cn: ou=$1,dc=domain,dc=ar



dn: cn=$1,cn=ldbm database,cn=plugins,cn=config
objectclass: extensibleObject
objectclass: nsBackendInstance
nsslapd-suffix: ou=$1,dc=domain,dc=ar



dn: ou=$1,dc=domain,dc=ar
objectClass: organizationalUnit
objectClass: top
ou: $1
description: $1
EOF




The bind user has permission to add these entries to
cn=config. Their are created without error. The problem is the
database. It looks like something is missing in the filesystem:



#ls -l /var/lib/dirsrv/slapd-mreldc03/db/test

total 20
-rw------- 1 ldap ldap * *46 Feb 23 20:41 DBVERSION
-rw------- 1 ldap ldap 16384 Feb 23 20:41 id2entry.db4




If I add an object to the suffix, nothing changes in the DB
directory.



Using the Java Console, works perfectly. There are a lot of
files in the DB directory and that files are updates if a change
something in the subtree.



May be I'm missing a step, but I reviewed the documention and
my procedure looks fine.

Looks like you solved your problem - it was a documentation error.





Regards,
*Diego



--

Diego Woitasen




--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users





--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 02-24-2011, 07:23 PM
Diego Woitasen
 
Default Databases and sub suffixes from the command line

On Thu, Feb 24, 2011 at 1:36 PM, Rich Megginson <rmeggins@redhat.com> wrote:







On 02/23/2011 04:48 PM, Diego Woitasen wrote:
Hi,
*I need to create 150 sub suffixes with their databases using
the command line (I need subtree replication to 150 branches). I
read the RHDS documentation and created the following entries:




ldapadd -x -D uid=scriptuser,ou=People,dc=domain,dc=ar -w
foo << EOF
dn: cn=ou=$1,dc=domain,dc=ar,cn=mapping tree,cn=config
objectclass: top
objectclass: extensibleObject

objectclass: nsMappingTree
nsslapd-state: backend
nsslapd-backend: $1
nsslapd-parent-suffix: dc=domain,dc=ar
cn: ou=$1,dc=domain,dc=ar



dn: cn=$1,cn=ldbm database,cn=plugins,cn=config
objectclass: extensibleObject
objectclass: nsBackendInstance
nsslapd-suffix: ou=$1,dc=domain,dc=ar



dn: ou=$1,dc=domain,dc=ar
objectClass: organizationalUnit
objectClass: top
ou: $1
description: $1
EOF




The bind user has permission to add these entries to
cn=config. Their are created without error. The problem is the
database. It looks like something is missing in the filesystem:



#ls -l /var/lib/dirsrv/slapd-mreldc03/db/test

total 20
-rw------- 1 ldap ldap * *46 Feb 23 20:41 DBVERSION
-rw------- 1 ldap ldap 16384 Feb 23 20:41 id2entry.db4




If I add an object to the suffix, nothing changes in the DB
directory.



Using the Java Console, works perfectly. There are a lot of
files in the DB directory and that files are updates if a change
something in the subtree.



May be I'm missing a step, but I reviewed the documention and
my procedure looks fine.

Looks like you solved your problem - it was a documentation error.





Regards,
*Diego



--

Diego Woitasen



--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users






Yes. Details in bug*https://bugzilla.redhat.com/show_bug.cgi?id=680150
Thanks!
--
Diego Woitasen



--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 

Thread Tools




All times are GMT. The time now is 10:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org