NIIBE Yutaka's glog
   


About
NIIBE Yutaka's glog, Eight disks, three pegs, and just a little hack.

Subscribe
Subscribe to a syndicated feed of this log.

Links


       
2005-06-15 (Wed)

OpenLDAP 2.2 in Debian
I had a problem using OpenLDAP 2.2 in Debian.

I forgot when I've done it, but I've upgraded our LDAP to OpenLDAP2.2.

I use the feature of 'syncrepl', the client side replication. The primary server runs on HIKARU, and secondary server runs on AKIRA. AKIRA polls, and whenever HIKARU has update, AKIRA gets its information. But after the update, this feature has not worked for a while.

When upgrading OpenLDAP and dumping the database , I think that I needed specify '-m' option for slapcat to preserve the syncrepl provider information. Perhaps.

       -m     Include syncProviderSubentry of the  syncrepl  provider  in  the
              generated LDIF output.
The fixes are that, reload the database using slapadd with appropriate options.

       -p     If the LDIF input represents a syncrepl consumer  replica,  pro-
              mote  it  to  the  syncrepl  provider's content after adding the
              entries.

       -r     If  the  LDIF  input represents a  syncrepl  provider, demote it
              to  the syncrepl consumer replica after adding the entries.

       -w     When  used with either -p or -r, rebuild the new syncrepl infor-
              mation from the contents of the  added  entries.   The  syncrepl
              information contained in the LDIF input file is ignored.
Following was what I did:
  1. Stop LDAP (both of primary and secondary): /etc/init.d/slapd stop
  2. Dump its database: slapcat -b dc=fsij,dc=org -l fsij-20050614.ldif
  3. Primary side: slapadd -b dc=fsij,dc=org -p -w -l fsij-20050614.ldif
  4. Secondary side: slapadd -b dc=fsij,dc=org -r -w -l fsij-20050614.ldif
  5. Start LDAP (both of primary and secondary): /etc/init.d/slapd start

[/debian] permanent link