[Date Prev][Date Next] [Chronological] [Thread] [Top]

OpenLDAP 2.3.13: slave slapd doesn't start after adding updatedn



Folks,

I'm on OpenLDAP 2.3.13 and trying to setup replication with slurpd. When I created the initial nodes the slave slapd was working fine on the slave. The moment I added the updatedn directive in slapd.conf, the slave slapd doesn't start up at all. When I added -d 256 I got the following error and the line #57 has the updatedn directive

====================
/usr/local/ldap/etc/openldap/slapd.conf: line 57: frontend database cannot be shadow.
slapd stopped.
connections_destroy: nothing to destroy.
====================


The following is what I did. Can someone tell me what I'm doing wrong?


o I've created my own schema and it works well without replication. o On the slave, I created the following nodes... =========== Slave nodes ============== dn: dc=com objectClass: top objectClass: enetRoot dc: com

   # slave, com
   dn: organizationalStatus=slave,dc=com
   objectClass: top
   objectClass: enetRoot
   organizationalStatus: slave
   dc: com

   # users, com
   dn: organizationalStatus=users,dc=com
   objectClass: top
   objectClass: enetRoot
   organizationalStatus: users
   dc: com
   =========== End Slave nodes ==============

o Then I stopped the slave and added the following lines in the slave slapd.conf.
============================
updatedn "organizationalStatus=users,dc=com"
updateref ldap://192.168.132.71:389
============================


o Then I restarted the master and it came up just fine.
o When I tried restarting the slave I got the error I mentioned at the start.


Thanks

Krish