Chun Tat David Chu
2010-Jan-08 16:19 UTC
[389-users] Unable to configure Replication via command line
Hi All, I am working on LDIF that will configure replication via command line. I''m following the direction documented in the Red Hat DS Administration Guide section 8.7. Particularly I am stuck in step 2 of 8.7.1 when configuring my suppliers. http://www.redhat.com/docs/manuals/dir-server/8.1/admin/Managing_Replication-Configuring-Replication-cmd.html#Configuring-Replication-Suppliers-cmd Below is the output from my ldapmodify command. adding new entry "cn=Replication Manager,cn=config" adding new entry "cn=changelog5,cn=config" adding new entry "cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config" ldap_add: No such object (32) As you can see, I was able to create my replication manager, and enabled the change log, however, I wasn''t able to create the ''dn: cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config'' entry. I can see from the directory console that ''cn="dc=example,dc=com",cn=mapping tree,cn=config'' does exist in my directory console. Is there anything that I did wrong in my LDIF? Can someone take a look? Thanks!!! ############################################################################### ############################################################################### # Step 1 - Create Supplier Bind DN Entry dn: cn=Replication Manager,cn=config changetype: add objectclass: top objectclass: person userPassword: password sn: Replication Manager description: The Replication Manager Account ############################################################################### ############################################################################### ############################################################################### ############################################################################### # Step 2 - Configuring Suppliers from the Command Line dn: cn=changelog5,cn=config changetype: add objectclass: top objectclass: extensibleObject cn: changelog5 nsslapd-changelogdir: /var/lib/dirsrv/slapd-localhost/changelogdb nsslapd-changelogmaxage: 10d dn: cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config changetype: add objectclass: top objectclass: nsds5replica objectclass: extensibleObject cn: replica nsds5replicaroot: dc=example,dc=com nsds5replicaid: 1 nsds5replicatype: 3 nsds5flags: 1 nsds5ReplicaPurgeDelay: 604800 nsds5ReplicaBindDN: cn=Replication Manager,cn=config ############################################################################### ############################################################################### Thanks a lot! - David
Chun Tat David Chu
2010-Jan-08 16:47 UTC
Re: [389-users] Unable to configure Replication via command line
uh.... okay, I got it working now. In my LDIF, the dn to create the "cn=replica" should be ''dn: cn=replica,cn="dc=example, dc=com",cn=mapping tree,cn=config'' A space is needed between "dc=example," and "dc=com". I am not sure why though, but that made it work. - David On Fri, Jan 8, 2010 at 11:19 AM, Chun Tat David Chu < beyonddc.storage@gmail.com> wrote:> Hi All, > > I am working on LDIF that will configure replication via command line. I''m > following the direction documented in the Red Hat DS Administration Guide > section 8.7. Particularly I am stuck in step 2 of 8.7.1 when configuring my > suppliers. > http://www.redhat.com/docs/manuals/dir-server/8.1/admin/Managing_Replication-Configuring-Replication-cmd.html#Configuring-Replication-Suppliers-cmd > > Below is the output from my ldapmodify command. > adding new entry "cn=Replication Manager,cn=config" > adding new entry "cn=changelog5,cn=config" > adding new entry "cn=replica,cn="dc=example,dc=com",cn=mapping > tree,cn=config" > ldap_add: No such object (32) > > As you can see, I was able to create my replication manager, and enabled > the change log, however, I wasn''t able to create the ''dn: > cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config'' entry. I can > see from the directory console that ''cn="dc=example,dc=com",cn=mapping > tree,cn=config'' does exist in my directory console. > > Is there anything that I did wrong in my LDIF? Can someone take a look? > Thanks!!! > > > ############################################################################### > > ############################################################################### > # Step 1 - Create Supplier Bind DN Entry > dn: cn=Replication Manager,cn=config > changetype: add > objectclass: top > objectclass: person > userPassword: password > sn: Replication Manager > description: The Replication Manager Account > > ############################################################################### > > ############################################################################### > > > ############################################################################### > > ############################################################################### > # Step 2 - Configuring Suppliers from the Command Line > dn: cn=changelog5,cn=config > changetype: add > objectclass: top > objectclass: extensibleObject > cn: changelog5 > nsslapd-changelogdir: /var/lib/dirsrv/slapd-localhost/changelogdb > nsslapd-changelogmaxage: 10d > > dn: cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config > changetype: add > objectclass: top > objectclass: nsds5replica > objectclass: extensibleObject > cn: replica > nsds5replicaroot: dc=example,dc=com > nsds5replicaid: 1 > nsds5replicatype: 3 > nsds5flags: 1 > nsds5ReplicaPurgeDelay: 604800 > nsds5ReplicaBindDN: cn=Replication Manager,cn=config > > ############################################################################### > > ############################################################################### > > Thanks a lot! > > - David >