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

support for replica uri spec in slapd.conf (ITS#2594)



Full_Name: Mark Benson
Version: HEAD
OS: RH Linux 7.3
URL: ftp://ftp.openldap.org/incoming/mark-benson-030612.patch
Submission from: (NULL) (81.86.217.112)


This is a patch to slurpd and slapd to support the ability to specify a replica
host in slapd.conf using an LDAP URI specification.
e.g. all these forms are supported:

        replica host=slave.example.com:389
                binddn="cn=Replicator,dc=example,dc=com"
                bindmethod=simple credentials=secret

        replica uri=ldap://slave2.example.com:389
                binddn="cn=Replicator,dc=example,dc=com"
                bindmethod=simple credentials=secret

        replica uri=ldaps://slave3.example.com:636
                binddn="cn=Replicator,dc=example,dc=com"
                bindmethod=simple credentials=secret

In the case of the uri specification, the uri is passed to ldap_initialize()
just like the -H option to ldapmodify. Code for host= remains the same.