I'm in the process of setting up 2 OpenLDAP servers with the goal of having a MMR configuration. I thought I'd give the OpenLDAP MMR tools a go - but I seem to have some problems with it. Perhaps I've misunderstood something, or perhaps I'm missing some necessary steps in the process. I am hoping someone can point me in the right direction :)
My goal: to have 2 LTB OpenLDAP servers (running 64-bit RHEL6) with a replicated configuration, specifically 3 suffixes: cn=config ou=userbase,ou=internal ou=mailusers,ou=external I install the openldap-ltb package (which also brings in berkeleydb-ltb and libtool-ltdl). I also download the openldap-mmr-0.1.tar.gz as linked from the LTB download page, and run mmr-initprov. After that, I go to the other server and run mmr-addnode but it fails: [root@ldap02 openldap-mmr-0.1]# ./mmr-addnode Available local IP addresses: 10.0.0.61 (eth0) This new node will be added into the OpenLDAP cluster. To do that, replication mechanisms need to be done through a specified network interface. > Local IP address (or hostname) []: 10.0.0.61 You have to give the primary LDAP provider IP of the OpenLDAP cluster. > Remote IP address (or hostname) [10.0.0.60]: To replicate entire data from the OpenLDAP cluster, you have to provide a valid password for the LDAP configuration backend identified by the DN cn=config. > Password for cn=config: You have to provide a unique identifier for this new node. It will identify this node into this OpenLDAP cluster. We provide you a default identifier by retrieving existing values from the primary master. ldap_bind: Invalid credentials (49) > LDAP server ID []: 2 -- ldap_bind: Invalid credentials (49) mkdir: cannot create directory `': No such file or directory Jun 10 22:14:18 ldap02 mmr-addnode[11313]: Creating config directory [FAILED] 5397671a invalid config directory , error 2 slapadd: bad configuration directory! Jun 10 22:14:18 ldap02 mmr-addnode[11313]: Initialize configuration with slapadd [FAILED] chown: cannot access `': No such file or directory Jun 10 22:14:18 ldap02 mmr-addnode[11313]: Fixing rights on [FAILED] ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) Jun 10 22:14:18 ldap02 mmr-addnode[11313]: Adding node on provider [FAILED] If I check /var/log/openldap.log on node01 I see several of these messages: Jun 10 22:14:18 ldap01 slapd[25115]: conn=1021 fd=13 ACCEPT from IP=10.0.0.61:49450 (IP=0.0.0.0:389) Jun 10 22:14:18 ldap01 slapd[25115]: conn=1021 op=0 BIND dn="cn=config" method=128 Jun 10 22:14:18 ldap01 slapd[25115]: conn=1021 op=0 RESULT tag=97 err=49 text= Jun 10 22:14:18 ldap01 slapd[25115]: conn=1021 op=1 UNBIND Jun 10 22:14:18 ldap01 slapd[25115]: conn=1021 fd=13 closed _______________________________________________ ltb-users mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-users
