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

how can I write to a slave?



Is it possible to set up OpenLDAP in a way:

1) a client connects to a slave, and wants to write something,
2) slave connects to the master,
3) slave writes the change on behalf of the client, and gets the changes back
4) client is notified, that the change was done



I have an application in many locations, that can't be configured to use master for writes, and slave for reads - only one LDAP server for everything can be specified.



With the traditional master/slave settings from the original slapd.conf:

# Replica configuration (if this server is a slave)
#updatedn        "cn=ldap-master.example.com,ou=Hosts,dc=example,dc=com"
#updateref       "ldap://ldap-master.example.com";

# Replication configuration (if this server is a master)
#replica host=ldap-slave1.example.com:389
#        binddn="cn=ldap-master.example.com,ou=Hosts,dc=example,dc=com"
#        bindmethod=simple credentials="mypassword"


the clients complain about the referrals (not supported), and nothing is written.



-- Tomek http://wpkg.org