]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9275 -- Update wording to remove slave and master terms, consolidate on provider...
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 15 Jun 2020 20:06:35 +0000 (20:06 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 22 Jun 2020 19:11:40 +0000 (19:11 +0000)
114 files changed:
ANNOUNCEMENT
CHANGES
contrib/ldaptcl/ldap.n
contrib/slapd-modules/lastbind/slapo-lastbind.5
doc/guide/admin/Makefile
doc/guide/admin/config.sdf
doc/guide/admin/intro.sdf
doc/guide/admin/maintenance.sdf
doc/guide/admin/n-way-multi-provider.png [moved from doc/guide/admin/n-way-multi-master.png with 100% similarity]
doc/guide/admin/overlays.sdf
doc/guide/admin/replication.sdf
doc/guide/admin/slapdconf2.sdf
doc/guide/admin/slapdconfig.sdf
doc/guide/images/src/delta-syncrepl.svg
doc/guide/images/src/dual_dc.svg
doc/guide/images/src/n-way-multi-provider.dia [moved from doc/guide/images/src/n-way-multi-master.dia with 100% similarity]
doc/guide/images/src/n-way-multi-provider.svg [moved from doc/guide/images/src/n-way-multi-master.svg with 99% similarity]
doc/guide/images/src/push-based-complete.svg
doc/guide/images/src/push-based-standalone.svg
doc/man/man3/ldap_schema.3
doc/man/man5/slapd-config.5
doc/man/man5/slapd.conf.5
doc/man/man5/slapo-dds.5
doc/man/man5/slapo-memberof.5
doc/man/man5/slapo-ppolicy.5
doc/man/man8/slapadd.8
doc/man/man8/slapd.8
libraries/libldap/ldap.conf
servers/slapd/add.c
servers/slapd/backglue.c
servers/slapd/config.c
servers/slapd/delete.c
servers/slapd/main.c
servers/slapd/modify.c
servers/slapd/modrdn.c
servers/slapd/overlays/dds.c
servers/slapd/overlays/ppolicy.c
servers/slapd/passwd.c
servers/slapd/slap.h
servers/slapd/slapcommon.c
servers/slapd/syncrepl.c
tests/data/acl.out.provider [moved from tests/data/acl.out.master with 100% similarity]
tests/data/modify.out.provider [moved from tests/data/modify.out.master with 100% similarity]
tests/data/modrdn.out.provider.0 [moved from tests/data/modrdn.out.master.0 with 100% similarity]
tests/data/modrdn.out.provider.1 [moved from tests/data/modrdn.out.master.1 with 100% similarity]
tests/data/modrdn.out.provider.2 [moved from tests/data/modrdn.out.master.2 with 100% similarity]
tests/data/modrdn.out.provider.3 [moved from tests/data/modrdn.out.master.3 with 100% similarity]
tests/data/regressions/its4184/adds.ldif
tests/data/regressions/its4448/slapd-meta.conf
tests/data/regressions/its8444/its8444
tests/data/regressions/its8752/its8752
tests/data/regressions/its8752/slapd.conf.mpr [moved from tests/data/regressions/its8752/slapd.conf.mmr with 95% similarity]
tests/data/regressions/its8800/its8800
tests/data/search.out.provider [moved from tests/data/search.out.master with 100% similarity]
tests/data/slapd-acl.conf
tests/data/slapd-cache-provider-proxyauthz.conf [moved from tests/data/slapd-cache-master-proxyauthz.conf with 96% similarity]
tests/data/slapd-cache-provider.conf [moved from tests/data/slapd-cache-master.conf with 96% similarity]
tests/data/slapd-chain1.conf
tests/data/slapd-chain2.conf
tests/data/slapd-component.conf
tests/data/slapd-deltasync-consumer.conf [moved from tests/data/slapd-deltasync-slave.conf with 95% similarity]
tests/data/slapd-deltasync-provider.conf [moved from tests/data/slapd-deltasync-master.conf with 95% similarity]
tests/data/slapd-glue-ldap.conf
tests/data/slapd-idassert.conf
tests/data/slapd-ldapglue.conf
tests/data/slapd-ldapgluegroups.conf
tests/data/slapd-ldapgluepeople.conf
tests/data/slapd-limits.conf
tests/data/slapd-meta-target2.conf
tests/data/slapd-meta.conf
tests/data/slapd-nis-provider.conf [moved from tests/data/slapd-nis-master.conf with 96% similarity]
tests/data/slapd-passwd.conf
tests/data/slapd-ppolicy.conf
tests/data/slapd-provider.conf [moved from tests/data/slapd-master.conf with 97% similarity]
tests/data/slapd-pw.conf
tests/data/slapd-ref-consumer.conf [moved from tests/data/slapd-ref-slave.conf with 96% similarity]
tests/data/slapd-relay.conf
tests/data/slapd-repl-consumer-remote.conf [moved from tests/data/slapd-repl-slave-remote.conf with 96% similarity]
tests/data/slapd-sql-syncrepl-provider.conf [moved from tests/data/slapd-sql-syncrepl-master.conf with 98% similarity]
tests/data/slapd-sql.conf
tests/data/slapd-syncrepl-consumer-persist-ldap.conf [moved from tests/data/slapd-syncrepl-slave-persist-ldap.conf with 96% similarity]
tests/data/slapd-syncrepl-consumer-persist1.conf [moved from tests/data/slapd-syncrepl-slave-persist1.conf with 95% similarity]
tests/data/slapd-syncrepl-consumer-persist2.conf [moved from tests/data/slapd-syncrepl-slave-persist2.conf with 88% similarity]
tests/data/slapd-syncrepl-consumer-persist3.conf [moved from tests/data/slapd-syncrepl-slave-persist3.conf with 94% similarity]
tests/data/slapd-syncrepl-consumer-refresh1.conf [moved from tests/data/slapd-syncrepl-slave-refresh1.conf with 94% similarity]
tests/data/slapd-syncrepl-consumer-refresh2.conf [moved from tests/data/slapd-syncrepl-slave-refresh2.conf with 92% similarity]
tests/data/slapd-syncrepl-multiproxy.conf
tests/data/slapd-syncrepl-provider.conf [moved from tests/data/slapd-syncrepl-master.conf with 94% similarity]
tests/data/slapd-valregex.conf
tests/data/slapd-whoami.conf
tests/scripts/defines.sh
tests/scripts/passwd-search
tests/scripts/sql-test901-syncrepl
tests/scripts/startup_nis_ldap_server.sh
tests/scripts/test003-search
tests/scripts/test004-modify
tests/scripts/test005-modrdn
tests/scripts/test006-acls
tests/scripts/test009-referral
tests/scripts/test015-xsearch
tests/scripts/test016-subref
tests/scripts/test017-syncreplication-refresh
tests/scripts/test018-syncreplication-persist
tests/scripts/test019-syncreplication-cascade
tests/scripts/test020-proxycache
tests/scripts/test043-delta-syncrepl
tests/scripts/test045-syncreplication-proxied
tests/scripts/test048-syncrepl-multiproxy
tests/scripts/test049-sync-config
tests/scripts/test050-syncrepl-multiprovider [moved from tests/scripts/test050-syncrepl-multimaster with 94% similarity]
tests/scripts/test054-syncreplication-parallel-load
tests/scripts/test059-consumer-config [moved from tests/scripts/test059-slave-config with 90% similarity]
tests/scripts/test063-delta-multiprovider [moved from tests/scripts/test063-delta-multimaster with 95% similarity]
tests/scripts/test065-proxyauthz

index 4e78d807ed857fda64e5663419cbb24adbbdf72c..98df81a9375b11b0755d6c49aa16f0a29f2296d3 100644 (file)
@@ -9,7 +9,7 @@ A N N O U N C E M E N T -- OpenLDAP 2.4
 
         * Slapd(8) enhancements
             - Syncrepl enhancements, including push-mode and
-              Multi-Master support
+              Multi-Provider support
             - Dynamic configuration enhancements, including
               online schema editing and full access control
             - Dynamic monitoring enhancements, including
diff --git a/CHANGES b/CHANGES
index 99aeb34d817f545f83ee24b10b6d964ea36d74d7..ca495c9cc6662d8554c499788b022e82a19d01f6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -134,7 +134,7 @@ OpenLDAP 2.4.47 Release (2018/12/19)
        Fixed slapd-bdb/hdb/mdb to not convert certain IDLs to ranges (ITS#8868)
        Fixed slapo-accesslog deadlock during cleanup (ITS#8752)
        Fixed slapo-memberof cn=config modifications (ITS#8663)
-       Fixed slapo-ppolicy with multimaster replication (ITS#8927)
+       Fixed slapo-ppolicy with multi-provider replication (ITS#8927)
        Fixed slapo-syncprov with NULL modlist (ITS#8843)
        Build Environment
                Added slapd reproducible build support (ITS#8928)
@@ -196,7 +196,7 @@ OpenLDAP 2.4.45 Release (2017/06/01)
        Fixed slapd segfault with invalid hostname (ITS#8631)
        Fixed slapd sasl SEGV rebind in same session (ITS#8568)
        Fixed slapd syncrepl filter handling (ITS#8413)
-       Fixed slapd syncrepl infinite looping mods with delta-sync MMR (ITS#8432)
+       Fixed slapd syncrepl infinite looping mods with delta-sync MPR (ITS#8432)
        Fixed slapd callback struct so older modules without writewait should function.
                     Custom modules may need to be updated for sc_writewait callback (ITS#8435)
        Fixed slapd-ldap/meta broken LDAP_TAILQ macro (ITS#8576)
@@ -271,7 +271,7 @@ OpenLDAP 2.4.43 Release (2015/11/30)
        Fixed slapd-ldap to skip client controls in ldap_back_entry_get (ITS#8244)
        Fixed slapd-null to have an option to return a search entry (ITS#8249)
        Fixed slapd-relay to correctly handle quoted options (ITS#8284)
-       Fixed slapo-accesslog delta-sync MMR with interrupted refresh phase (ITS#8281)
+       Fixed slapo-accesslog delta-sync MPR with interrupted refresh phase (ITS#8281)
        Fixed slapo-dds segfault when using slapo-memberof (ITS#8133)
        Fixed slapo-ppolicy to allow purging of stale pwdFailureTime attributes (ITS#8185)
        Fixed slapo-ppolicy to release entry on failure (ITS#7537)
@@ -315,7 +315,7 @@ OpenLDAP 2.4.41 Release (2015/06/21)
        Fixed slapd slapadd config db import of minimal frontend entry (ITS#8150)
        Fixed slapd slapadd onetime leak with -w (ITS#8014)
        Fixed slapd sasl auxprop crash with invalid config (ITS#8092)
-       Fixed slapd syncrepl delta-mmr issue with overlays and slapd.conf (ITS#7976)
+       Fixed slapd syncrepl delta-mpr issue with overlays and slapd.conf (ITS#7976)
        Fixed slapd syncrepl mutex for cookie state (ITS#7968)
        Fixed slapd syncrepl memory leaks (ITS#8035)
        Fixed slapd syncrepl to free presentlist at end of refresh mode (ITS#8038)
@@ -475,7 +475,7 @@ OpenLDAP 2.4.38 Release (2013/11/16)
        Fixed liblmdb wasted space on split (ITS#7589)
        Fixed slapd for certs with a NULL issuerDN (ITS#7746)
        Fixed slapd cn=config with empty nested includes (ITS#7739)
-       Fixed slapd syncrepl memory leak with delta-sync MMR (ITS#7735)
+       Fixed slapd syncrepl memory leak with delta-sync MPR (ITS#7735)
        Fixed slapd-bdb/hdb to stop processing on dn not found (ITS#7741)
        Fixed slapd-bdb/hdb with indexed ANDed filters (ITS#7743)
        Fixed slapd-mdb to stop processing on dn not found (ITS#7741)
@@ -581,7 +581,7 @@ OpenLDAP 2.4.34 Release (2013/03/01)
        Fixed liblmdb to validate data limits (ITS#7485)
        Fixed liblmdb mdb_update_key for large keys (ITS#7505)
        Fixed ldapmodify to not core dump with invalid LDIF (ITS#7477)
-       Fixed slapd syncrepl for old entries in MMR setup (ITS#7427)
+       Fixed slapd syncrepl for old entries in MPR setup (ITS#7427)
        Fixed slapd signedness for index_substr_any_* (ITS#7449)
        Fixed slapd enforce SLAPD_MAX_DAEMON_THREADS (ITS#7450)
        Fixed slapd mutex in send_ldap_ber (ITS#6164)
@@ -598,7 +598,7 @@ OpenLDAP 2.4.34 Release (2013/03/01)
        Fixed slapd-meta segfault when modifying olcDbUri (ITS#7526)
        Fixed slapd-sql back-config support (ITS#7499)
        Fixed slapo-constraint handle uri and restrict correctly (ITS#7418)
-       Fixed slapo-constraint with multi-master replication (ITS#7426)
+       Fixed slapo-constraint with multi-provider replication (ITS#7426)
        Fixed slapo-constraint segfault (ITS#7431)
        Fixed slapo-deref control initialization (ITS#7436)
        Fixed slapo-deref control exposure (ITS#7445)
@@ -635,7 +635,7 @@ OpenLDAP 2.4.33 Release (2012/10/10)
        Fixed slapd alock handling on Windows (ITS#7361)
        Fixed slapd acl handling with zero-length values (ITS#7350)
        Fixed slapd syncprov to not reference ops inside a lock (ITS#7172)
-       Fixed slapd delta-syncrepl MMR with large attribute values (ITS#7354)
+       Fixed slapd delta-syncrepl MPR with large attribute values (ITS#7354)
        Fixed slapd slapd_rw_destroy function (ITS#7390)
        Fixed slapd-ldap idassert bind handling (ITS#7403)
        Fixed slapd-mdb slapadd -q -w double free (ITS#7356)
@@ -721,7 +721,7 @@ OpenLDAP 2.4.31 Release (2012/04/21)
        Fixed slapd listener initialization (ITS#7233)
        Fixed slapd cn=config with olcTLSVerifyClient (ITS#7197)
        Fixed slapd delta-syncrepl fallback on non-leaf error (ITS#7195)
-       Fixed slapd to reject MMR setups with bad serverID setting (ITS#7200)
+       Fixed slapd to reject MPR setups with bad serverID setting (ITS#7200)
        Fixed slapd approxIndexer key generation (ITS#7203)
        Fixed slapd modification of olcSuffix (ITS#7205)
        Fixed slapd schema validation with missing definitions (ITS#7224)
@@ -799,7 +799,7 @@ OpenLDAP 2.4.27 Release (2011/11/24)
        Added slapd support for draft-wahl-ldap-session (ITS#6984)
        Added slapadd pipelining capability (ITS#7078)
        Added slapd Add-if-not-present (ITS#6561)
-       Added slapd delta-syncrepl MMR (ITS#6734,ITS#7029,ITS#7031)
+       Added slapd delta-syncrepl MPR (ITS#6734,ITS#7029,ITS#7031)
        Added slapd-mdb experimental backend (ITS#7079)
        Added slapd-passwd dynamic config support
        Added slapd-perl dynamic config support
@@ -1083,11 +1083,11 @@ OpenLDAP 2.4.24 Release (2011/02/10)
        Fixed slapo-syncprov filter race condition (ITS#6708)
        Fixed slapo-syncprov active mod race (ITS#6709)
        Fixed slapo-syncprov to refresh if context is dirty (ITS#6710)
-       Fixed slapo-syncprov CSN updates to all replicas (ITS#6718)
+       Fixed slapo-syncprov CSN updates to all consumers (ITS#6718)
        Fixed slapo-syncprov sessionlog ordering (ITS#6716)
        Fixed slapo-syncprov sessionlog with adds (ITS#6503)
        Fixed slapo-syncprov mutex (ITS#6438)
-       Fixed slapo-syncprov mincsn check with MMR (ITS#6717)
+       Fixed slapo-syncprov mincsn check with MPR (ITS#6717)
        Fixed slapo-syncprov control leak (ITS#6795)
        Fixed slapo-syncprov error codes (ITS#6812)
        Fixed slapo-translucent entry leak (ITS#6746)
@@ -1279,7 +1279,7 @@ OpenLDAP 2.4.20 Release (2009/11/27)
 
 OpenLDAP 2.4.19 Release (2009/10/06)
        Fixed client tools with null timeouts (ITS#6282)
-       Fixed slapadd to warn about missing attrs for replicas (ITS#6281)
+       Fixed slapadd to warn about missing attrs for consumers (ITS#6281)
        Fixed slapd acl cache (ITS#6287)
        Fixed slapd tools to allow -n for conversion (ITS#6258)
        Fixed slapd-ldap with null timeouts (ITS#6282)
@@ -1446,8 +1446,8 @@ OpenLDAP 2.4.16 Release (2009/04/05)
        Fixed slapd schema_init freed value (ITS#6036)
        Fixed slapd syncrepl newCookie sync messages (ITS#5972)
        Fixed slapd syncrepl hang during shutdown (ITS#6011)
-       Fixed slapd syncrepl too many MMR messages (ITS#6020)
-       Fixed slapd syncrepl skipped entries with MMR (ITS#5988)
+       Fixed slapd syncrepl too many MPR messages (ITS#6020)
+       Fixed slapd syncrepl skipped entries with MPR (ITS#5988)
        Fixed slapd-bdb/hdb cachesize handling (ITS#5860)
        Fixed slapd-bdb/hdb with slapcat with empty dn (ITS#6006)
        Fixed slapd-bdb/hdb with NULL transactions (ITS#6012)
@@ -1457,19 +1457,19 @@ OpenLDAP 2.4.16 Release (2009/04/05)
        Fixed slapo-accesslog interaction with ppolicy (ITS#5979)
        Fixed slapo-dynlist conversion to cn=config (ITS#6002)
        Fixed slapo-syncprov newCookie sync messages (ITS#5972)
-       Fixed slapd-syncprov too many MMR messages (ITS#6020)
-       Fixed slapo-syncprov replica lockout (ITS#5985)
+       Fixed slapd-syncprov too many MPR messages (ITS#6020)
+       Fixed slapo-syncprov consumer lockout (ITS#5985)
        Fixed slapo-syncprov modtarget tracking (ITS#5999)
        Fixed slapo-syncprov multiple CSN propagation (ITS#5973)
        Fixed slapo-syncprov race condition (ITS#6045)
        Fixed slapo-syncprov sending cookies without CSN (ITS#6024)
-       Fixed slapo-syncprov skipped entries with MMR (ITS#5988)
+       Fixed slapo-syncprov skipped entries with MPR (ITS#5988)
        Fixed tools passphrase free (ITS#6014)
        Build Environment
                Cleaned up alloc/free functions for Windows (ITS#6005)
                Fixed running of autosave files in testsuite (ITS#6026)
        Documentation
-               admin24 clarified MMR URI requirements (ITS#5942,ITS#5987)
+               admin24 clarified MPR URI requirements (ITS#5942,ITS#5987)
                Added ldapexop(1) manual page (ITS#5982)
                slapd-ldap/meta(5) added missing TLS options (ITS#5989)
 
@@ -1519,14 +1519,14 @@ OpenLDAP 2.4.14 Release (2009/02/14)
        Fixed slapd connection assert (ITS#5835)
        Fixed slapd epoll handling (ITS#5886)
        Fixed slapd frontend/backend options handling (ITS#5857)
-       Fixed slapd glue with MMR (ITS#5925)
+       Fixed slapd glue with MPR (ITS#5925)
        Fixed slapd logging on Windows (ITS#5392)
        Fixed slapd listener comparison (ITS#5613)
        Fixed slapd manageDSAit with glue entries (ITS#5921)
        Fixed slapd relax behavior with structuralObjectClass (ITS#5792)
        Fixed slapd syncrepl rename handling (ITS#5809)
-       Fixed slapd syncrepl MMR when adding new server (ITS#5850)
-       Fixed slapd syncrepl MMR with deleted entries (ITS#5843)
+       Fixed slapd syncrepl MPR when adding new server (ITS#5850)
+       Fixed slapd syncrepl MPR with deleted entries (ITS#5843)
        Fixed slapd syncrepl replication with glued DB (ITS#5866)
        Fixed slapd syncrepl replication with moddn (ITS#5901)
        Fixed slapd syncrepl replication with referrals (ITS#5881)
@@ -1760,7 +1760,7 @@ OpenLDAP 2.4.11 Release (2008/07/16)
        Fixed slapd equality rules for olcRootDN/olcSchemaDN (ITS#5540)
        Fixed slapd sets memory leak (ITS#5557)
        Fixed slapd sortvals binary search (ITS#5578)
-       Fixed slapd syncrepl updates with multiple masters (ITS#5597)
+       Fixed slapd syncrepl updates with multiple providers (ITS#5597)
        Fixed slapd syncrepl superior objectClass delete/add (ITS#5600)
        Fixed slapd syncrepl/slapo-syncprov contextCSN updates as internal ops (ITS#5596)
        Added slapd-ldap/slapd-meta option to filter out search references (ITS#5593)
@@ -1837,7 +1837,7 @@ OpenLDAP 2.4.9 Release (2008/05/07)
        Fixed slapd syncrepl crash on empty CSN (ITS#5432)
        Fixed slapd syncrepl refreshAndPersist (ITS#5454)
        Fixed slapd syncrepl modrdn processing (ITS#5397)
-       Fixed slapd syncrepl MMR partial refresh (ITS#5470)
+       Fixed slapd syncrepl MPR partial refresh (ITS#5470)
        Fixed slapd value list termination (ITS#5450)
        Fixed slapd/slapo-accesslog rq mutex usage (ITS#5442)
        Fixed slapd-bdb ID_NOCACHE handling (ITS#5439)
@@ -1909,7 +1909,7 @@ OpenLDAP 2.4.8 Release (2008/02/19)
        Fixed slapd-bdb crash with modrdn (ITS#5358)
        Fixed slapd-bdb SEGV with bdb4.6 (ITS#5322)
        Fixed slapd-bdb modrdn to same dn (ITS#5319)
-       Fixed slapd-bdb MMR (ITS#5332)
+       Fixed slapd-bdb MPR (ITS#5332)
        Added slapd-bdb/slapd-hdb DB encryption (ITS#5359)
        Fixed slapd-ldif delete (ITS#5265)
        Fixed slapd-meta link to slapd-ldap (ITS#5355)
@@ -1946,7 +1946,7 @@ OpenLDAP 2.4.7 Release (2007/12/14)
        Fixed slapd paged results handling when using rootdn (ITS#5230)
        Fixed slapd syncrepl presentlist handling (ITS#5231)
        Fixed slapd core schema 'c' definition for RFC4519 (ITS#5236)
-       Fixed slapd 3-way Multi-Master Replication (ITS#5238)
+       Fixed slapd 3-way multi-provider replication (ITS#5238)
        Fixed slapd hash collisions in index slots (ITS#5183)
        Fixed slapd replication of dSAOperation attributes (ITS#5268)
        Fixed slapadd contextCSN updating (ITS#5225)
index 267324f23c7670dfd2088679ac17e188c0bbd466..cc0d2df993946aee10e7ed0211964f7a5bdec1b4 100644 (file)
@@ -84,8 +84,7 @@ Currently simple and kerberos-based authentication, are supported.
 To use LDAP and still have reasonable security in a networked, 
 Internet/Intranet environment, secure shell can be used to setup
 secure, encrypted connections between client machines and the LDAP
-server, and between the LDAP server and any replica or slave servers
-that might be used.
+server, and between all LDAP nodes that might be used.
 
 To perform the LDAP "bind" operation:
 
index d92a95da8d52fdae76ceb65dacc43a03852e5f40..d0da8b8dea935b21877a34665b441b0462c95057 100644 (file)
@@ -60,7 +60,7 @@ attribute is updated on each successful bind operation.
 .B lastbind_forward_updates
 Specify that updates of the authTimestamp attribute
 on a consumer should be forwarded
-to a master instead of being written directly into the consumer's local
+to a provider instead of being written directly into the consumer's local
 database. This setting is only useful on a replication consumer, and
 also requires the
 .B updateref
index 1d17dc05080c8d495077aca778b674cfb85cf59c..f23e49f294e9c43e2c2538ca72b867fb7be53faa 100644 (file)
@@ -69,7 +69,7 @@ sdf-img: \
        intro_tree.png \
        ldap-sync-refreshandpersist.png \
        ldap-sync-refreshonly.png \
-       n-way-multi-master.png \
+       n-way-multi-provider.png \
        push-based-complete.png \
        push-based-standalone.png \
        refint.png \
index 28b3065f269d1dff0f5a7dca59dedd7d79024515..8f02ea081bcc90ac52e1b4c5bce7a9ee71465cd8 100644 (file)
@@ -45,9 +45,9 @@ H2: Replicated Directory Service
 slapd(8) includes support for {{LDAP Sync}}-based replication, called
 {{syncrepl}}, which may be used to maintain shadow copies of directory
 information on multiple directory servers.   In its most basic
-configuration, the {{master}} is a syncrepl provider and one or more
-{{slave}} (or {{shadow}}) are syncrepl consumers.  An example
-master-slave configuration is shown in figure 3.3. Multi-Master 
+configuration, the {{provider}} is a syncrepl provider and one or more
+{{consumer}} (or {{shadow}}) are syncrepl consumers.  An example
+provider-consumer configuration is shown in figure 3.3. Multi-Provider 
 configurations are also supported.
 
 !import "config_repl.png"; align="center"; title="Replicated Directory Services"
index c3dd92f0267be59e72326173e5d83895349fda88..e13c4a10ab3a8c71fca3e947a51cfda6ebe23f61 100644 (file)
@@ -33,7 +33,7 @@ tuned to give quick response to high-volume lookup or search
 operations. They may have the ability to replicate information
 widely in order to increase availability and reliability, while
 reducing response time.  When directory information is replicated,
-temporary inconsistencies between the replicas may be okay, as long
+temporary inconsistencies between the consumers may be okay, as long
 as inconsistencies are resolved in a timely manner.
 
 There are many different ways to provide a directory service.
@@ -436,11 +436,11 @@ a pool of threads.  This reduces the amount of system overhead
 required while providing high performance.
 
 {{B:Replication}}: {{slapd}} can be configured to maintain shadow
-copies of directory information.  This {{single-master/multiple-slave}}
+copies of directory information.  This {{single-provider/multiple-consumer}}
 replication scheme is vital in high-volume environments where a
 single {{slapd}} installation just doesn't provide the necessary availability
 or reliability.  For extremely demanding environments where a
-single point of failure is not acceptable, {{multi-master}} replication
+single point of failure is not acceptable, {{multi-provider}} replication
 is also available.  {{slapd}} includes support for {{LDAP Sync}}-based
 replication.
 
index deb14b93742cd16a6416e768b418c722decc1417..5233a47e8747d46df7702d34413f0cc72b290966 100644 (file)
@@ -159,7 +159,7 @@ type are:
 .{{S: }}
 +{{B: Start the server}}
 
-Obviously this doesn't cater for any complicated deployments like {{SECT: MirrorMode}} or {{SECT: N-Way Multi-Master}}, 
+Obviously this doesn't cater for any complicated deployments like {{SECT: MirrorMode}} or {{SECT: N-Way Multi-Provider}}, 
 but following the above sections and using either commercial support or community support should help. Also check the
 {{SECT: Troubleshooting}} section.
 
index 2eb115b2f93117d909d7f2074c28b27c2d16ef73..1c48ac22599366a170962bf67c8bae2b5c70717c 100644 (file)
@@ -79,7 +79,7 @@ or in raw form.
 
 It is also used for {{SECT:delta-syncrepl replication}}
 
-Note: An accesslog database is unique to a given master. It should
+Note: An accesslog database is unique to a given provider. It should
 never be replicated.
 
 H3: Access Logging Configuration
@@ -259,13 +259,13 @@ default when {{B:--enable-ldap}}.
 H3: Chaining Configuration
 
 In order to demonstrate how this overlay works, we shall discuss a typical 
-scenario which might be one master server and three Syncrepl slaves. 
+scenario which might be one provider server and three Syncrepl replicas. 
 
 On each replica, add this near the top of the {{slapd.conf}}(5) file
 (global), before any database definitions:
 
 >        overlay                    chain
->        chain-uri                  "ldap://ldapmaster.example.com"
+>        chain-uri                  "ldap://ldapprovider.example.com"
 >        chain-idassert-bind        bindmethod="simple"
 >                                   binddn="cn=Manager,dc=example,dc=com"
 >                                   credentials="<secret>" 
@@ -275,48 +275,48 @@ On each replica, add this near the top of the {{slapd.conf}}(5) file
 
 Add this below your {{syncrepl}} statement:
 
->        updateref                  "ldap://ldapmaster.example.com/"
+>        updateref                  "ldap://ldapprovider.example.com/"
 
-The {{B:chain-tls}} statement enables TLS from the slave to the ldap master. 
+The {{B:chain-tls}} statement enables TLS from the replica to the ldap provider. 
 The DITs are exactly the same between these machines, therefore whatever user 
-bound to the slave will also exist on the master. If that DN does not have 
-update privileges on the master, nothing will happen.
+bound to the replica will also exist on the provider. If that DN does not have 
+update privileges on the provider, nothing will happen.
 
-You will need to restart the slave after these {{slapd.conf}} changes.
+You will need to restart the replica after these {{slapd.conf}} changes.
 Then, if you are using {{loglevel stats}} (256), you can monitor an
-{{ldapmodify}} on the slave and the master. (If you're using {{cn=config}}
+{{ldapmodify}} on the replica and the provider. (If you're using {{cn=config}}
 no restart is required.)
 
-Now start an {{ldapmodify}} on the slave and watch the logs. You should expect 
+Now start an {{ldapmodify}} on the replica and watch the logs. You should expect 
 something like:
 
->        Sep  6 09:27:25 slave1 slapd[29274]: conn=11 fd=31 ACCEPT from IP=143.199.102.216:45181 (IP=143.199.102.216:389)
->        Sep  6 09:27:25 slave1 slapd[29274]: conn=11 op=0 STARTTLS
->        Sep  6 09:27:25 slave1 slapd[29274]: conn=11 op=0 RESULT oid= err=0 text=
->        Sep  6 09:27:25 slave1 slapd[29274]: conn=11 fd=31 TLS established tls_ssf=256 ssf=256
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 op=1 BIND dn="uid=user1,ou=people,dc=example,dc=com" method=128
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 op=1 BIND dn="uid=user1,ou=People,dc=example,dc=com" mech=SIMPLE ssf=0
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 op=1 RESULT tag=97 err=0 text=
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 op=2 MOD dn="uid=user1,ou=People,dc=example,dc=com"
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 op=2 MOD attr=mail
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 op=2 RESULT tag=103 err=0 text=
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 op=3 UNBIND
->        Sep  6 09:27:28 slave1 slapd[29274]: conn=11 fd=31 closed
->        Sep  6 09:27:28 slave1 slapd[29274]: syncrepl_entry: LDAP_RES_SEARCH_ENTRY(LDAP_SYNC_MODIFY)
->        Sep  6 09:27:28 slave1 slapd[29274]: syncrepl_entry: be_search (0)
->        Sep  6 09:27:28 slave1 slapd[29274]: syncrepl_entry: uid=user1,ou=People,dc=example,dc=com
->        Sep  6 09:27:28 slave1 slapd[29274]: syncrepl_entry: be_modify (0)
-
-And on the master you will see this:
-
->        Sep  6 09:23:57 ldapmaster slapd[2961]: conn=55902 op=3 PROXYAUTHZ dn="uid=user1,ou=people,dc=example,dc=com"
->        Sep  6 09:23:57 ldapmaster slapd[2961]: conn=55902 op=3 MOD dn="uid=user1,ou=People,dc=example,dc=com"
->        Sep  6 09:23:57 ldapmaster slapd[2961]: conn=55902 op=3 MOD attr=mail
->        Sep  6 09:23:57 ldapmaster slapd[2961]: conn=55902 op=3 RESULT tag=103 err=0 text=
-
-Note: You can clearly see the PROXYAUTHZ line on the master, indicating the 
-proper identity assertion for the update on the master. Also note the slave 
-immediately receiving the Syncrepl update from the master.
+>        Sep  6 09:27:25 replica1 slapd[29274]: conn=11 fd=31 ACCEPT from IP=143.199.102.216:45181 (IP=143.199.102.216:389)
+>        Sep  6 09:27:25 replica1 slapd[29274]: conn=11 op=0 STARTTLS
+>        Sep  6 09:27:25 replica1 slapd[29274]: conn=11 op=0 RESULT oid= err=0 text=
+>        Sep  6 09:27:25 replica1 slapd[29274]: conn=11 fd=31 TLS established tls_ssf=256 ssf=256
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 op=1 BIND dn="uid=user1,ou=people,dc=example,dc=com" method=128
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 op=1 BIND dn="uid=user1,ou=People,dc=example,dc=com" mech=SIMPLE ssf=0
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 op=1 RESULT tag=97 err=0 text=
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 op=2 MOD dn="uid=user1,ou=People,dc=example,dc=com"
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 op=2 MOD attr=mail
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 op=2 RESULT tag=103 err=0 text=
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 op=3 UNBIND
+>        Sep  6 09:27:28 replica1 slapd[29274]: conn=11 fd=31 closed
+>        Sep  6 09:27:28 replica1 slapd[29274]: syncrepl_entry: LDAP_RES_SEARCH_ENTRY(LDAP_SYNC_MODIFY)
+>        Sep  6 09:27:28 replica1 slapd[29274]: syncrepl_entry: be_search (0)
+>        Sep  6 09:27:28 replica1 slapd[29274]: syncrepl_entry: uid=user1,ou=People,dc=example,dc=com
+>        Sep  6 09:27:28 replica1 slapd[29274]: syncrepl_entry: be_modify (0)
+
+And on the provider you will see this:
+
+>        Sep  6 09:23:57 ldapprovider slapd[2961]: conn=55902 op=3 PROXYAUTHZ dn="uid=user1,ou=people,dc=example,dc=com"
+>        Sep  6 09:23:57 ldapprovider slapd[2961]: conn=55902 op=3 MOD dn="uid=user1,ou=People,dc=example,dc=com"
+>        Sep  6 09:23:57 ldapprovider slapd[2961]: conn=55902 op=3 MOD attr=mail
+>        Sep  6 09:23:57 ldapprovider slapd[2961]: conn=55902 op=3 RESULT tag=103 err=0 text=
+
+Note: You can clearly see the PROXYAUTHZ line on the provider, indicating the 
+proper identity assertion for the update on the provider. Also note the replica
+immediately receiving the Syncrepl update from the provider.
 
 H3: Handling Chaining Errors
 
@@ -683,8 +683,8 @@ H2: The Proxy Cache Engine
 
 {{TERM:LDAP}} servers typically hold one or more subtrees of a
 {{TERM:DIT}}. Replica (or shadow) servers hold shadow copies of
-entries held by one or more master servers.  Changes are propagated
-from the master server to replica (slave) servers using LDAP Sync
+entries held by one or more provider servers.  Changes are propagated
+from the provider server to replica servers using LDAP Sync
 replication.  An LDAP cache is a special type of replica which holds
 entries corresponding to search filters instead of subtrees.
 
index 87139b55be24467d152c05783fc697452c0281b9..935cf49d59fe57c6a9c43f3df91d4e325a9efc04 100644 (file)
@@ -37,12 +37,12 @@ short, is a consumer-side replication engine that enables the
 consumer {{TERM:LDAP}} server to maintain a shadow copy of a
 {{TERM:DIT}} fragment. A syncrepl engine resides at the consumer
 and executes as one of the {{slapd}}(8) threads. It creates and maintains a
-consumer replica by connecting to the replication provider to perform
+replica by connecting to the replication provider to perform
 the initial DIT content load followed either by periodic content
 polling or by timely updates upon content changes.
 
 Syncrepl uses the LDAP Content Synchronization protocol (or LDAP Sync for
-short) as the replica synchronization protocol.  LDAP Sync provides
+short) as the consumer synchronization protocol.  LDAP Sync provides
 a stateful replication which supports both pull-based and push-based
 synchronization and does not mandate the use of a history store.
 In pull-based replication the consumer periodically
@@ -58,11 +58,11 @@ maintaining and exchanging synchronization cookies. Because the
 syncrepl consumer and provider maintain their content status, the
 consumer can poll the provider content to perform incremental
 synchronization by asking for the entries required to make the
-consumer replica up-to-date with the provider content. Syncrepl
-also enables convenient management of replicas by maintaining replica
-status.  The consumer replica can be constructed from a consumer-side
+consumer up-to-date with the provider content. Syncrepl
+also enables convenient management of consumers by maintaining replication
+status.  The consumer database can be constructed from a consumer-side
 or a provider-side backup at any synchronization status. Syncrepl
-can automatically resynchronize the consumer replica up-to-date
+can automatically resynchronize the consumer database to be up-to-date
 with the current provider content.
 
 Syncrepl supports both pull-based and push-based synchronization.
@@ -81,7 +81,7 @@ The provider keeps track of the consumer servers that have requested
 a persistent search and sends them necessary updates as the provider
 replication content gets modified.
 
-With syncrepl, a consumer server can create a replica without
+With syncrepl, a consumer can create a replication agreement without
 changing the provider's configurations and without restarting the
 provider server, if the consumer server has appropriate access
 privileges for the DIT fragment to be replicated. The consumer
@@ -90,7 +90,7 @@ changes and restart.
 
 Syncrepl supports partial, sparse, and fractional replications.  The shadow
 DIT fragment is defined by a general search criteria consisting of
-base, scope, filter, and attribute list.  The replica content is
+base, scope, filter, and attribute list.  The consumer content is
 also subject to the access privileges of the bind identity of the
 syncrepl replication connection.
 
@@ -204,13 +204,12 @@ The syncrepl engine utilizes both the present phase and the delete
 phase of the refresh synchronization. It is possible to configure
 a session log in the provider which stores the
 {{EX:entryUUID}}s of a finite number of entries deleted from a
-database. Multiple replicas share the same session log. The syncrepl
-engine uses the
-delete phase if the session log is present and the state of the
-consumer server is recent enough that no session log entries are
+database. Multiple consumers share the same session log. The syncrepl
+engine uses the delete phase if the session log is present and the state
+of the consumer server is recent enough that no session log entries are
 truncated after the last synchronization of the client.  The syncrepl
 engine uses the present phase if no session log is configured for
-the replication content or if the consumer replica is too outdated
+the replication content or if the consumer is too outdated
 to be covered by the session log.  The current design of the session
 log store is memory based, so the information contained in the
 session log is not persistent over multiple provider invocations.
@@ -265,9 +264,9 @@ database yielded a greater {{EX:entryCSN}} than was previously
 recorded in the suffix entry's {{EX:contextCSN}} attribute, a
 checkpoint will be immediately written with the new value.
 
-The consumer also stores its replica state, which is the provider's
+The consumer also stores its replication state, which is the provider's
 {{EX:contextCSN}} received as a synchronization cookie, in the
-{{EX:contextCSN}} attribute of the suffix entry.  The replica state
+{{EX:contextCSN}} attribute of the suffix entry.  The replication state
 maintained by a consumer server is used as the synchronization state
 indicator when it performs subsequent incremental synchronization
 with the provider server. It is also used as a provider-side
@@ -281,8 +280,8 @@ actions.
 Because a general search filter can be used in the syncrepl
 specification, some entries in the context may be omitted from the
 synchronization content.  The syncrepl engine creates a glue entry
-to fill in the holes in the replica context if any part of the
-replica content is subordinate to the holes. The glue entries will
+to fill in the holes in the consumer context if any part of the
+consumer content is subordinate to the holes. The glue entries will
 not be returned in the search result unless {{ManageDsaIT}} control
 is provided.
 
@@ -320,7 +319,7 @@ multiple objects.
 For example, suppose you have a database consisting of 102,400 objects of 1 KB 
 each. Further, suppose you routinely run a batch job to change the value of 
 a single two-byte attribute value that appears in each of the 102,400 objects 
-on the master. Not counting LDAP and TCP/IP protocol overhead, each time you 
+on the provider. Not counting LDAP and TCP/IP protocol overhead, each time you 
 run this job each consumer will transfer and process {{B:100 MB}} of data to
 process {{B:200KB of changes!}}
 
@@ -338,7 +337,7 @@ situations like the one described above. Delta-syncrepl works by maintaining a
 changelog of a selectable depth in a separate database on the provider. The replication consumer 
 checks the changelog for the changes it needs and, as long as 
 the changelog contains the needed changes, the consumer fetches the changes
-from the changelog and applies them to its database. If, however, a replica 
+from the changelog and applies them to its database. If, however, a consumer
 is too far out of sync (or completely empty), conventional syncrepl is used to 
 bring it up to date and replication then switches back to the delta-syncrepl
 mode.
@@ -351,12 +350,12 @@ it to another machine.
 For configuration, please see the {{SECT:Delta-syncrepl}} section.
 
 
-H3: N-Way Multi-Master replication
+H3: N-Way Multi-Provider Replication
 
-Multi-Master replication is a replication technique using Syncrepl to replicate 
-data to multiple provider ("Master") Directory servers. 
+Multi-Provider replication is a replication technique using Syncrepl to replicate 
+data to multiple provider ("Provider") Directory servers. 
 
-H4: Valid Arguments for Multi-Master replication
+H4: Valid Arguments for Multi-Provider replication
 
 * If any provider fails, other providers will continue to accept updates
 * Avoids a single point of failure
@@ -364,21 +363,21 @@ H4: Valid Arguments for Multi-Master replication
 the network/globe.
 * Good for Automatic failover/High Availability
 
-H4: Invalid Arguments for Multi-Master replication
+H4: Invalid Arguments for Multi-Provider replication
 
-(These are often claimed to be advantages of Multi-Master replication but
+(These are often claimed to be advantages of Multi-Provider replication but
 those claims are false):
 
 * It has {{B:NOTHING}} to do with load balancing
 * Providers {{B:must}} propagate writes to {{B:all}} the other servers, which 
 means the network traffic and write load spreads across all 
-of the servers the same as for single-master.
+of the servers the same as for single-provider.
 * Server utilization and performance are at best identical for
-Multi-Master and Single-Master replication; at worst Single-Master is
+Multi-Provider and Single-Provider replication; at worst Single-Provider is
 superior because indexing can be tuned differently to optimize for the
 different usage patterns between the provider and the consumers.
 
-H4: Arguments against Multi-Master replication
+H4: Arguments against Multi-Provider replication
 
 * Breaks the data consistency guarantees of the directory model
 * {{URL:http://www.openldap.org/faq/data/cache/1240.html}}
@@ -387,18 +386,18 @@ H4: Arguments against Multi-Master replication
 * Typically, a particular machine cannot distinguish between losing contact
  with a peer because that peer crashed, or because the network link has failed
 * If a network is partitioned and multiple clients start writing to each of the 
-"masters" then reconciliation will be a pain; it may be best to simply deny 
+"providers" then reconciliation will be a pain; it may be best to simply deny 
 writes to the clients that are partitioned from the single provider
 
 
-For configuration, please see the {{SECT:N-Way Multi-Master}} section below
+For configuration, please see the {{SECT:N-Way Multi-Provider}} section below
 
 H3: MirrorMode replication
 
 MirrorMode is a hybrid configuration that provides all of the consistency
-guarantees of single-master replication, while also providing the high
-availability of multi-master. In MirrorMode two providers are set up to
-replicate from each other (as a multi-master configuration), but an
+guarantees of single-provider replication, while also providing the high
+availability of multi-provider. In MirrorMode two providers are set up to
+replicate from each other (as a multi-provider configuration), but an
 external frontend is employed to direct all writes to only one of
 the two servers. The second provider will only be used for writes if
 the first provider crashes, at which point the frontend will switch to
@@ -417,7 +416,7 @@ can be ready to take over (hot standby)
 
 H4: Arguments against MirrorMode
 
-* MirrorMode is not what is termed as a Multi-Master solution. This is because 
+* MirrorMode is not what is termed as a Multi-Provider solution. This is because 
 writes have to go to just one of the mirror nodes at a time
 * MirrorMode can be termed as Active-Active Hot-Standby, therefore an external 
 server (slapd in proxy mode) or device (hardware load balancer)
@@ -453,19 +452,19 @@ push mode.  Slurpd replication was deprecated in favor of Syncrepl
 replication and has been completely removed from OpenLDAP 2.4.
 
 The slurpd daemon was the original replication mechanism inherited from 
-UMich's LDAP and operated in push mode: the master pushed changes to the 
-slaves. It was replaced for many reasons, in brief:
+UMich's LDAP and operated in push mode: the provider pushed changes to the 
+replicas. It was replaced for many reasons, in brief:
 
  * It was not reliable
  ** It was extremely sensitive to the ordering of records in the replog
  ** It could easily go out of sync, at which point manual intervention was 
-   required to resync the slave database with the master directory
- ** It wasn't very tolerant of unavailable servers. If a slave went down 
+   required to resync the replica database with the provider directory
+ ** It wasn't very tolerant of unavailable servers. If a replica went down 
    for a long time, the replog could grow to a size that was too large for 
    slurpd to process
  * It only worked in push mode
- * It required stopping and restarting the master to add new slaves
- * It only supported single master replication
+ * It required stopping and restarting the provider to add new replicas
+ * It only supported single provider replication
 
 Syncrepl has none of those weaknesses:
 
@@ -480,7 +479,7 @@ Syncrepl has none of those weaknesses:
  * Syncrepl can operate in either direction
  * Consumers can be added at any time without touching anything on the
    provider
- * Multi-master replication is supported
+ * Multi-provider replication is supported
 
 
 H2: Configuring the different replication types
@@ -492,21 +491,21 @@ H4: Syncrepl configuration
 Because syncrepl is a consumer-side replication engine, the syncrepl
 specification is defined in {{slapd.conf}}(5) of the consumer
 server, not in the provider server's configuration file.  The initial
-loading of the replica content can be performed either by starting
+loading of the consumer content can be performed either by starting
 the syncrepl engine with no synchronization cookie or by populating
-the consumer replica by loading an {{TERM:LDIF}} file dumped as a
+the consumer by loading an {{TERM:LDIF}} file dumped as a
 backup at the provider.
 
 When loading from a backup, it is not required to perform the initial
 loading from the up-to-date backup of the provider content. The
 syncrepl engine will automatically synchronize the initial consumer
-replica to the current provider content. As a result, it is not
-required to stop the provider server in order to avoid the replica
+to the current provider content. As a result, it is not
+required to stop the provider server in order to avoid the replication
 inconsistency caused by the updates to the provider content during
 the content backup and loading process.
 
 When replicating a large scale directory, especially in a bandwidth
-constrained environment, it is advised to load the consumer replica
+constrained environment, it is advised to load the consumer
 from a backup instead of performing a full initial load using
 syncrepl.
 
@@ -580,8 +579,8 @@ A more complete example of the {{slapd.conf}}(5) content is thus:
 
 H4: Set up the consumer slapd
 
-The syncrepl replication is specified in the database section of
-{{slapd.conf}}(5) for the replica context. The syncrepl engine
+The syncrepl directive is specified in the database section of
+{{slapd.conf}}(5) for the consumer context. The syncrepl engine
 is backend independent and the directive can be defined with any
 database type.
 
@@ -648,22 +647,22 @@ in order to start the synchronization from a specific state.  The
 cookie is a comma separated list of name=value pairs. Currently
 supported syncrepl cookie fields are {{csn=<csn>}} and {{rid=<rid>}}.
 {{<csn>}} represents the current synchronization state of the
-consumer replica.  {{<rid>}} identifies a consumer replica locally
+consumer. {{<rid>}} identifies a consumer locally
 within the consumer server. It is used to relate the cookie to the
 syncrepl definition in {{slapd.conf}}(5) which has the matching
-replica identifier.  The {{<rid>}} must have no more than 3 decimal
+{{<rid>}}.  The {{<rid>}} must have no more than 3 decimal
 digits.  The command line cookie overrides the synchronization
-cookie stored in the consumer replica database.
+cookie stored in the consumer database.
 
 
 H3: Delta-syncrepl
 
 H4: Delta-syncrepl Provider configuration
 
-Setting up delta-syncrepl requires configuration changes on both the master and 
+Setting up delta-syncrepl requires configuration changes on both the provider and 
 replica servers:
 
->     # Give the replica DN unlimited read access.  This ACL needs to be
+>     # Give the replicator DN unlimited read access.  This ACL needs to be
 >     # merged with other ACL statements, and/or moved within the scope
 >     # of a database.  The "by * break" portion causes evaluation of
 >     # subsequent rules.  See slapd.access(5) for details.
@@ -696,7 +695,7 @@ replica servers:
 >     syncprov-nopresent TRUE
 >     syncprov-reloadhint TRUE
 >     
->     # Let the replica DN have limitless searches
+>     # Let the replicator DN have limitless searches
 >     limits dn.exact="cn=replicator,dc=example,dc=com" time.soft=unlimited time.hard=unlimited size.soft=unlimited size.hard=unlimited
 >     
 >     # Primary database definitions
@@ -723,7 +722,7 @@ replica servers:
 >     # scan the accesslog DB every day, and purge entries older than 7 days
 >     logpurge 07+00:00 01+00:00
 >     
->     # Let the replica DN have limitless searches
+>     # Let the replicator DN have limitless searches
 >     limits dn.exact="cn=replicator,dc=example,dc=com" time.soft=unlimited time.hard=unlimited size.soft=unlimited size.hard=unlimited
 
 For more information, always consult the relevant man pages ({{slapo-accesslog}}(5) and {{slapd.conf}}(5))
@@ -745,7 +744,7 @@ H4: Delta-syncrepl Consumer configuration
 >     
 >     # syncrepl directives
 >     syncrepl  rid=0
->               provider=ldap://ldapmaster.example.com:389
+>               provider=ldap://ldapprovider.example.com:389
 >               bindmethod=simple
 >               binddn="cn=replicator,dc=example,dc=com"
 >               credentials=secret
@@ -757,23 +756,23 @@ H4: Delta-syncrepl Consumer configuration
 >               retry="60 +"
 >               syncdata=accesslog
 >     
->     # Refer updates to the master
->     updateref               ldap://ldapmaster.example.com
+>     # Refer updates to the provider
+>     updateref               ldap://ldapprovider.example.com
 
 
 The above configuration assumes that you have a replicator identity defined 
 in your database that can be used to bind to the provider. In addition, 
 all of the databases (primary, replica, and the accesslog 
 storage database) should also have properly tuned {{DB_CONFIG}} files that meet 
-your needs.
+your needs if using the bdb or hdb backends.
 
-Note: An accesslog database is unique to a given master. It should
+Note: An accesslog database is unique to a given provider. It should
 never be replicated.
 
-H3: N-Way Multi-Master
+H3: N-Way Multi-Provider
 
-For the following example we will be using 3 Master nodes. Keeping in line with
-{{B:test050-syncrepl-multimaster}} of the OpenLDAP test suite, we will be configuring
+For the following example we will be using 3 Provider nodes. Keeping in line with
+{{B:test050-syncrepl-multiprovider}} of the OpenLDAP test suite, we will be configuring
 {{slapd(8)}} via {{B:cn=config}}
 
 This sets up the config database:
@@ -800,7 +799,7 @@ second and third servers will have a different olcServerID obviously:
 >     olcDatabase: {0}config
 >     olcRootPW: secret
 
-This sets up syncrepl as a provider (since these are all masters):
+This sets up syncrepl as a provider (since these are all providers):
 
 >     dn: cn=module,cn=config
 >     objectClass: olcModuleList
@@ -808,7 +807,7 @@ This sets up syncrepl as a provider (since these are all masters):
 >     olcModulePath: /usr/local/libexec/openldap
 >     olcModuleLoad: syncprov.la
 
-Now we setup the first Master Node (replace $URI1, $URI2 and $URI3 etc. with your actual ldap urls):
+Now we setup the first Provider Node (replace $URI1, $URI2 and $URI3 etc. with your actual ldap urls):
 
 >     dn: cn=config
 >     changetype: modify
@@ -839,9 +838,9 @@ Now we setup the first Master Node (replace $URI1, $URI2 and $URI3 etc. with you
 >     add: olcMirrorMode
 >     olcMirrorMode: TRUE
 
-Now start up the Master and a consumer/s, also add the above LDIF to the first consumer, second consumer etc. It will then replicate {{B:cn=config}}. You now have N-Way Multimaster on the config database.
+Now start up the provider and a consumer/s, also add the above LDIF to the first consumer, second consumer etc. It will then replicate {{B:cn=config}}. You now have N-Way Multi-Provider on the config database.
 
-We still have to replicate the actual data, not just the config, so add to the master (all active and configured consumers/masters will pull down this config, as they are all syncing). Also, replace all {{${}}} variables with whatever is applicable to your setup:
+We still have to replicate the actual data, not just the config, so add to the provider (all active and configured consumers/providers will pull down this config, as they are all syncing). Also, replace all {{${}}} variables with whatever is applicable to your setup:
 
 >     dn: olcDatabase={1}$BACKEND,cn=config
 >     objectClass: olcDatabaseConfig
@@ -958,8 +957,8 @@ can either setup in normal {{SECT:syncrepl replication}} mode, or in
 H4: MirrorMode Summary
 
 You will now have a directory architecture that provides all of the 
-consistency guarantees of single-master replication, while also providing the 
-high availability of multi-master replication.
+consistency guarantees of single-provider replication, while also providing the 
+high availability of multi-provider replication.
 
 
 H3: Syncrepl Proxy
@@ -970,7 +969,7 @@ FT[align="Center"] Figure X.Y: Replacing slurpd
 The following example is for a self-contained push-based replication solution:
 
 >      #######################################################################
->      # Standard OpenLDAP Master/Provider
+>      # Standard OpenLDAP Provider
 >      #######################################################################
 >      
 >      include     /usr/local/etc/openldap/schema/core.schema
@@ -1013,7 +1012,7 @@ The following example is for a self-contained push-based replication solution:
 >      overlay syncprov
 >      syncprov-checkpoint 1000 60
 >      
->      # Let the replica DN have limitless searches
+>      # Let the replicator DN have limitless searches
 >      limits dn.exact="cn=replicator,dc=suretecsystems,dc=com" time.soft=unlimited time.hard=unlimited size.soft=unlimited size.hard=unlimited
 >      
 >      database    monitor
@@ -1055,7 +1054,7 @@ The following example is for a self-contained push-based replication solution:
 A replica configuration for this type of setup could be:
 
 >      #######################################################################
->      # Standard OpenLDAP Slave without Syncrepl
+>      # Standard OpenLDAP Replica without Syncrepl
 >      #######################################################################
 >      
 >      include     /usr/local/etc/openldap/schema/core.schema
@@ -1078,7 +1077,7 @@ A replica configuration for this type of setup could be:
 >      
 >      database    mdb
 >      suffix      "dc=suretecsystems,dc=com"
->      directory   /usr/local/var/openldap-slave/data
+>      directory   /usr/local/var/openldap-consumer/data
 >      
 >      maxsize         85899345920
 >      checkpoint      1024 5
@@ -1090,12 +1089,12 @@ A replica configuration for this type of setup could be:
 >      rootdn          "cn=admin,dc=suretecsystems,dc=com"
 >      rootpw          testing 
 >      
->      # Let the replica DN have limitless searches
+>      # Let the replicator DN have limitless searches
 >      limits dn.exact="cn=replicator,dc=suretecsystems,dc=com" time.soft=unlimited time.hard=unlimited size.soft=unlimited size.hard=unlimited
 >      
 >      updatedn "cn=replicator,dc=suretecsystems,dc=com"
 >      
->      # Refer updates to the master
+>      # Refer updates to the provider
 >      updateref   ldap://localhost:9011
 >      
 >      database    monitor
@@ -1105,7 +1104,7 @@ A replica configuration for this type of setup could be:
 
 You can see we use the {{updatedn}} directive here and example ACLs ({{F:usr/local/etc/openldap/slapd.acl}}) for this could be:
        
->      # Give the replica DN unlimited read access.  This ACL may need to be
+>      # Give the replicator DN unlimited read access.  This ACL may need to be
 >      # merged with other ACL statements.
 >      
 >      access to *
@@ -1130,10 +1129,10 @@ You can see we use the {{updatedn}} directive here and example ACLs ({{F:usr/loc
 In order to support more replicas, just add more {{database ldap}} sections and
 increment the {{syncrepl rid}} number accordingly.
 
-Note: You must populate the Master and Slave directories with the same data, 
+Note: You must populate the Provider and Replica directories with the same data, 
 unlike when using normal Syncrepl
 
-If you do not have access to modify the master directory configuration you can
+If you do not have access to modify the provider directory configuration you can
 configure a standalone ldap proxy, which might look like:
 
 !import "push-based-standalone.png"; align="center"; title="Syncrepl Standalone Proxy Mode"
index cb51d8868cc4950ccaca9f8fcefa547a54cefda0..7b5a21efcee6eb7ea01ecf01ad26b4129ebc0562 100644 (file)
@@ -569,12 +569,12 @@ H4: olcSyncrepl
 >              [syncdata=default|accesslog|changelog]
 
 
-This directive specifies the current database as a replica of the
-master content by establishing the current {{slapd}}(8) as a
+This directive specifies the current database as a consumer of the
+provider content by establishing the current {{slapd}}(8) as a
 replication consumer site running a syncrepl replication engine.
-The master database is located at the replication provider site
-specified by the {{EX:provider}} parameter. The replica database is
-kept up-to-date with the master content using the LDAP Content
+The provider database is located at the provider site
+specified by the {{EX:provider}} parameter. The consumer database is
+kept up-to-date with the provider content using the LDAP Content
 Synchronization protocol. See {{REF:RFC4533}}
 for more information on the protocol.
 
@@ -585,19 +585,16 @@ described by the current {{EX:syncrepl}} directive. {{EX:<replica ID>}}
 is non-negative and is no more than three decimal digits in length.
 
 The {{EX:provider}} parameter specifies the replication provider site
-containing the master content as an LDAP URI. The {{EX:provider}}
+containing the provider content as an LDAP URI. The {{EX:provider}}
 parameter specifies a scheme, a host and optionally a port where the
 provider slapd instance can be found. Either a domain name or IP
 address may be used for <hostname>. Examples are
 {{EX:ldap://provider.example.com:389}} or {{EX:ldaps://192.168.1.1:636}}.
 If <port> is not given, the standard LDAP port number (389 or 636) is used.
 Note that the syncrepl uses a consumer-initiated protocol, and hence its
-specification is located at the consumer site, whereas the {{EX:replica}}
-specification is located at the provider site. {{EX:syncrepl}} and
-{{EX:replica}} directives define two independent replication
-mechanisms. They do not represent the replication peers of each other.
+specification is located on the consumer.
 
-The content of the syncrepl replica is defined using a search
+The content of the syncrepl consumer is defined using a search
 specification as its result set. The consumer slapd will
 send search requests to the provider slapd according to the search
 specification. The search specification includes {{EX:searchbase}},
@@ -620,7 +617,7 @@ synchronization operation finishes. The interval is specified
 by the {{EX:interval}} parameter. It is set to one day by default.
 In the {{EX:refreshAndPersist}} operation, a synchronization search
 remains persistent in the provider {{slapd}} instance. Further updates to the
-master replica will generate {{EX:searchResultEntry}} to the consumer slapd
+provider will generate {{EX:searchResultEntry}} to the consumer slapd
 as the search responses to the persistent synchronization search.
 
 If an error occurs during replication, the consumer will attempt to reconnect
@@ -633,8 +630,8 @@ indefinite number of retries until success.
 The schema checking can be enforced at the LDAP Sync consumer site
 by turning on the {{EX:schemachecking}} parameter.
 If it is turned on, every replicated entry will be checked for its
-schema as the entry is stored into the replica content.
-Every entry in the replica should contain those attributes
+schema as the entry is stored on the consumer.
+Every entry in the consumer should contain those attributes
 required by the schema definition.
 If it is turned off, entries will be stored without checking
 schema conformance. The default is off.
@@ -642,7 +639,7 @@ schema conformance. The default is off.
 The {{EX:binddn}} parameter gives the DN to bind as for the
 syncrepl searches to the provider slapd. It should be a DN
 which has read access to the replication content in the
-master database. 
+provider database. 
 
 The {{EX:bindmethod}} is {{EX:simple}} or {{EX:sasl}},
 depending on whether simple password-based authentication or
@@ -707,14 +704,15 @@ for more details.
 
 H4: olcUpdateref: <URL>
 
-This directive is only applicable in a slave slapd. It
+This directive is only applicable in a {{replica}} (or {{shadow}})
+{{slapd}}(8) instance. It
 specifies the URL to return to clients which submit update
 requests upon the replica.
 If specified multiple times, each {{TERM:URL}} is provided.
 
 \Example:
 
->      olcUpdateref:   ldap://master.example.net
+>      olcUpdateref:   ldap://provider.example.net
 
 
 H4: Sample Entries
index d943eb9f905ead9d169ad5423d710951d173fb35..d001e13e0de8e7453e22fb85b6f13f0013934697 100644 (file)
@@ -427,12 +427,12 @@ H4: syncrepl
 >              [syncdata=default|accesslog|changelog]
 
 
-This directive specifies the current database as a replica of the
-master content by establishing the current {{slapd}}(8) as a
+This directive specifies the current database as a consumer of the
+provider content by establishing the current {{slapd}}(8) as a
 replication consumer site running a syncrepl replication engine.
-The master database is located at the replication provider site
-specified by the {{EX:provider}} parameter. The replica database is
-kept up-to-date with the master content using the LDAP Content
+The provider database is located at the replication provider site
+specified by the {{EX:provider}} parameter. The consumer database is
+kept up-to-date with the provider content using the LDAP Content
 Synchronization protocol. See {{REF:RFC4533}}
 for more information on the protocol.
 
@@ -443,19 +443,16 @@ described by the current {{EX:syncrepl}} directive. {{EX:<replica ID>}}
 is non-negative and is no more than three decimal digits in length.
 
 The {{EX:provider}} parameter specifies the replication provider site
-containing the master content as an LDAP URI. The {{EX:provider}}
+containing the provider content as an LDAP URI. The {{EX:provider}}
 parameter specifies a scheme, a host and optionally a port where the
 provider slapd instance can be found. Either a domain name or IP
 address may be used for <hostname>. Examples are
 {{EX:ldap://provider.example.com:389}} or {{EX:ldaps://192.168.1.1:636}}.
 If <port> is not given, the standard LDAP port number (389 or 636) is used.
 Note that the syncrepl uses a consumer-initiated protocol, and hence its
-specification is located at the consumer site, whereas the {{EX:replica}}
-specification is located at the provider site. {{EX:syncrepl}} and
-{{EX:replica}} directives define two independent replication
-mechanisms. They do not represent the replication peers of each other.
+specification is located on the consumer.
 
-The content of the syncrepl replica is defined using a search
+The content of the syncrepl consumer is defined using a search
 specification as its result set. The consumer slapd will
 send search requests to the provider slapd according to the search
 specification. The search specification includes {{EX:searchbase}},
@@ -479,7 +476,7 @@ synchronization operation finishes. The interval is specified
 by the {{EX:interval}} parameter. It is set to one day by default.
 In the {{EX:refreshAndPersist}} operation, a synchronization search
 remains persistent in the provider {{slapd}} instance. Further updates to the
-master replica will generate {{EX:searchResultEntry}} to the consumer slapd
+provider will generate {{EX:searchResultEntry}} to the consumer slapd
 as the search responses to the persistent synchronization search.
 
 If an error occurs during replication, the consumer will attempt to reconnect
@@ -492,8 +489,8 @@ indefinite number of retries until success.
 The schema checking can be enforced at the LDAP Sync consumer site
 by turning on the {{EX:schemachecking}} parameter.
 If it is turned on, every replicated entry will be checked for its
-schema as the entry is stored into the replica content.
-Every entry in the replica should contain those attributes
+schema as the entry is stored on the consumer.
+Every entry in the consumer should contain those attributes
 required by the schema definition.
 If it is turned off, entries will be stored without checking
 schema conformance. The default is off.
@@ -507,7 +504,7 @@ defaults for these parameters come from {{ldap.conf}}(5).
 The {{EX:binddn}} parameter gives the DN to bind as for the
 syncrepl searches to the provider slapd. It should be a DN
 which has read access to the replication content in the
-master database. 
+provider database. 
 
 The {{EX:bindmethod}} is {{EX:simple}} or {{EX:sasl}},
 depending on whether simple password-based authentication or
@@ -573,7 +570,7 @@ more information on how to use this directive.
 
 H4: updateref <URL>
 
-This directive is only applicable in a {{slave}} (or {{shadow}})
+This directive is only applicable in a {{replica}} (or {{shadow}})
 {{slapd}}(8) instance. It
 specifies the URL to return to clients which submit update
 requests upon the replica.
@@ -581,7 +578,7 @@ If specified multiple times, each {{TERM:URL}} is provided.
 
 \Example:
 
->      updateref       ldap://master.example.net
+>      updateref       ldap://provider.example.net
 
 
 H3: BDB and HDB Database Directives
@@ -632,7 +629,7 @@ controls).
 The next section of the configuration file defines a BDB
 backend that will handle queries for things in the
 "dc=example,dc=com" portion of the tree. The
-database is to be replicated to two slave slapds, one on
+database is to be replicated to two replica slapds, one on
 truelies, the other on judgmentday. Indices are to be
 maintained for several attributes, and the {{EX:userPassword}}
 attribute is to be protected from unauthorized access.
index 4464a955d38d0e3652405db6eb2b0dce08bb248a..642bf8a08d622e1657eccae2f22d911ef7a0c48d 100644 (file)
            x="96.974648"
            y="113.75929"
            style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara27617">Master/Provider</flowPara></flowRoot>    <flowRoot
+         id="flowPara27617">Provider</flowPara></flowRoot>    <flowRoot
        xml:space="preserve"
        id="flowRoot3120"
        style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial"
index 466bccf571078da93f90205e938b1d666e1669b9..e00852e73b20d28288e2bc09e998ff693f378b76 100755 (executable)
            x="137.38075"
            y="681.46503"
            style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara15542">Replica Pool</flowPara></flowRoot>    <flowRoot
+         id="flowPara15542">Consumer Pool</flowPara></flowRoot>    <flowRoot
        xml:space="preserve"
        id="flowRoot15534"
        style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial"
            x="137.38075"
            y="681.46503"
            style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara15544">Replica Pool</flowPara></flowRoot>    <path
+         id="flowPara15544">Consumer Pool</flowPara></flowRoot>    <path
        style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.71494228px;stroke-linecap:butt;stroke-linejoin:miter;marker-start:url(#Arrow1Lstart);marker-end:url(#Arrow1Lend);stroke-opacity:1"
        d="M 254.55844,186.23712 L 254.55844,261.49474"
        id="path16515" />
similarity index 99%
rename from doc/guide/images/src/n-way-multi-master.svg
rename to doc/guide/images/src/n-way-multi-provider.svg
index 65896783f9c22a94428150162dbcb5be4d530519..f0c3717f9ff871e435ac29e7326dc7711bd1d99a 100644 (file)
    id="svg7893"
    inkscape:version="0.46"
    sodipodi:docbase="/home/ghenry/Desktop"
-   sodipodi:docname="n-way-multi-master.svg"
+   sodipodi:docname="n-way-multi-provider.svg"
    sodipodi:version="0.32"
    width="744.09448"
    inkscape:output_extension="org.inkscape.output.svg.inkscape"
    version="1.0"
-   inkscape:export-filename="/home/ghenry/Desktop/n-way-multi-master.png"
+   inkscape:export-filename="/home/ghenry/Desktop/n-way-multi-provider.png"
    inkscape:export-xdpi="90"
    inkscape:export-ydpi="90">
   <metadata
            x="194.28572"
            y="475.52304"
            style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara6968">N-Way Multi-Master</flowPara></flowRoot>    <text
+         id="flowPara6968">N-Way Multi-Provider</flowPara></flowRoot>    <text
        xml:space="preserve"
        style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
        x="316"
index 9f07974bf91dfd73d8ff50ca76c95463e5ee204a..d784322928e5d7547707d3f6434c4a72925c6a00 100644 (file)
            x="96.974648"
            y="113.75929"
            style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara27617">Master/Provider</flowPara></flowRoot>    <g
+         id="flowPara27617">Provider</flowPara></flowRoot>    <g
        id="g3073"
        transform="matrix(0.1267968,0,0,0.1710106,264.00249,370.01498)">
       <path
            x="412.14224"
            y="279.42432"
            style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara3136">Primary directory also contains back-ldap databases that replicate from the Master directory and push out changes to the replicas</flowPara></flowRoot>    <flowRoot
+         id="flowPara3136">Primary directory also contains back-ldap databases that replicate from the provider directory and push out changes to the replicas</flowPara></flowRoot>    <flowRoot
        xml:space="preserve"
        id="flowRoot6975"
        style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
index 84ec2d13a1c81030b9e3b4ad46e4c32e646c833f..0e4d783272bf797418624c8145b36396d3f053b5 100644 (file)
            x="96.974648"
            y="113.75929"
            style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara27617">Master/Provider</flowPara></flowRoot>    <g
+         id="flowPara27617">Provider</flowPara></flowRoot>    <g
        id="g3073"
        transform="matrix(0.1267968,0,0,0.1710106,264.00249,370.01498)"
        inkscape:export-filename="/anything/src/openldap/ldap/doc/guide/images/src/push-based-complete.png"
            x="412.14224"
            y="279.42432"
            style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial" /></flowRegion><flowPara
-         id="flowPara3136">Primary directory is a standard OpenLDAP Master, ldap proxy using Syncrepl pulls in changes from the master and pushes out to replicas. Useful if you don't have access to original master.</flowPara></flowRoot>    <flowRoot
+         id="flowPara3136">Primary directory is a standard OpenLDAP provider, ldap proxy using Syncrepl pulls in changes from the provider and pushes out to replicas. Useful if you don't have access to original provider.</flowPara></flowRoot>    <flowRoot
        xml:space="preserve"
        id="flowRoot6975"
        style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
index 2c08ce26f5e34194fcc74a8ec41dcab8706ab93c..71e2852ece63b7a217ee5e42de39c5a3f4507e17 100644 (file)
@@ -235,7 +235,7 @@ the attribute type is non-operational.
 .TP
 .B LDAP_SCHEMA_DIRECTORY_OPERATION
 the attribute type is operational and is pertinent to the directory
-itself, i.e. it has the same value on all servers that master the
+itself, i.e. it has the same value on all servers that provide the
 entry containing this attribute type.
 .TP
 .B LDAP_SCHEMA_DISTRIBUTED_OPERATION
@@ -245,7 +245,7 @@ shadowing or other distributed directory aspect.  TBC.
 .B LDAP_SCHEMA_DSA_OPERATION
 the attribute type is operational and is pertinent to the directory
 server itself, i.e. it may have different values for the same entry
-when retrieved from different servers that master the entry.
+when retrieved from different servers that provide the entry.
 .LP
 Object classes can be of three kinds:
 .TP
index 5753292b43a6f1d2d3f49620e0297c0a62a298df..96f79466922aefdc6bf9bd5bfab43c40d868a7c9 100644 (file)
@@ -748,15 +748,15 @@ Specify an integer ID from 0 to 4095 for this server (limited
 to 3 hexadecimal digits).  The ID may also be specified as a
 hexadecimal ID by prefixing the value with "0x".
 Non-zero IDs are
-required when using multimaster replication and each master must have a
-unique non-zero ID. Note that this requirement also applies to separate masters
+required when using multi-provider replication and each provider must have a
+unique non-zero ID. Note that this requirement also applies to separate providers
 contributing to a glued set of databases.
 If the URL is provided, this directive may be specified
 multiple times, providing a complete list of participating servers
 and their IDs. The fully qualified hostname of each server should be
 used in the supplied URLs. The IDs are used in the "replica id" field
 of all CSNs generated by the specified server. The default value is zero, which
-is only valid for single master replication.
+is only valid for single provider replication.
 Example:
 .LP
 .nf
@@ -1638,7 +1638,7 @@ Specifies the maximum number of aliases to dereference when trying to
 resolve an entry, used to avoid infinite alias loops. The default is 15.
 .TP
 .B olcMirrorMode: TRUE | FALSE
-This option puts a replica database into "mirror" mode.  Update
+This option puts a consumer database into "mirror" mode.  Update
 operations will be accepted from any user, not just the updatedn.  The
 database must already be configured as syncrepl consumer
 before this keyword may be set.  This mode also requires a
@@ -1793,13 +1793,13 @@ FALSE, meaning the contextCSN is stored in the context entry.
 .B [logfilter=<filter str>]
 .B [syncdata=default|accesslog|changelog]
 .RS
-Specify the current database as a replica which is kept up-to-date with the 
-master content by establishing the current
+Specify the current database as a consumer which is kept up-to-date with the 
+provider content by establishing the current
 .BR slapd (8)
 as a replication consumer site running a
 .B syncrepl
 replication engine.
-The replica content is kept synchronized to the master content using
+The consumer content is kept synchronized to the provider content using
 the LDAP Content Synchronization protocol. Refer to the
 "OpenLDAP Administrator's Guide" for detailed information on
 setting up a replicated
@@ -1815,13 +1815,13 @@ directive within the replication consumer site.
 It is a non-negative integer having no more than three decimal digits.
 
 .B provider
-specifies the replication provider site containing the master content
+specifies the replication provider site containing the provider content
 as an LDAP URI. If <port> is not given, the standard LDAP port number
 (389 or 636) is used.
 
 The content of the
 .B syncrepl
-replica is defined using a search
+consumer is defined using a search
 specification as its result set. The consumer
 .B slapd
 will send search requests to the provider
@@ -1856,7 +1856,7 @@ after each synchronization operation finishes.
 In the
 .B refreshAndPersist
 operation, a synchronization search remains persistent in the provider slapd.
-Further updates to the master replica will generate
+Further updates to the provider will generate
 .B searchResultEntry
 to the consumer slapd as the search responses to the persistent
 synchronization search. If the initial search fails due to an error, the
@@ -1979,7 +1979,7 @@ ignored.
 .RE
 .TP
 .B olcUpdateDN: <dn>
-This option is only applicable in a slave
+This option is only applicable in a replica
 database.
 It specifies the DN permitted to update (subject to access controls)
 the replica.  It is only needed in certain push-mode
@@ -1987,7 +1987,7 @@ replication scenarios.  Generally, this DN
 .I should not
 be the same as the
 .B rootdn 
-used at the master.
+used at the provider.
 .TP
 .B olcUpdateRef: <url>
 Specify the referral to pass back when
index 78b2415ea01fccbc9f1c6b46e5c15fd1bef62fa5..ca89c4d77861a827a92db8f4649cf8d6ae2ef162 100644 (file)
@@ -938,15 +938,15 @@ Specify an integer ID from 0 to 4095 for this server (limited
 to 3 hexadecimal digits).  The ID may also be specified as a
 hexadecimal ID by prefixing the value with "0x".
 Non-zero IDs are
-required when using multimaster replication and each master must have a
-unique non-zero ID. Note that this requirement also applies to separate masters
+required when using multi-provider replication and each provider must have a
+unique non-zero ID. Note that this requirement also applies to separate providers
 contributing to a glued set of databases.
 If the URL is provided, this directive may be specified
 multiple times, providing a complete list of participating servers
 and their IDs. The fully qualified hostname of each server should be
 used in the supplied URLs. The IDs are used in the "replica id" field
 of all CSNs generated by the specified server. The default value is zero, which
-is only valid for single master replication.
+is only valid for single provider replication.
 Example:
 .LP
 .nf
@@ -1581,7 +1581,7 @@ Specifies the maximum number of aliases to dereference when trying to
 resolve an entry, used to avoid infinite alias loops. The default is 15.
 .TP
 .B mirrormode on | off
-This option puts a replica database into "mirror" mode.  Update
+This option puts a consumer database into "mirror" mode.  Update
 operations will be accepted from any user, not just the updatedn.  The
 database must already be configured as a syncrepl consumer
 before this keyword may be set. This mode also requires a
@@ -1773,13 +1773,13 @@ the contextCSN is stored in the context entry.
 .B [logfilter=<filter str>]
 .B [syncdata=default|accesslog|changelog]
 .RS
-Specify the current database as a replica which is kept up-to-date with the 
-master content by establishing the current
+Specify the current database as a consumer which is kept up-to-date with the 
+provider content by establishing the current
 .BR slapd (8)
 as a replication consumer site running a
 .B syncrepl
 replication engine.
-The replica content is kept synchronized to the master content using
+The consumer content is kept synchronized to the provider content using
 the LDAP Content Synchronization protocol. Refer to the
 "OpenLDAP Administrator's Guide" for detailed information on
 setting up a replicated
@@ -1796,13 +1796,13 @@ It is a non-negative integer not greater than 999 (limited
 to three decimal digits).
 
 .B provider
-specifies the replication provider site containing the master content
+specifies the replication provider site containing the provider content
 as an LDAP URI. If <port> is not given, the standard LDAP port number
 (389 or 636) is used.
 
 The content of the
 .B syncrepl
-replica is defined using a search
+consumer is defined using a search
 specification as its result set. The consumer
 .B slapd
 will send search requests to the provider
@@ -1852,7 +1852,7 @@ after each synchronization operation finishes.
 In the
 .B refreshAndPersist
 operation, a synchronization search remains persistent in the provider slapd.
-Further updates to the master replica will generate
+Further updates to the provider will generate
 .B searchResultEntry
 to the consumer slapd as the search responses to the persistent
 synchronization search.  If the initial search fails due to an error, the
@@ -1991,7 +1991,7 @@ ignored.
 .RE
 .TP
 .B updatedn <dn>
-This option is only applicable in a slave
+This option is only applicable in a replica
 database.
 It specifies the DN permitted to update (subject to access controls)
 the replica.  It is only needed in certain push-mode
@@ -1999,7 +1999,7 @@ replication scenarios.  Generally, this DN
 .I should not
 be the same as the
 .B rootdn 
-used at the master.
+used at the provider.
 .TP
 .B updateref <url>
 Specify the referral to pass back when
index 8f5b8d0f475ba1ae5c5379b24f17ee804c6b888a..8a9eb80b9958c04f1e59ceb208752a515e4c0313 100644 (file)
@@ -223,8 +223,8 @@ access to dn.onelevel="cn=Meetings"
 
 .SH REPLICATION
 This implementation of RFC 2589 provides a restricted interpretation of how
-dynamic objects replicate.  Only the master takes care of handling dynamic
-object expiration, while replicas simply see the dynamic object as a plain
+dynamic objects replicate.  Only the provider takes care of handling dynamic
+object expiration, while consumers simply see the dynamic object as a plain
 object.
 
 When replicating these objects, one needs to explicitly exclude the 
index 0194cbc947f3d79f94efcd1173e97b62f696a1d9..e336e318bd4badfa12de2d5bbc2e99d4e39d3992 100644 (file)
@@ -107,9 +107,9 @@ The memberof overlay may be used with any backend that provides full
 read-write functionality, but it is mainly intended for use 
 with local storage backends. The maintenance operations it performs
 are internal to the server on which the overlay is configured and
-are never replicated. Replica servers should be configured with their
+are never replicated. Consumer servers should be configured with their
 own instances of the memberOf overlay if it is desired to maintain
-these memberOf attributes on the replicas.  Note that slapo-memberOf
+these memberOf attributes on the consumers.  Note that slapo-memberOf
 is not compatible with syncrepl based replication, and should not be
 used in a replicated environment. An alternative is to use slapo-dynlist
 to emulate slapo-memberOf behavior.
index cf77a3bce9fbe8792b47697f69e79bf1b9f0347d..0b4c92e2be607a18df6fc2914d0578b8e50ada5e 100644 (file)
@@ -53,7 +53,7 @@ and no default is given, then no policies will be enforced.
 .B ppolicy_forward_updates
 Specify that policy state changes that result from Bind operations (such
 as recording failures, lockout, etc.) on a consumer should be forwarded
-to a master instead of being written directly into the consumer's local
+to a provider instead of being written directly into the consumer's local
 database. This setting is only useful on a replication consumer, and
 also requires the
 .B updateref
@@ -552,12 +552,12 @@ module.
 Note that the current IETF Password Policy proposal does not define
 how these operational attributes are expected to behave in a
 replication environment. In general, authentication attempts on
-a slave server only affect the copy of the operational attributes
-on that slave and will not affect any attributes for
-a user's entry on the master server. Operational attribute changes
-resulting from authentication attempts on a master server
-will usually replicate to the slaves (and also overwrite
-any changes that originated on the slave). 
+a replica server only affect the copy of the operational attributes
+on that replica and will not affect any attributes for
+a user's entry on the provider. Operational attribute changes
+resulting from authentication attempts on a provider
+will usually replicate to the replicas (and also overwrite
+any changes that originated on the replica). 
 These behaviors are not guaranteed and are subject to change
 when a formal specification emerges.
 
index a404730b6423fb05a13eeb951bdedd977069b195..3dd4396a70adb091441219e10ae8fb77b82c0753 100644 (file)
@@ -164,7 +164,7 @@ database will be unusable.
 .B \-s
 disable schema checking.  This option is intended to be used when loading
 databases containing special objects, such as fractional objects on a
-partial replica.  Loading normal objects which do not conform to
+partial consumer.  Loading normal objects which do not conform to
 schema may result in unexpected and ill behavior.
 .TP
 .BI \-S \ SID
index 118cb31650dc2b31ec788036cdb2b57d4281cb09..efe678d535cd510f23431e305cb649825cd8c9e9 100644 (file)
@@ -275,12 +275,12 @@ having the matching replication identifier in its definition. The
 .B rid
 must be provided in order for any other specified values to be used.
 .B sid
-is the server id in a multi-master/mirror-mode configuration.
+is the server id in a multi-provider configuration.
 .B csn
 is the commit sequence number received by a previous synchronization
-and represents the state of the consumer replica content which the
+and represents the state of the consumer content which the
 syncrepl engine will synchronize to the current provider content.
-In case of \fImirror-mode\fP or \fImulti-master\fP replication agreement,
+In case of \fImulti-provider\fP replication agreement,
 multiple
 .B csn
 values, semicolon separated, can appear.
index a94cfaab6efc7353713409e42508da9d2823eb58..af738ad619e61a657909fbd7f40abfa86933256f 100644 (file)
@@ -6,7 +6,7 @@
 # This file should be world readable but not world writable.
 
 #BASE  dc=example,dc=com
-#URI   ldap://ldap.example.com ldap://ldap-master.example.com:666
+#URI   ldap://ldap.example.com ldap://ldap-provider.example.com:666
 
 #SIZELIMIT     12
 #TIMELIMIT     15
index a68428cd45e3d3ebc6d65beed5d47d3a6d172bfd..33ecc51587d48fa11ace655313e874d69f87a7d4 100644 (file)
@@ -290,7 +290,7 @@ fe_op_add( Operation *op, SlapReply *rs )
        /*
         * do the add if 1 && (2 || 3)
         * 1) there is an add function implemented in this backend;
-        * 2) this backend is master for what it holds;
+        * 2) this backend is the provider for what it holds;
         * 3) it's a replica and the dn supplied is the updatedn.
         */
        if ( op->o_bd->be_add ) {
index c714d8257a341ff4a1134e3de9e62d4b3b8b1d2f..885f4af03813067c39aff6b7452762bb2d3a8089 100644 (file)
@@ -232,7 +232,7 @@ glue_op_func ( Operation *op, SlapReply *rs )
 
        op->o_bd = glue_back_select (b0, &op->o_req_ndn);
 
-       /* If we're on the master backend, let overlay framework handle it */
+       /* If we're on the primary backend, let overlay framework handle it */
        if ( op->o_bd == b0 )
                return SLAP_CB_CONTINUE;
 
@@ -288,7 +288,7 @@ glue_response ( Operation *op, SlapReply *rs )
        BackendDB *be = op->o_bd;
        be = glue_back_select (op->o_bd, &op->o_req_ndn);
 
-       /* If we're on the master backend, let overlay framework handle it.
+       /* If we're on the primary backend, let overlay framework handle it.
         * Otherwise, bail out.
         */
        return ( op->o_bd == be ) ? SLAP_CB_CONTINUE : SLAP_CB_BYPASS;
@@ -352,7 +352,7 @@ glue_chk_controls ( Operation *op, SlapReply *rs )
 
 /* ITS#4615 - overlays configured above the glue overlay should be
  * invoked for the entire glued tree. Overlays configured below the
- * glue overlay should only be invoked on the master backend.
+ * glue overlay should only be invoked on the primary backend.
  * So, if we're searching on any subordinates, we need to force the
  * current overlay chain to stop processing, without stopping the
  * overall callback flow.
@@ -361,7 +361,7 @@ static int
 glue_sub_search( Operation *op, SlapReply *rs, BackendDB *b0,
        slap_overinst *on )
 {
-       /* Process any overlays on the master backend */
+       /* Process any overlays on the primary backend */
        if ( op->o_bd == b0 && on->on_next ) {
                BackendInfo *bi = op->o_bd->bd_info;
                int rc = SLAP_CB_CONTINUE;
index f1e50c694022c3a2f81043dae966eae085395836..fb7c48a944a73ef5d6132e1dff19e2a4ff23d886 100644 (file)
@@ -1969,7 +1969,7 @@ slap_client_connect( LDAP **ldp, slap_bindconf *sb )
        int             rc;
        struct timeval tv;
 
-       /* Init connection to master */
+       /* Init connection to provider */
        rc = ldap_initialize( &ld, sb->sb_uri.bv_val );
        if ( rc != LDAP_SUCCESS ) {
                Debug( LDAP_DEBUG_ANY,
index 4ea737738fb06256dda443347288b9c91687aeac..881dbd09f8d8281dabba9282c75a9c80ef2b3924 100644 (file)
@@ -157,7 +157,7 @@ fe_op_delete( Operation *op, SlapReply *rs )
        /*
         * do the delete if 1 && (2 || 3)
         * 1) there is a delete function implemented in this backend;
-        * 2) this backend is master for what it holds;
+        * 2) this backend is the provider for what it holds;
         * 3) it's a replica and the dn supplied is the update_ndn.
         */
        if ( op->o_bd->be_delete ) {
index 734eab3cf4ddf7465e5a67f6aa399fd8379f6d31..a76822fc1bf51cfdc7a1386a9b24825bbc7448b1 100644 (file)
@@ -496,7 +496,7 @@ int main( int argc, char **argv )
                        urls = ch_strdup( optarg );
                        break;
 
-               case 'c':       /* provide sync cookie, override if exist in replica */
+               case 'c':       /* provide sync cookie, override if exist in consumer */
                        scp = (struct sync_cookie *) ch_calloc( 1,
                                                                                sizeof( struct sync_cookie ));
                        ber_str2bv( optarg, 0, 1, &scp->octet_str );
index c59e882b4b8248503fc01bf0bc2a4947c8a43c28..ac65ba6123ebb43fbee5b99be13acf4994c809fd 100644 (file)
@@ -276,7 +276,7 @@ fe_op_modify( Operation *op, SlapReply *rs )
        /*
         * do the modify if 1 && (2 || 3)
         * 1) there is a modify function implemented in this backend;
-        * 2) this backend is master for what it holds;
+        * 2) this backend is the provider for what it holds;
         * 3) it's a replica and the dn supplied is the update_ndn.
         */
        if ( op->o_bd->be_modify ) {
index f72813255fa6c52491de3dfa52bc48ae679cb4a1..c73dd8dbaa5586b0137423e0056904fe88f10237 100644 (file)
@@ -302,7 +302,7 @@ fe_op_modrdn( Operation *op, SlapReply *rs )
        /*
         * do the modrdn if 1 && (2 || 3)
         * 1) there is a modrdn function implemented in this backend;
-        * 2) this backend is master for what it holds;
+        * 2) this backend is the provider for what it holds;
         * 3) it's a replica and the dn supplied is the update_ndn.
         */
        if ( op->o_bd->be_modrdn ) {
index 99e3bcde883681b0613aa55023ba7610d5961faa..0096b565043493fb7f80672aa786179251e4045f 100644 (file)
@@ -1102,7 +1102,7 @@ dds_op_extended( Operation *op, SlapReply *rs )
                        ttl = di->di_min_ttl;
                }
 
-               /* This does not apply to multi-master case */
+               /* This does not apply to multi-provider case */
                if ( !( !SLAP_SINGLE_SHADOW( op->o_bd ) || be_isupdate( op ) ) ) {
                        /* we SHOULD return a referral in this case */
                        BerVarray defref = op->o_bd->be_update_refs
index 3c12024bdf2c16f3f81118acb55319d214e95192..4ded4c4b956c4b6ef925f47d827b7c06432d15fc 100644 (file)
@@ -1502,7 +1502,7 @@ ppolicy_add(
        if ( ppolicy_restrict( op, rs ) != SLAP_CB_CONTINUE )
                return rs->sr_err;
 
-       /* If this is a replica, assume the master checked everything */
+       /* If this is a replica, assume the provider checked everything */
        if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) )
                return SLAP_CB_CONTINUE;
 
@@ -1645,7 +1645,7 @@ ppolicy_modify( Operation *op, SlapReply *rs )
        if ( rc != LDAP_SUCCESS ) return SLAP_CB_CONTINUE;
 
        /* If this is a replica, we may need to tweak some of the
-        * master's modifications. Otherwise, just pass it through.
+        * provider's modifications. Otherwise, just pass it through.
         */
        if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ) {
                Modifications **prev;
index 1881f47c9553e1292f580134741dfbf76e1a8134..dff81ea325cd695753eaac31cdfd4a68c4df6de1 100644 (file)
@@ -162,7 +162,7 @@ int passwd_extop(
                goto error_return;
        }
 
-       /* This does not apply to multi-master case */
+       /* This does not apply to multi-provider case */
        if(!( !SLAP_SINGLE_SHADOW( op->o_bd ) || be_isupdate( op ))) {
                /* we SHOULD return a referral in this case */
                BerVarray defref = op->o_bd->be_update_refs
index f003bb99396f92888d5cc5fa5d9fe528f08e85b6..0e60aa1756813556fb3ab21364f64152af273185 100644 (file)
@@ -1845,14 +1845,14 @@ struct BackendDB {
 #define SLAP_DBFLAG_DYNAMIC            0x0400U /* this db allows dynamicObjects */
 #define        SLAP_DBFLAG_MONITORING          0x0800U /* custom monitoring enabled */
 #define SLAP_DBFLAG_SHADOW             0x8000U /* a shadow */
-#define SLAP_DBFLAG_SINGLE_SHADOW      0x4000U /* a single-master shadow */
+#define SLAP_DBFLAG_SINGLE_SHADOW      0x4000U /* a single-provider shadow */
 #define SLAP_DBFLAG_SYNC_SHADOW                0x1000U /* a sync shadow */
 #define SLAP_DBFLAG_SLURP_SHADOW       0x2000U /* a slurp shadow */
 #define SLAP_DBFLAG_SHADOW_MASK                (SLAP_DBFLAG_SHADOW|SLAP_DBFLAG_SINGLE_SHADOW|SLAP_DBFLAG_SYNC_SHADOW|SLAP_DBFLAG_SLURP_SHADOW)
 #define SLAP_DBFLAG_CLEAN              0x10000U /* was cleanly shutdown */
 #define SLAP_DBFLAG_ACL_ADD            0x20000U /* check attr ACLs on adds */
 #define SLAP_DBFLAG_SYNC_SUBENTRY      0x40000U /* use subentry for context */
-#define SLAP_DBFLAG_MULTI_SHADOW       0x80000U /* uses mirrorMode/multi-master */
+#define SLAP_DBFLAG_MULTI_SHADOW       0x80000U /* uses multi-provider */
        slap_mask_t     be_flags;
 #define SLAP_DBFLAGS(be)                       ((be)->be_flags)
 #define SLAP_NOLASTMOD(be)                     (SLAP_DBFLAGS(be) & SLAP_DBFLAG_NOLASTMOD)
@@ -1958,7 +1958,7 @@ struct BackendDB {
        slap_access_t   be_dfltaccess;  /* access given if no acl matches          */
        AttributeName   *be_extra_anlist;       /* attributes that need to be added to search requests (ITS#6513) */
 
-       /* Replica Information */
+       /* Consumer Information */
        struct berval be_update_ndn;    /* allowed to make changes (in replicas) */
        BerVarray       be_update_refs; /* where to refer modifying clients to */
        struct          be_pcl  *be_pending_csn_list;
index 55b638f624925d33a59ec282cadf6a60c1ee18f8..e3ce0f2f55f6e1e2a96c6c8032a6086e7a7bf839 100644 (file)
@@ -794,7 +794,7 @@ slap_tool_init(
                        break;
                }
 
-               /* If the named base is a glue master, operate on the
+               /* If the named base is a glue primary, operate on the
                 * entire context
                 */
                if ( SLAP_GLUE_INSTANCE( be ) ) {
@@ -822,7 +822,7 @@ slap_tool_init(
                                continue;
 
                /* If just doing the first by default and it is a
-                * glue subordinate, find the master.
+                * glue subordinate, find the primary.
                 */
                        if ( SLAP_GLUE_SUBORDINATE(be) ) {
                                nosubordinates = 1;
index aabd56eccb76f79862b751d4dd09db3ac296245e..960b4a99af14f0c608dd4c8a1932ff1ba614d9b2 100644 (file)
@@ -153,7 +153,7 @@ static struct berval * slap_uuidstr_from_normalized(
 static int syncrepl_add_glue_ancestors(
        Operation* op, Entry *e );
 
-/* delta-mmr overlay handler */
+/* delta-mpr overlay handler */
 static int syncrepl_op_modify( Operation *op, SlapReply *rs );
 
 /* callback functions */
@@ -162,7 +162,7 @@ static int nonpresent_callback( Operation *, SlapReply * );
 
 static AttributeDescription *sync_descs[4];
 
-/* delta-mmr */
+/* delta-mpr */
 static AttributeDescription *ad_reqMod, *ad_reqDN;
 
 typedef struct logschema {
@@ -229,7 +229,7 @@ init_syncrepl(syncinfo_t *si)
                overlay_register( &syncrepl_ov );
        }
 
-       /* delta-MMR needs the overlay, nothing else does.
+       /* delta-MPR needs the overlay, nothing else does.
         * This must happen before accesslog overlay is configured.
         */
        if ( si->si_syncdata &&
@@ -1513,10 +1513,10 @@ do_syncrepl(
         * in use. This may be complicated by the use of the glue
         * overlay.
         *
-        * Typically there is a single syncprov mastering the entire
+        * Typically there is a single syncprov controlling the entire
         * glued tree. In that case, our contextCSN updates should
-        * go to the master DB. But if there is no syncprov on the
-        * master DB, then nothing special is needed here.
+        * go to the primary DB. But if there is no syncprov on the
+        * primary DB, then nothing special is needed here.
         *
         * Alternatively, there may be individual syncprov overlays
         * on each glued branch. In that case, each syncprov only
@@ -2459,7 +2459,7 @@ syncrepl_message_to_op(
                        OpExtraSync oes;
                        op->orm_modlist = modlist;
                        op->o_bd = si->si_wbe;
-                       /* delta-mmr needs additional checks in syncrepl_op_modify */
+                       /* delta-mpr needs additional checks in syncrepl_op_modify */
                        if ( SLAP_MULTIMASTER( op->o_bd )) {
                                oes.oe.oe_key = (void *)syncrepl_message_to_op;
                                oes.oe_si = si;
@@ -3560,7 +3560,7 @@ syncrepl_del_nonpresent(
                op->ors_limit = NULL;
                op->ors_attrsonly = 0;
                op->ors_filter = filter_dup( si->si_filter, op->o_tmpmemctx );
-               /* In multimaster, updates can continue to arrive while
+               /* In multi-provider, updates can continue to arrive while
                 * we're searching. Limit the search result to entries
                 * older than our newest cookie CSN.
                 */
index 716e341d01c2d0036188a781de4d4cea007ba87d..439cca4f131f8bd6c7981483d04eab5c5a8d2da5 100644 (file)
@@ -45,11 +45,11 @@ uid: user3
 uidNumber: 5387
 homeDirectory: /home/user3
 loginShell: /bin/false
-gecos: Slave
+gecos: Consumer
 gidNumber: 100
 userPassword: abc
-cn: Slave
-sn: Slave
+cn: Consumer
+sn: Consumer
 
 dn: uid=user2,ou=people,dc=example,dc=com
 objectClass: person
index ac86f68ecb2d48787bcd210fc00b5c7605d096f4..7fa83b748f8d9fc8362978de0904d7afbbb32578 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 5eed72de7c46edf59c9bbe421c102a7a72066f39..c880c9189fabe1dd4c9558295c2ae502f2974536 100755 (executable)
@@ -41,7 +41,7 @@ fi
 echo "This test tracks a case where changes are incorrectly skipped"
 echo "See http://www.openldap.org/its/index.cgi/?findid=8444 for more information."
 
-MMR=4
+MPR=4
 XDIR=$TESTDIR/srv
 
 mkdir -p $TESTDIR
@@ -54,7 +54,7 @@ ITSDIR=$DATADIR/regressions/its$ITS
 echo "Initializing server configurations..."
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
        DBDIR=${XDIR}$n/db
        CFDIR=${XDIR}$n/slapd.d
 
@@ -66,7 +66,7 @@ done
 
 KILLPIDS=
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
        MYURI=`eval echo '$URI'$n`
        MYLOG=`eval echo '$LOG'$n`
        CFDIR=${XDIR}$n/slapd.d
@@ -204,7 +204,7 @@ EOF
        TOON4="cn=Bugs_Bunny,ou=People,$BASEDN"
        for member in $TOON1 $TOON2 $TOON3 $TOON4; do
                n=1
-               while [ $n -le $MMR ]; do
+               while [ $n -le $MPR ]; do
                        >$SEARCHOUT
                        echo "# Searching member $member after removal from Cartoonia group, provider $n" >> $SEARCHOUT
                        MYURI=`eval echo '$URI'$n`
@@ -247,7 +247,7 @@ EOF
        echo "Searching entire database on each provider after deleting Cartoonia group"
 
        n=1
-       while [ $n -le $MMR ]; do
+       while [ $n -le $MPR ]; do
                echo "# Searching the entire database after deleting Cartoonia, provider $n" >> $SEARCHOUT
                MYURI=`eval echo '$URI'$n`
                $LDAPSEARCH -S "" -b "$BASEDN" -H $MYURI -D "cn=manager,$BASEDN" -w $PASSWD \
@@ -287,7 +287,7 @@ EOF
        echo "Searching entire database on each provider after re-adding Cartoonia group"
 
        n=1
-       while [ $n -le $MMR ]; do
+       while [ $n -le $MPR ]; do
                >$SEARCHOUT
                echo "# Searching the entire database after re-adding Cartoonia, provider $n" >> $SEARCHOUT
                MYURI=`eval echo '$URI'$n`
index 024dd3f7f99bb5872c269233054832d817be9eaa..c71ddf924bb35674757e03db31b9772807994945 100755 (executable)
@@ -37,7 +37,7 @@ if test $dtest = N; then
 fi
 
 # This mimics the scenario where a single server has been used until now (no
-# syncprov either, so no contextCSN) and we convert it to a delta-MMR setup:
+# syncprov either, so no contextCSN) and we convert it to a delta-MPR setup:
 # 1. stop the server (note that there is likely no contextCSN in the DB at this point)
 # 2. configure all servers to delta-replicate from each other and start them up
 #    - empty servers will start with a refresh of the main DB
@@ -47,7 +47,7 @@ fi
 echo "This test tracks a case where slapd deadlocks during a significant write load"
 echo "See http://www.openldap.org/its/index.cgi/?findid=8752 for more information."
 
-MMR=4
+MPR=4
 iterations=20000
 check_sync_every=100
 MAPSIZE=`expr 100 \* 1024 \* 1024`
@@ -59,7 +59,7 @@ ITS=8752
 ITSDIR=$DATADIR/regressions/its$ITS
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
        DBDIR=${XDIR}$n/db
        mkdir -p ${XDIR}$n $DBDIR.1 $DBDIR.2
        n=`expr $n + 1`
@@ -158,22 +158,22 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Stopping slapd and reworking configuration for MMR..."
+echo "Stopping slapd and reworking configuration for MPR..."
 
 kill -HUP $KILLPIDS
 wait $KILLPIDS
 
 KILLPIDS=
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
        MYURI=`eval echo '$URI'$n`
        MYLOG=`eval echo '$LOG'$n`
        MYCONF=`eval echo '$CONF'$n`
        echo "Starting provider slapd on TCP/IP URI $MYURI"
-       . $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf.mmr > $TESTDIR/slapd.conf
-       sed -e "s/MMR/$n/g" -e "s/wronglog/log/" -e "s/@MAPSIZE@/$MAPSIZE/" $TESTDIR/slapd.conf > $MYCONF
+       . $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf.mpr > $TESTDIR/slapd.conf
+       sed -e "s/MPR/$n/g" -e "s/wronglog/log/" -e "s/@MAPSIZE@/$MAPSIZE/" $TESTDIR/slapd.conf > $MYCONF
        j=1
-       while [ $j -le $MMR ]; do
+       while [ $j -le $MPR ]; do
                MMCURI=`eval echo '$URI'$j`
                sed -e "s|MMC${j}|${MMCURI}|" $MYCONF > $TESTDIR/slapd.conf
                mv $TESTDIR/slapd.conf $MYCONF
@@ -211,10 +211,10 @@ while [ $n -le $MMR ]; do
        n=`expr $n + 1`
 done
 
-echo "Setting up accesslog on each master..."
+echo "Setting up accesslog on each provider..."
 n=1
-while [ $n -le $MMR ]; do
-       echo "Modifying dn: cn=Elmer_Fudd,ou=People,$BASEDN on master $n"
+while [ $n -le $MPR ]; do
+       echo "Modifying dn: cn=Elmer_Fudd,ou=People,$BASEDN on provider $n"
        MYURI=`eval echo '$URI'$n`
        $LDAPMODIFY -v -D "$MANAGERDN" -H $MYURI -w $PASSWD > \
                $TESTOUT 2>&1 << EOMODS
@@ -246,7 +246,7 @@ done
 
 for i in 0 1 2 3 4 5; do
        j=1
-       while [ $j -le $MMR ]; do
+       while [ $j -le $MPR ]; do
         MYURI=`eval echo '$URI'$j`
                $LDAPSEARCH -b "$BASEDN" -H "$MYURI" \
                        '*' '+' >"$TESTDIR/server$j.out" 2>&1
@@ -262,7 +262,7 @@ for i in 0 1 2 3 4 5; do
 
        in_sync=1
        j=1
-       while [ $j -lt $MMR ]; do
+       while [ $j -lt $MPR ]; do
                k=$j
                j=`expr $j + 1`
                $CMP "$TESTDIR/server$k.flt" "$TESTDIR/server$j.flt" > $CMPOUT
@@ -287,7 +287,7 @@ fi
 echo "The next step of the test will perform $iterations random write operations and may take some time."
 echo "As this test is for a deadlock, it will take manual intervention to exit the test if one occurs."
 
-echo "Starting random master/entry modifications..."
+echo "Starting random provider/entry modifications..."
 DN1="cn=Elmer_Fudd,ou=People,$BASEDN"
 VAL1="Fudd"
 
@@ -304,7 +304,7 @@ n=1
 while [ $n -le $iterations ]; do
        seed=`date +%N|sed s/...$//`
        rvalue=`echo|awk "BEGIN {srand($seed)
-{print int(1+rand()*$MMR)}}"`
+{print int(1+rand()*$MPR)}}"`
        MYURI=`eval echo '$URI'$rvalue`
        seed=`date +%N|sed s/...$//`
        rvalue=`echo|awk "BEGIN {srand($seed)
@@ -332,7 +332,7 @@ EOMODS
         echo "Checking replication status before we start iteration $n..."
         for i in 0 1 2 3 4 5; do
             j=1
-            while [ $j -le $MMR ]; do
+            while [ $j -le $MPR ]; do
                 MYURI=`eval echo '$URI'$j`
                 echo "Reading database from server $j..."
                 $LDAPSEARCH -b "$BASEDN" -H "$MYURI" \
@@ -349,7 +349,7 @@ EOMODS
 
             in_sync=1
             j=1
-            while [ $j -lt $MMR ]; do
+            while [ $j -lt $MPR ]; do
                 k=`expr $j + 1`
                 $CMP "$TESTDIR/server$j.flt" "$TESTDIR/server$k.flt" > $CMPOUT
                 if test $? != 0 ; then
@@ -383,15 +383,15 @@ echo "As this test is for a deadlock, it will take manual intervention to exit t
 echo "Starting servers again, this time with the wrong logbase setting..."
 KILLPIDS=
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
     MYURI=`eval echo '$URI'$n`
     MYLOG=`eval echo '$LOG'$n`
     MYCONF=`eval echo '$CONF'$n`
     echo "Starting provider slapd on TCP/IP URI $MYURI"
-    . $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf.mmr > $TESTDIR/slapd.conf
-    sed -e "s/MMR/$n/g" -e "s/@MAPSIZE@/$MAPSIZE/" $TESTDIR/slapd.conf > $MYCONF
+    . $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf.mpr > $TESTDIR/slapd.conf
+    sed -e "s/MPR/$n/g" -e "s/@MAPSIZE@/$MAPSIZE/" $TESTDIR/slapd.conf > $MYCONF
     j=1
-    while [ $j -le $MMR ]; do
+    while [ $j -le $MPR ]; do
         MMCURI=`eval echo '$URI'$j`
         sed -e "s|MMC${j}|${MMCURI}|" $MYCONF > $TESTDIR/slapd.conf
         mv $TESTDIR/slapd.conf $MYCONF
@@ -429,12 +429,12 @@ while [ $n -le $MMR ]; do
                 n=`expr $n + 1`
             done
 
-            echo "Starting random master/entry modifications..."
+            echo "Starting random provider/entry modifications..."
             n=1
             while [ $n -le $iterations ]; do
                 seed=`date +%N|sed s/...$//`
                 rvalue=`echo|awk "BEGIN {srand($seed)
-                {print int(1+rand()*$MMR)}}"`
+                {print int(1+rand()*$MPR)}}"`
                     MYURI=`eval echo '$URI'$rvalue`
                     seed=`date +%N|sed s/...$//`
                     rvalue=`echo|awk "BEGIN {srand($seed)
@@ -462,7 +462,7 @@ if [ "$check_sync_every" -gt 0 ] && [ `expr $n % $check_sync_every` = 0 ]; then
     echo "Checking replication status before we start iteration $n..."
     for i in 0 1 2 3 4 5; do
         j=1
-        while [ $j -le $MMR ]; do
+        while [ $j -le $MPR ]; do
             MYURI=`eval echo '$URI'$j`
             echo "Reading database from server $j..."
             $LDAPSEARCH -b "$BASEDN" -H "$MYURI" \
@@ -479,7 +479,7 @@ if [ "$check_sync_every" -gt 0 ] && [ `expr $n % $check_sync_every` = 0 ]; then
 
             in_sync=1
             j=1
-            while [ $j -lt $MMR ]; do
+            while [ $j -lt $MPR ]; do
                 k=`expr $j + 1`
                 $CMP "$TESTDIR/server$j.flt" "$TESTDIR/server$k.flt" > $CMPOUT
                 if test $? != 0 ; then
similarity index 95%
rename from tests/data/regressions/its8752/slapd.conf.mmr
rename to tests/data/regressions/its8752/slapd.conf.mpr
index 2fc42a00e94cf17c8dcf904713d00c5e8e65dfb2..cf088baded87e08aaa86d871f675cdb0fb3ad710 100644 (file)
@@ -21,10 +21,10 @@ include             @SCHEMADIR@/nis.schema
 include                @DATADIR@/test.schema
 
 #
-pidfile                @TESTDIR@/slapd.MMR.pid
-argsfile       @TESTDIR@/slapd.MMR.args
+pidfile                @TESTDIR@/slapd.MPR.pid
+argsfile       @TESTDIR@/slapd.MPR.args
 
-serverid       MMR
+serverid       MPR
 #mod#modulepath ../servers/slapd/back-@BACKEND@/:../servers/slapd/overlays
 #mod#moduleload back_@BACKEND@.la
 #monitormod#modulepath ../servers/slapd/back-monitor/
@@ -41,7 +41,7 @@ database        @BACKEND@
 suffix          "dc=example,dc=com"
 rootdn          "cn=Manager,dc=example,dc=com"
 rootpw          secret
-#~null~#directory      @TESTDIR@/srvMMR/db.1
+#~null~#directory      @TESTDIR@/srvMPR/db.1
 #indexdb#index         objectClass     eq
 #indexdb#index         cn,sn,uid       pres,eq,sub
 
@@ -132,7 +132,7 @@ logpurge            24:00 01+00:00
 database        @BACKEND@
 suffix          "cn=log"
 rootdn          "cn=Manager,dc=example,dc=com"
-#~null~#directory      @TESTDIR@/srvMMR/db.2
+#~null~#directory      @TESTDIR@/srvMPR/db.2
 #indexdb#index         objectClass     eq
 #indexdb#index         entryCSN,entryUUID,reqEnd,reqResult,reqStart eq
 #mdb#maxsize        @MAPSIZE@
index 3794d289e5509200144a3a25ce3b9edf6e512e41..b74827dfe5ea8f966162d4c2ffbde21d548c755f 100755 (executable)
@@ -38,7 +38,7 @@ fi
 echo "This test tracks a case where changes are not refreshed when an old db is reloaded"
 echo "See http://www.openldap.org/its/index.cgi/?findid=8800 for more information."
 
-MMR=4
+MPR=4
 XDIR=$TESTDIR/srv
 
 mkdir -p $TESTDIR
@@ -50,8 +50,8 @@ ITSDIR=$DATADIR/regressions/its$ITS
 
 
 n=1
-while [ $n -le $MMR ]; do
-       echo "Initializing server configuration for MMR$n..."
+while [ $n -le $MPR ]; do
+       echo "Initializing server configuration for MPR$n..."
        DBDIR=${XDIR}$n/db
        CFDIR=${XDIR}$n/slapd.d
 
@@ -64,7 +64,7 @@ done
 
 KILLPIDS=
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
        MYURI=`eval echo '$URI'$n`
        MYLOG=`eval echo '$LOG'$n`
        CFDIR=${XDIR}$n/slapd.d
@@ -128,14 +128,14 @@ echo -n "Sleeping 1 minute to ensure consumers catch up..."
 sleep 60
 echo "done"
 
-echo -n "Stopping MMR1 slapd..."
+echo -n "Stopping MPR1 slapd..."
 kill -HUP $MPID
 wait $MPID
 KILLPIDS=`echo "$KILLPIDS " | sed -e "s/ $MPID / /"`;
 sleep $SLEEP2
 echo "done"
 
-echo -n "Wiping primary and accesslog databases for MMR1..."
+echo -n "Wiping primary and accesslog databases for MPR1..."
 DBDIR="$TESTDIR/srv1/db"
 CFDIR="$TESTDIR/srv1/slapd.d"
 mv $DBDIR.1 $DBDIR.1.orig
index bbc8270b2c9e3b51a0ea7160b6a2d2d2d74e7900..ca995a129db1268dec0953ad7e7e16970b28eae5 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 96%
rename from tests/data/slapd-cache-master-proxyauthz.conf
rename to tests/data/slapd-cache-provider-proxyauthz.conf
index d5ed08becabdcc40de11abe66b6c76e812052143..ac34f86170d88ad4c5f8a27bb9b54d6ce5de52a1 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for proxy cache testing
+# provider slapd config -- for proxy cache testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 96%
rename from tests/data/slapd-cache-master.conf
rename to tests/data/slapd-cache-provider.conf
index 3b8d8323b4f7b26fa4d7e3b5087da445c5f830c3..7ba606da0de4566a332e21f9a9ab926e54d84d95 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for proxy cache testing
+# provider slapd config -- for proxy cache testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 6fb72f347a1b427ee2f7de49177a50f4676fb706..d72d613cacf2cd223e4e538ffa8409784f952e40 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 2310b90932edd985cb2a215ef7e142df8862b922..1def8e6816d539fcfdca8a338e92c89789b2a1c5 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index b5c7ac16d510c89167b9df7a175cb8e999c594f5..b28421fdde7f87b1da185cb9818b1d546b5d7331 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 95%
rename from tests/data/slapd-deltasync-slave.conf
rename to tests/data/slapd-deltasync-consumer.conf
index fd4c0165f02ef3803b96bb7618370af76a0c6e33..357e4acf0aa64e964f1f3873f14512f4e95017b8 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of Delta SYNC replication
+# consumer slapd config -- for testing of Delta SYNC replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -44,7 +44,7 @@ argsfile      @TESTDIR@/slapd.2.args
 
 database       @BACKEND@
 suffix         "dc=example,dc=com"
-rootdn         "cn=Replica,dc=example,dc=com"
+rootdn         "cn=consumer,dc=example,dc=com"
 rootpw         secret
 #null#bind             on
 #~null~#directory      @TESTDIR@/db.2.a
similarity index 95%
rename from tests/data/slapd-deltasync-master.conf
rename to tests/data/slapd-deltasync-provider.conf
index f189fbdf65bad877eb022ea12575a61a3a41488e..90cbbad201cc09a9f513f099d5896fc4db4bbb4a 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing of Delta SYNC replication
+# provider slapd config -- for testing of Delta SYNC replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -32,7 +32,7 @@ argsfile      @TESTDIR@/slapd.1.args
 #accesslogmod#moduleload accesslog.la
 
 #######################################################################
-# master database definitions
+# provider database definitions
 #######################################################################
 
 database       @BACKEND@
index 57f29c6803d4ecd8ab431182eb3ab24d112b0027..f9ce72981d815639738a9f3776834409042da39b 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 5d13f218fc8e2d052c7ff45910325be6ae99ba70..be597f6639fd66b8bdf60a99083df8d862aa75a1 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 7189d8d9130cc57e60da522be1323f0dbf60d1fa..b5fa399fe635fb2eeafae4f7cf054d5a8ea16707 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 6fa4bfcd4f4896f8b7e3dd7216109b0eb4e29edc..3b79351c3df5543c0ec63e6e9e2c926e0f4cdc1d 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index d288f5b6eb59ed9062062445d60098af4b2eeb58..132feba343ff92143c4de4e7e505649f14f52783 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index c3ee111b50ee2a10acc6620d046efdc3942d6320..5bc6dce5da6638fbb98a202e1c4288919bfe48fc 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index d59f50455ea13a8fbad190da50d6cf8661e03303..a2365d53bddaf7ba7c9d05133781671e1f805a3d 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 877136cf87f4c66d6638017daebb580939b9ca64..e57a6215ff7f974944377bbcf62cc3846fb4a8e6 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 96%
rename from tests/data/slapd-nis-master.conf
rename to tests/data/slapd-nis-provider.conf
index 703305e45bc3aaf335be1005b94bb5400b4f66a4..df550d470cd8eebb3f7b9bc3d619332301cd1f82 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing (needs updating)
+# provider slapd config -- for testing (needs updating)
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 6f88ba2f3678ef8c834eb2412e1baa5358776bf0..6ef31cf71a02212371eca66baa7378450671a23a 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 163d2a2fc79cab75ef5218d66997899cb4d9d71c..50dcd74e94c2d2579ce796bec232fa81c71fdf45 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 97%
rename from tests/data/slapd-master.conf
rename to tests/data/slapd-provider.conf
index 0e45f4631313d11568088bb98f9d7bbfbccc4d69..dfdbe0f82fc29511cc3cb647113c7d35718c7bb2 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 8ffb13d62033f37844b528db91b0ef4e32a881a6..dec7f667218c64725a02f803ee67f2dbb29065c5 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 96%
rename from tests/data/slapd-ref-slave.conf
rename to tests/data/slapd-ref-consumer.conf
index 3d30ca72b93702dbabb1c6b5170d6668ff090c47..9494f581bd5036c053cf22c611d172b9b727f701 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for default referral testing
+# consumer slapd config -- for default referral testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 6c0504203b3fdc71354acbd78d1536fd9fbf83e2..394f3790af2019f8d80029cf0f76c8ebee0fbb13 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 96%
rename from tests/data/slapd-repl-slave-remote.conf
rename to tests/data/slapd-repl-consumer-remote.conf
index 9b1957b0e4f59a6224927c3c5da874ebe5b0d388..b0d3233836be4cd0886830dc0849b863656adb93 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of replication
+# consumer slapd config -- for testing of replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -50,7 +50,7 @@ access to *
 database       @BACKEND@
 
 suffix         "dc=example,dc=com"
-rootdn         "cn=Replica,dc=example,dc=com"
+rootdn         "cn=consumer,dc=example,dc=com"
 rootpw         secret
 # HACK: use the RootDN of the monitor database as UpdateDN so ACLs apply
 # without the need to write the UpdateDN before starting replication
similarity index 98%
rename from tests/data/slapd-sql-syncrepl-master.conf
rename to tests/data/slapd-sql-syncrepl-provider.conf
index f226fb82e68025ab6731ddef6ee790668c6a1b84..8d2dcd92730c83638e87cb786356f6e4759e581d 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index 4e723f95ec1e82f1f1ba2e5557357781380578dd..2a16628a754b10d1657be2405ee3be02b2963061 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 96%
rename from tests/data/slapd-syncrepl-slave-persist-ldap.conf
rename to tests/data/slapd-syncrepl-consumer-persist-ldap.conf
index 47bb0b310c886edd7f614e14cb357d6b9a12aefc..528bbc4e080b9a0d1d2b0bc81e86461890004729 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of SYNC replication with intermediate proxy
+# consumer slapd config -- for testing of SYNC replication with intermediate proxy
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
similarity index 95%
rename from tests/data/slapd-syncrepl-slave-persist1.conf
rename to tests/data/slapd-syncrepl-consumer-persist1.conf
index a710d0f8634e8aa8e577406295c694455b519d85..e692a2c0dde3f54292ea0fadccf60be3fbc3f368 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of SYNC replication
+# consumer slapd config -- for testing of SYNC replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -44,7 +44,7 @@ argsfile      @TESTDIR@/slapd.4.args
 
 database       @BACKEND@
 suffix         "dc=example,dc=com"
-rootdn         "cn=Replica,dc=example,dc=com"
+rootdn         "cn=consumer,dc=example,dc=com"
 rootpw         secret
 #null#bind             on
 #~null~#directory      @TESTDIR@/db.4.a
similarity index 88%
rename from tests/data/slapd-syncrepl-slave-persist2.conf
rename to tests/data/slapd-syncrepl-consumer-persist2.conf
index 16be0020a08f7bfd464966b3d9bc55918d1cadef..c00fe2f9591ba7c2e035a50aff8ffb99ce7a044b 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of SYNC replication
+# consumer slapd config -- for testing of SYNC replication
 # $OpenLDAP$
 
 include                @SCHEMADIR@/core.schema
@@ -21,7 +21,7 @@ argsfile      @TESTDIR@/slapd.5.args
 
 database       @BACKEND@
 suffix         "dc=example,dc=com"
-rootdn         "cn=Replica,dc=example,dc=com"
+rootdn         "cn=consumer,dc=example,dc=com"
 rootpw         secret
 #~null~#directory      @TESTDIR@/db.5.a
 #indexdb#index         objectClass     eq
@@ -33,7 +33,7 @@ rootpw                secret
 # Don't change syncrepl spec yet
 syncrepl       rid=1
                provider=@URI4@
-               binddn="cn=Replica,dc=example,dc=com"
+               binddn="cn=consumer,dc=example,dc=com"
                bindmethod=simple
                credentials=secret
                searchbase="dc=example,dc=com"
similarity index 94%
rename from tests/data/slapd-syncrepl-slave-persist3.conf
rename to tests/data/slapd-syncrepl-consumer-persist3.conf
index 9dd4af413e503b72f98fbb81a74dc2f429f0f7e8..fc1ffdd6940979a2dd48233933d78364ab639a5a 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of SYNC replication
+# consumer slapd config -- for testing of SYNC replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -33,7 +33,7 @@ argsfile      @TESTDIR@/slapd.6.args
 
 database       @BACKEND@
 suffix         "dc=example,dc=com"
-rootdn         "cn=Replica,dc=example,dc=com"
+rootdn         "cn=consumer,dc=example,dc=com"
 rootpw         secret
 #~null~#directory      @TESTDIR@/db.6.a
 #indexdb#index         objectClass     eq
similarity index 94%
rename from tests/data/slapd-syncrepl-slave-refresh1.conf
rename to tests/data/slapd-syncrepl-consumer-refresh1.conf
index e7a1e8e6d3887e2d36635bfa2c3b541f2ab75721..d3ada3ff4066249e2a353550c0b350e7c24a1585 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of SYNC replication
+# consumer slapd config -- for testing of SYNC replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -35,7 +35,7 @@ argsfile      @TESTDIR@/slapd.2.args
 
 database       @BACKEND@
 suffix         "dc=example,dc=com"
-rootdn         "cn=Replica,dc=example,dc=com"
+rootdn         "cn=consumer,dc=example,dc=com"
 rootpw         secret
 #null#bind             on
 #~null~#directory      @TESTDIR@/db.2.a
similarity index 92%
rename from tests/data/slapd-syncrepl-slave-refresh2.conf
rename to tests/data/slapd-syncrepl-consumer-refresh2.conf
index 59d75d49fd5879effe29dcf83bf61d07584111f2..d524cfd55b10c3b0d524574128bec96337505362 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of SYNC replication
+# consumer slapd config -- for testing of SYNC replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -33,7 +33,7 @@ argsfile      @TESTDIR@/slapd.3.args
 
 database       @BACKEND@
 suffix         "dc=example,dc=com"
-rootdn         "cn=Replica,dc=example,dc=com"
+rootdn         "cn=consumer,dc=example,dc=com"
 rootpw         secret
 #~null~#directory      @TESTDIR@/db.3.a
 #indexdb#index         objectClass     eq
@@ -45,7 +45,7 @@ rootpw                secret
 # Don't change syncrepl spec yet
 syncrepl       rid=1
                provider=@URI2@
-               binddn="cn=Replica,dc=example,dc=com"
+               binddn="cn=consumer,dc=example,dc=com"
                bindmethod=simple
                credentials=secret
                searchbase="dc=example,dc=com"
index 86c902616f14d4a2b22fa687d6bacaa2344cca46..4dcf06b38f3adfac35775d964d42d77125ab7fda 100644 (file)
@@ -1,4 +1,4 @@
-# slave slapd config -- for testing of SYNC replication with intermediate proxy
+# consumer slapd config -- for testing of SYNC replication with intermediate proxy
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -32,7 +32,7 @@ argsfile      @TESTDIR@/slapd.1.args
 #ldapmod#moduleload back_ldap.la
 
 #######################################################################
-# master database definitions
+# provider database definitions
 #######################################################################
 
 database       @BACKEND@
similarity index 94%
rename from tests/data/slapd-syncrepl-master.conf
rename to tests/data/slapd-syncrepl-provider.conf
index c42d1eb0c88816d85fabacf3d023a24a4cb001c4..76f96bb947ffc72eda5b31843743934dad0cc2a4 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing of SYNC replication
+# provider slapd config -- for testing of SYNC replication
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
@@ -30,7 +30,7 @@ argsfile      @TESTDIR@/slapd.1.args
 #syncprovmod#moduleload syncprov.la
 
 #######################################################################
-# master database definitions
+# provider database definitions
 #######################################################################
 
 database       @BACKEND@
index a565c88ef36d5bde9701dba487bdd64aecb35bb8..ab6d39d076dc3a6ca99465cf28f818c423a393f1 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index b38e59495eb56af71b431e23a5897bd0cd06cc65..b85109c94e8dc13799e3e53cac58789b8573675b 100644 (file)
@@ -1,4 +1,4 @@
-# master slapd config -- for testing
+# provider slapd config -- for testing
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
index b34510b7eb3e3c51bc4e90a2c94d8ffadc0de080..4cfeaf488bcdbea64b92a7c101461d11d7d9cb1a 100755 (executable)
@@ -82,26 +82,26 @@ CLIENTDIR=../clients/tools
 CONF=$DATADIR/slapd.conf
 CONFTWO=$DATADIR/slapd2.conf
 CONF2DB=$DATADIR/slapd-2db.conf
-MCONF=$DATADIR/slapd-master.conf
+MCONF=$DATADIR/slapd-provider.conf
 COMPCONF=$DATADIR/slapd-component.conf
 PWCONF=$DATADIR/slapd-pw.conf
 WHOAMICONF=$DATADIR/slapd-whoami.conf
 ACLCONF=$DATADIR/slapd-acl.conf
 RCONF=$DATADIR/slapd-referrals.conf
-SRMASTERCONF=$DATADIR/slapd-syncrepl-master.conf
-DSRMASTERCONF=$DATADIR/slapd-deltasync-master.conf
-DSRSLAVECONF=$DATADIR/slapd-deltasync-slave.conf
+SRPROVIDERCONF=$DATADIR/slapd-syncrepl-provider.conf
+DSRPROVIDERCONF=$DATADIR/slapd-deltasync-provider.conf
+DSRCONSUMERCONF=$DATADIR/slapd-deltasync-consumer.conf
 PPOLICYCONF=$DATADIR/slapd-ppolicy.conf
 PROXYCACHECONF=$DATADIR/slapd-proxycache.conf
 PROXYAUTHZCONF=$DATADIR/slapd-proxyauthz.conf
-CACHEMASTERCONF=$DATADIR/slapd-cache-master.conf
-PROXYAUTHZMASTERCONF=$DATADIR/slapd-cache-master-proxyauthz.conf
-R1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh1.conf
-R2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh2.conf
-P1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist1.conf
-P2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist2.conf
-P3SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist3.conf
-REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
+CACHEPROVIDERCONF=$DATADIR/slapd-cache-provider.conf
+PROXYAUTHZPROVIDERCONF=$DATADIR/slapd-cache-provider-proxyauthz.conf
+R1SRCONSUMERCONF=$DATADIR/slapd-syncrepl-consumer-refresh1.conf
+R2SRCONSUMERCONF=$DATADIR/slapd-syncrepl-consumer-refresh2.conf
+P1SRCONSUMERCONF=$DATADIR/slapd-syncrepl-consumer-persist1.conf
+P2SRCONSUMERCONF=$DATADIR/slapd-syncrepl-consumer-persist2.conf
+P3SRCONSUMERCONF=$DATADIR/slapd-syncrepl-consumer-persist3.conf
+REFCONSUMERCONF=$DATADIR/slapd-ref-consumer.conf
 SCHEMACONF=$DATADIR/slapd-schema.conf
 GLUECONF=$DATADIR/slapd-glue.conf
 REFINTCONF=$DATADIR/slapd-refint.conf
@@ -120,7 +120,7 @@ CHAINCONF2=$DATADIR/slapd-chain2.conf
 GLUESYNCCONF1=$DATADIR/slapd-glue-syncrepl1.conf
 GLUESYNCCONF2=$DATADIR/slapd-glue-syncrepl2.conf
 SQLCONF=$DATADIR/slapd-sql.conf
-SQLSRMASTERCONF=$DATADIR/slapd-sql-syncrepl-master.conf
+SQLSRPROVIDERCONF=$DATADIR/slapd-sql-syncrepl-provider.conf
 TRANSLUCENTLOCALCONF=$DATADIR/slapd-translucent-local.conf
 TRANSLUCENTREMOTECONF=$DATADIR/slapd-translucent-remote.conf
 METACONF=$DATADIR/slapd-meta.conf
@@ -130,9 +130,9 @@ GLUELDAPCONF=$DATADIR/slapd-glue-ldap.conf
 ACICONF=$DATADIR/slapd-aci.conf
 VALSORTCONF=$DATADIR/slapd-valsort.conf
 DYNLISTCONF=$DATADIR/slapd-dynlist.conf
-RSLAVECONF=$DATADIR/slapd-repl-slave-remote.conf
-PLSRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist-ldap.conf
-PLSRMASTERCONF=$DATADIR/slapd-syncrepl-multiproxy.conf
+RCONSUMERCONF=$DATADIR/slapd-repl-consumer-remote.conf
+PLSRCONSUMERCONF=$DATADIR/slapd-syncrepl-consumer-persist-ldap.conf
+PLSRPROVIDERCONF=$DATADIR/slapd-syncrepl-multiproxy.conf
 DDSCONF=$DATADIR/slapd-dds.conf
 PASSWDCONF=$DATADIR/slapd-passwd.conf
 UNDOCONF=$DATADIR/slapd-config-undo.conf
@@ -257,7 +257,7 @@ MONITOR=""
 REFDN="c=US"
 BASEDN="dc=example,dc=com"
 MANAGERDN="cn=Manager,$BASEDN"
-UPDATEDN="cn=Replica,$BASEDN"
+UPDATEDN="cn=consumer,$BASEDN"
 PASSWD=secret
 BABSDN="cn=Barbara Jensen,ou=Information Technology DivisioN,ou=People,$BASEDN"
 BJORNSDN="cn=Bjorn Jensen,ou=Information Technology DivisioN,ou=People,$BASEDN"
@@ -313,29 +313,29 @@ SERVER5FLT=$TESTDIR/server5.flt
 SERVER6OUT=$TESTDIR/server6.out
 SERVER6FLT=$TESTDIR/server6.flt
 
-MASTEROUT=$SERVER1OUT
-MASTERFLT=$SERVER1FLT
-SLAVEOUT=$SERVER2OUT
-SLAVE2OUT=$SERVER3OUT
-SLAVEFLT=$SERVER2FLT
-SLAVE2FLT=$SERVER3FLT
+PROVIDEROUT=$SERVER1OUT
+PROVIDERFLT=$SERVER1FLT
+CONSUMEROUT=$SERVER2OUT
+CONSUMER2OUT=$SERVER3OUT
+CONSUMERFLT=$SERVER2FLT
+CONSUMER2FLT=$SERVER3FLT
 
 MTREADOUT=$TESTDIR/mtread.out
 
 # original outputs for cmp
 PROXYCACHEOUT=$DATADIR/proxycache.out
 REFERRALOUT=$DATADIR/referrals.out
-SEARCHOUTMASTER=$DATADIR/search.out.master
+SEARCHOUTPROVIDER=$DATADIR/search.out.provider
 SEARCHOUTX=$DATADIR/search.out.xsearch
 COMPSEARCHOUT=$DATADIR/compsearch.out
-MODIFYOUTMASTER=$DATADIR/modify.out.master
-ADDDELOUTMASTER=$DATADIR/adddel.out.master
-MODRDNOUTMASTER0=$DATADIR/modrdn.out.master.0
-MODRDNOUTMASTER1=$DATADIR/modrdn.out.master.1
-MODRDNOUTMASTER2=$DATADIR/modrdn.out.master.2
-MODRDNOUTMASTER3=$DATADIR/modrdn.out.master.3
-ACLOUTMASTER=$DATADIR/acl.out.master
-REPLOUTMASTER=$DATADIR/repl.out.master
+MODIFYOUTPROVIDER=$DATADIR/modify.out.provider
+ADDDELOUTPROVIDER=$DATADIR/adddel.out.provider
+MODRDNOUTPROVIDER0=$DATADIR/modrdn.out.provider.0
+MODRDNOUTPROVIDER1=$DATADIR/modrdn.out.provider.1
+MODRDNOUTPROVIDER2=$DATADIR/modrdn.out.provider.2
+MODRDNOUTPROVIDER3=$DATADIR/modrdn.out.provider.3
+ACLOUTPROVIDER=$DATADIR/acl.out.provider
+REPLOUTPROVIDER=$DATADIR/repl.out.provider
 MODSRCHFILTERS=$DATADIR/modify.search.filters
 CERTIFICATETLS=$DATADIR/certificate.tls
 CERTIFICATEOUT=$DATADIR/certificate.out
index ca50be69c5f597fcca01f54b363456d0fb682595..bc9be744a70537ba7b45df6592e29dbdffaaab5a 100755 (executable)
@@ -122,7 +122,7 @@ test "$KILLSERVERS" != no && kill -HUP $KILLPIDS
 
 echo "Assuming everything is fine."
 #echo "Comparing results"
-#$CMP $TESTOUT $SEARCHOUTMASTER
+#$CMP $TESTOUT $SEARCHOUTPROVIDER
 #if test $? != 0 ; then
 #      echo "Comparison failed"
 #      exit 1
index d1e008b9b08e57c563a8ce57c3b34daca919aab2..66b2adcf8bac53172b6a767532ca5d7b2ae6736a 100755 (executable)
@@ -34,7 +34,7 @@ fi
 mkdir -p $TESTDIR $DBDIR2A
 
 echo "Starting slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $SQLSRMASTERCONF > $CONF1
+. $CONFFILTER $BACKEND $MONITORDB < $SQLSRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -61,17 +61,17 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting slave slapd on TCP/IP port $PORT2..."
-. $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $CONF2
+echo "Starting consumer slapd on TCP/IP port $PORT2..."
+. $CONFFILTER $BACKEND $MONITORDB < $R1SRCONSUMERCONF > $CONF2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
-echo "Using ldapsearch to check that slave slapd is running..."
+echo "Using ldapsearch to check that consumer slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT2 \
                'objectclass=*' > /dev/null 2>&1
@@ -91,8 +91,8 @@ fi
 
 cat /dev/null > $SEARCHOUT
 
-echo "Using ldapsearch to retrieve all the entries from the master..."
-echo "# Using ldapsearch to retrieve all the entries from the master..." \
+echo "Using ldapsearch to retrieve all the entries from the provider..."
+echo "# Using ldapsearch to retrieve all the entries from the provider..." \
        >> $SEARCHOUT
 $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT1 -b "$BASEDN" \
        -D "$MANAGERDN" -w $PASSWD \
@@ -107,8 +107,8 @@ fi
 
 cat /dev/null > $SEARCHOUT2
 
-echo "Using ldapsearch to retrieve all the entries from the slave..."
-echo "# Using ldapsearch to retrieve all the entries from the slave..." \
+echo "Using ldapsearch to retrieve all the entries from the consumer..."
+echo "# Using ldapsearch to retrieve all the entries from the consumer..." \
        >> $SEARCHOUT2
 $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT2 -b "$BASEDN" \
        -D "$UPDATEDN" -w $PASSWD \
@@ -121,9 +121,9 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Filtering ldapsearch results from master..."
+echo "Filtering ldapsearch results from provider..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
-echo "Filtering ldapsearch results from slave..."
+echo "Filtering ldapsearch results from consumer..."
 $LDIFFILTER < $SEARCHOUT2 > $SEARCHFLT2
 echo "Comparing filter output..."
 $CMP $SEARCHFLT $SEARCHFLT2 > $CMPOUT
@@ -632,13 +632,13 @@ EOMODS
                exit 1
        fi
 
-       echo "Waiting 25 seconds for master to send changes..."
+       echo "Waiting 25 seconds for provider to send changes..."
        sleep 25
 
        cat /dev/null > $SEARCHOUT
 
-       echo "Using ldapsearch to retrieve all the entries from the master..."
-       echo "# Using ldapsearch to retrieve all the entries from the master..." \
+       echo "Using ldapsearch to retrieve all the entries from the provider..."
+       echo "# Using ldapsearch to retrieve all the entries from the provider..." \
                >> $SEARCHOUT
        $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT1 -b "$BASEDN" \
                -D "$MANAGERDN" -w $PASSWD \
@@ -653,8 +653,8 @@ EOMODS
 
        cat /dev/null > $SEARCHOUT2
 
-       echo "Using ldapsearch to retrieve all the entries from the slave..."
-       echo "# Using ldapsearch to retrieve all the entries from the slave..." \
+       echo "Using ldapsearch to retrieve all the entries from the consumer..."
+       echo "# Using ldapsearch to retrieve all the entries from the consumer..." \
                >> $SEARCHOUT2
        $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT2 -b "$BASEDN" \
                -D "$UPDATEDN" -w $PASSWD \
@@ -667,9 +667,9 @@ EOMODS
                exit $RC
        fi
 
-       echo "Filtering ldapsearch results from master..."
+       echo "Filtering ldapsearch results from provider..."
        $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
-       echo "Filtering ldapsearch results from slave..."
+       echo "Filtering ldapsearch results from consumer..."
        $LDIFFILTER < $SEARCHOUT2 > $SEARCHFLT2
        echo "Comparing filter output..."
        $CMP $SEARCHFLT $SEARCHFLT2 > $CMPOUT
index f939601364a7892c205ae382d62d7bb7359d3c29..e531b00ebd9c9c3ef1b32cdb83b3e4d27290efee 100755 (executable)
@@ -29,9 +29,9 @@ NIS_LDIF=$SRCDIR/data/nis_sample.ldif
 
 # Sample configuration file for your LDAP server
 if test "$BACKEND" = "bdb2" ; then
-       NIS_CONF=$DATADIR/slapd-bdb2-nis-master.conf
+       NIS_CONF=$DATADIR/slapd-bdb2-nis-provider.conf
 else
-       NIS_CONF=$DATADIR/slapd-nis-master.conf
+       NIS_CONF=$DATADIR/slapd-nis-provider.conf
 fi
 
 echo "Cleaning up in $DBDIR..."
@@ -47,7 +47,7 @@ if [ $RC != 0 ]; then
 fi
 
 echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $NIS_CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
+$SLAPD -f $NIS_CONF -p $PORT -d $LVL $TIMING > $PROVIDERLOG 2>&1 &
 PID=$!
 
 echo ">>>>> LDAP server with NIS schema is up! PID=$PID"
index 8b46804036061e80c6d788d7f5abc331cb9e093d..9454fd71042f83e1623d72b5c37c6fff948faa43 100755 (executable)
@@ -134,7 +134,7 @@ fi
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
-LDIF=$SEARCHOUTMASTER
+LDIF=$SEARCHOUTPROVIDER
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
index 94a50d294640d0c8596431a86fdc65c1696601e3..e2e2181230e601795273618cb6d79c33964d6b7d 100755 (executable)
@@ -213,7 +213,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-LDIF=$MODIFYOUTMASTER
+LDIF=$MODIFYOUTPROVIDER
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
index f229e2cc887daacf9abe134deff0821e47d194d3..694fc3b1ff4154e6d4fcd5d8e7429f2ed907b516 100755 (executable)
@@ -95,7 +95,7 @@ if test $RC != 0 ; then
 fi
 
 
-LDIF=$MODRDNOUTMASTER1
+LDIF=$MODRDNOUTPROVIDER1
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
@@ -122,7 +122,7 @@ if test $RC != 0 ; then
 fi
 
 
-LDIF=$MODRDNOUTMASTER2
+LDIF=$MODRDNOUTPROVIDER2
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
@@ -166,7 +166,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-LDIF=$MODRDNOUTMASTER0
+LDIF=$MODRDNOUTPROVIDER0
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
@@ -206,7 +206,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-LDIF=$MODRDNOUTMASTER3
+LDIF=$MODRDNOUTPROVIDER3
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
index 37b57b3ca2303d61aef3fc9825fb0b6c818cd213..8fdb6e8d18d5f86f9a52c0fda1901f8f40d1e6a0 100755 (executable)
@@ -646,7 +646,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-LDIF=$ACLOUTMASTER
+LDIF=$ACLOUTPROVIDER
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
index a127ab0e0318cdc8b9165719c9e024cdeda86e8f..7f0de605d1e3ca4239245e5786731a497133faee 100755 (executable)
@@ -31,28 +31,28 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting master slapd on TCP/IP port $PORT1..."
-$SLAPD -n master -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
+echo "Starting provider slapd on TCP/IP port $PORT1..."
+$SLAPD -n provider -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
     echo PID $PID
     read foo
 fi
 
-echo "Starting slave slapd on TCP/IP port $PORT2..."
-. $CONFFILTER $BACKEND $MONITORDB < $REFSLAVECONF > $CONF2
-$SLAPD -n slave -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+echo "Starting consumer slapd on TCP/IP port $PORT2..."
+. $CONFFILTER $BACKEND $MONITORDB < $REFCONSUMERCONF > $CONF2
+$SLAPD -n consumer -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
 
-KILLPIDS="$PID $SLAVEPID"
+KILLPIDS="$PID $CONSUMERPID"
 
 sleep 1
 
-echo "Testing for master slapd..."
+echo "Testing for provider slapd..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                'objectclass=*' > /dev/null 2>&1
@@ -60,7 +60,7 @@ for i in 0 1 2 3 4 5; do
        if test $RC = 0 ; then
                break
        fi
-       echo "Waiting 5 seconds for master slapd to start..."
+       echo "Waiting 5 seconds for provider slapd to start..."
        sleep 5
 done
 
@@ -70,7 +70,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Testing for slave slapd..."
+echo "Testing for consumer slapd..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT2 \
                'objectclass=*' > /dev/null 2>&1
@@ -78,7 +78,7 @@ for i in 0 1 2 3 4 5; do
        if test $RC = 0 ; then
                break
        fi
-       echo "Waiting 5 seconds for slave slapd to start..."
+       echo "Waiting 5 seconds for consumer slapd to start..."
        sleep 5
 done
 
@@ -160,7 +160,7 @@ fi
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
-LDIF=$SEARCHOUTMASTER
+LDIF=$SEARCHOUTPROVIDER
 
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
index f178f67df4256878cf26fdc531f8a459656f6741..0545761ab4e6d1606e9a34080299baeba27471e8 100755 (executable)
@@ -238,7 +238,7 @@ fi
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
-LDIF=$SEARCHOUTMASTER
+LDIF=$SEARCHOUTPROVIDER
 LDIF2=$SEARCHOUTX
 
 echo "Filtering ldapsearch results..."
index cedee57ae5b321a8d14a3dacb05d95fbcdf12390..67649860593e88b1c6d660320894c781512a6db1 100755 (executable)
@@ -177,7 +177,7 @@ fi
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
-LDIF=$SEARCHOUTMASTER
+LDIF=$SEARCHOUTPROVIDER
 echo "Filtering ldapsearch results..."
 $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
 echo "Filtering expected LDIF for comparison..."
index d9dfa4361c8c60dbf39260b7131bb475cca529a8..4416b3e5eb0adc34980f3587d23f9c2d66c2b58a 100755 (executable)
@@ -34,7 +34,7 @@ mkdir -p $TESTDIR $DBDIR1 $DBDIR2
 #
 
 echo "Starting provider slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $CONF1
+. $CONFFILTER $BACKEND $MONITORDB < $SRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -74,14 +74,14 @@ if test $RC != 0 ; then
 fi
 
 echo "Starting consumer slapd on TCP/IP port $PORT2..."
-. $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $CONF2
+. $CONFFILTER $BACKEND $MONITORDB < $R1SRCONSUMERCONF > $CONF2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
@@ -314,7 +314,7 @@ OPATTRS="entryUUID creatorsName createTimestamp modifiersName modifyTimestamp"
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -325,7 +325,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -337,12 +337,12 @@ fi
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
index b18dbab434e045ba2f68c9801058727bb465924a..b4227245330b590d940eebdc8c77c2c979f17df6 100755 (executable)
@@ -36,7 +36,7 @@ mkdir -p $TESTDIR $DBDIR1 $DBDIR4
 #
 
 echo "Starting provider slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $CONF1
+. $CONFFILTER $BACKEND $MONITORDB < $SRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -76,14 +76,14 @@ if test $RC != 0 ; then
 fi
 
 echo "Starting consumer slapd on TCP/IP port $PORT4..."
-. $CONFFILTER $BACKEND $MONITORDB < $P1SRSLAVECONF > $CONF4
+. $CONFFILTER $BACKEND $MONITORDB < $P1SRCONSUMERCONF > $CONF4
 $SLAPD -f $CONF4 -h $URI4 -d $LVL $TIMING > $LOG4 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
@@ -120,7 +120,7 @@ sleep $SLEEP1
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -131,7 +131,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
-       '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -141,12 +141,12 @@ if test $RC != 0 ; then
 fi
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
@@ -165,7 +165,7 @@ if test $WAIT != 0 ; then
     echo PID $PID
     read foo
 fi
-KILLPIDS="$PID $SLAVEPID"
+KILLPIDS="$PID $CONSUMERPID"
 
 sleep 1
 
@@ -329,7 +329,7 @@ sleep $SLEEP1
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -340,7 +340,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
-       '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -350,12 +350,12 @@ if test $RC != 0 ; then
 fi
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
@@ -364,8 +364,8 @@ if test $? != 0 ; then
 fi
 
 echo "Stopping consumer to test recovery..."
-kill -HUP $SLAVEPID
-wait $SLAVEPID
+kill -HUP $CONSUMERPID
+wait $CONSUMERPID
 
 echo "Modifying more entries on the provider..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
@@ -414,19 +414,19 @@ fi
 echo "Restarting consumer..."
 echo "RESTART" >> $LOG4
 $SLAPD -f $CONF4 -h $URI4 -d $LVL $TIMING >> $LOG4 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$PID $SLAVEPID"
+KILLPIDS="$PID $CONSUMERPID"
 
 echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -437,7 +437,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
-       '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -447,12 +447,12 @@ if test $RC != 0 ; then
 fi
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
@@ -505,7 +505,7 @@ RC=$?
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -516,7 +516,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
-       '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -526,12 +526,12 @@ if test $RC != 0 ; then
 fi
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
index 0e9fc67f0bea74a7457443abc1609c6847553a8c..0a0e131f4bd30ffff145292cc006a909246381af 100755 (executable)
@@ -25,15 +25,15 @@ mkdir -p $TESTDIR $DBDIR1 $DBDIR2 $DBDIR3 $DBDIR4 $DBDIR5 $DBDIR6
 
 #
 # Test replication:
-# - start master
-# - start slave
+# - start provider
+# - start consumer
 # - populate over ldap
 # - perform some modifies and deleted
 # - retrieve database over ldap and compare against expected results
 #
 
-echo "Starting master slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $CONF1
+echo "Starting provider slapd on TCP/IP port $PORT1..."
+. $CONFFILTER $BACKEND $MONITORDB < $SRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -44,7 +44,7 @@ KILLPIDS="$PID"
 
 sleep 1
 
-echo "Using ldapsearch to check that master slapd (pid=$PID) is running..."
+echo "Using ldapsearch to check that provider slapd (pid=$PID) is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                'objectclass=*' > /dev/null 2>&1
@@ -62,7 +62,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapadd to create the context prefix entry in the master..."
+echo "Using ldapadd to create the context prefix entry in the provider..."
 $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDEREDCP > /dev/null 2>&1
 RC=$?
@@ -72,19 +72,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting R1 slave slapd on TCP/IP port $PORT2..."
-. $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $CONF2
+echo "Starting R1 consumer slapd on TCP/IP port $PORT2..."
+. $CONFFILTER $BACKEND $MONITORDB < $R1SRCONSUMERCONF > $CONF2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVE R1 PID $SLAVEPID
+    echo CONSUMER R1 PID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that R1 slave slapd (pid=$SLAVEPID) is running..."
+echo "Using ldapsearch to check that R1 consumer slapd (pid=$CONSUMERPID) is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT2 \
                'objectclass=*' > /dev/null 2>&1
@@ -102,19 +102,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting R2 slave slapd on TCP/IP port $PORT3..."
-. $CONFFILTER $BACKEND $MONITORDB < $R2SRSLAVECONF > $CONF3
+echo "Starting R2 consumer slapd on TCP/IP port $PORT3..."
+. $CONFFILTER $BACKEND $MONITORDB < $R2SRCONSUMERCONF > $CONF3
 $SLAPD -f $CONF3 -h $URI3 -d $LVL $TIMING > $LOG3 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVE R2 PID $SLAVEPID
+    echo CONSUMER R2 PID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that R2 slave slapd (pid=$SLAVEPID) is running..."
+echo "Using ldapsearch to check that R2 consumer slapd (pid=$CONSUMERPID) is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT3 \
                'objectclass=*' > /dev/null 2>&1
@@ -122,7 +122,7 @@ for i in 0 1 2 3 4 5; do
        if test $RC = 0 ; then
                break
        fi
-       echo "Waiting 5 seconds for R2 slave slapd to start..."
+       echo "Waiting 5 seconds for R2 consumer slapd to start..."
        sleep 5
 done
 
@@ -132,19 +132,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting P1 slave slapd on TCP/IP port $PORT4..."
-. $CONFFILTER $BACKEND $MONITORDB < $P1SRSLAVECONF > $CONF4
+echo "Starting P1 consumer slapd on TCP/IP port $PORT4..."
+. $CONFFILTER $BACKEND $MONITORDB < $P1SRCONSUMERCONF > $CONF4
 $SLAPD -f $CONF4 -h $URI4 -d $LVL $TIMING > $LOG4 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVE P1 PID $SLAVEPID
+    echo CONSUMER P1 PID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that P1 slave slapd (pid=$SLAVEPID) is running..."
+echo "Using ldapsearch to check that P1 consumer slapd (pid=$CONSUMERPID) is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT4 \
                'objectclass=*' > /dev/null 2>&1
@@ -152,7 +152,7 @@ for i in 0 1 2 3 4 5; do
        if test $RC = 0 ; then
                break
        fi
-       echo "Waiting 5 seconds for P1 slave slapd to start..."
+       echo "Waiting 5 seconds for P1 consumer slapd to start..."
        sleep 5
 done
 
@@ -162,19 +162,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting P2 slave slapd on TCP/IP port $PORT5..."
-. $CONFFILTER $BACKEND $MONITORDB < $P2SRSLAVECONF > $CONF5
+echo "Starting P2 consumer slapd on TCP/IP port $PORT5..."
+. $CONFFILTER $BACKEND $MONITORDB < $P2SRCONSUMERCONF > $CONF5
 $SLAPD -f $CONF5 -h $URI5 -d $LVL $TIMING > $LOG5 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVE P2 PID $SLAVEPID
+    echo CONSUMER P2 PID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that P2 slave slapd (pid=$SLAVEPID) is running..."
+echo "Using ldapsearch to check that P2 consumer slapd (pid=$CONSUMERPID) is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT5 \
                'objectclass=*' > /dev/null 2>&1
@@ -182,7 +182,7 @@ for i in 0 1 2 3 4 5; do
        if test $RC = 0 ; then
                break
        fi
-       echo "Waiting 5 seconds for P2 slave slapd to start..."
+       echo "Waiting 5 seconds for P2 consumer slapd to start..."
        sleep 5
 done
 
@@ -192,19 +192,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting P3 slave slapd on TCP/IP port $PORT6..."
-. $CONFFILTER $BACKEND $MONITORDB < $P3SRSLAVECONF > $CONF6
+echo "Starting P3 consumer slapd on TCP/IP port $PORT6..."
+. $CONFFILTER $BACKEND $MONITORDB < $P3SRCONSUMERCONF > $CONF6
 $SLAPD -f $CONF6 -h $URI6 -d $LVL $TIMING > $LOG6 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVE P3 PID $SLAVEPID
+    echo CONSUMER P3 PID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that P3 slave slapd (pid=$SLAVEPID) is running..."
+echo "Using ldapsearch to check that P3 consumer slapd (pid=$CONSUMERPID) is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT6 \
                'objectclass=*' > /dev/null 2>&1
@@ -212,7 +212,7 @@ for i in 0 1 2 3 4 5; do
        if test $RC = 0 ; then
                break
        fi
-       echo "Waiting 5 seconds for P3 slave slapd to start..."
+       echo "Waiting 5 seconds for P3 consumer slapd to start..."
        sleep 5
 done
 
@@ -222,7 +222,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapadd to populate the master directory..."
+echo "Using ldapadd to populate the provider directory..."
 $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDEREDNOCP > /dev/null 2>&1
 RC=$?
@@ -235,7 +235,7 @@ fi
 echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..."
 sleep $SLEEP2
 
-echo "Using ldapmodify to modify master directory..."
+echo "Using ldapmodify to modify provider directory..."
 
 #
 # Do some modifications
@@ -359,124 +359,124 @@ fi
 echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..."
 sleep $SLEEP2 
 
-echo "Using ldapsearch to read all the entries from the master..."
+echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' '*' entryCSN > $MASTEROUT 2>&1
+       '(objectClass=*)' '*' entryCSN > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-echo "Using ldapsearch to read all the entries from the R1 slave..."
+echo "Using ldapsearch to read all the entries from the R1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
        '(objectClass=*)' '*' entryCSN > $SERVER2OUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at R1 slave ($RC)!"
+       echo "ldapsearch failed at R1 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-echo "Using ldapsearch to read all the entries from the R2 slave..."
+echo "Using ldapsearch to read all the entries from the R2 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT3 \
        '(objectClass=*)' '*' entryCSN > $SERVER3OUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at R2 slave ($RC)!"
+       echo "ldapsearch failed at R2 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-echo "Using ldapsearch to read all the entries from the P1 slave..."
+echo "Using ldapsearch to read all the entries from the P1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
        '(objectClass=*)' '*' entryCSN > $SERVER4OUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at P1 slave ($RC)!"
+       echo "ldapsearch failed at P1 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-echo "Using ldapsearch to read all the entries from the P2 slave..."
+echo "Using ldapsearch to read all the entries from the P2 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT5 \
        '(objectClass=*)' '*' entryCSN > $SERVER5OUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at P2 slave ($RC)!"
+       echo "ldapsearch failed at P2 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-echo "Using ldapsearch to read all the entries from the P3 slave..."
+echo "Using ldapsearch to read all the entries from the P3 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT6 \
        '(objectClass=*)' '*' entryCSN > $SERVER6OUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at P3 slave ($RC)!"
+       echo "ldapsearch failed at P3 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
-echo "Filtering master ldapsearch results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
-echo "Filtering R1 slave ldapsearch results..."
+echo "Filtering provider ldapsearch results..."
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
+echo "Filtering R1 consumer ldapsearch results..."
 $LDIFFILTER < $SERVER2OUT > $SERVER2FLT
-echo "Filtering R2 slave ldapsearch results..."
+echo "Filtering R2 consumer ldapsearch results..."
 $LDIFFILTER < $SERVER3OUT > $SERVER3FLT
-echo "Filtering P1 slave ldapsearch results..."
+echo "Filtering P1 consumer ldapsearch results..."
 $LDIFFILTER < $SERVER4OUT > $SERVER4FLT
-echo "Filtering P2 slave ldapsearch results..."
+echo "Filtering P2 consumer ldapsearch results..."
 $LDIFFILTER < $SERVER5OUT > $SERVER5FLT
-echo "Filtering P3 slave ldapsearch results..."
+echo "Filtering P3 consumer ldapsearch results..."
 $LDIFFILTER < $SERVER6OUT > $SERVER6FLT
 
-echo "Comparing retrieved entries from master and R1 slave..."
-$CMP $MASTERFLT $SERVER2FLT > $CMPOUT
+echo "Comparing retrieved entries from provider and R1 consumer..."
+$CMP $PROVIDERFLT $SERVER2FLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and R1 slave databases differ"
+       echo "test failed - provider and R1 consumer databases differ"
        exit 1
 fi
 
-echo "Comparing retrieved entries from master and R2 slave..."
-$CMP $MASTERFLT $SERVER3FLT > $CMPOUT
+echo "Comparing retrieved entries from provider and R2 consumer..."
+$CMP $PROVIDERFLT $SERVER3FLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and R2 slave databases differ"
+       echo "test failed - provider and R2 consumer databases differ"
        exit 1
 fi
 
-echo "Comparing retrieved entries from master and P1 slave..."
-$CMP $MASTERFLT $SERVER4FLT > $CMPOUT
+echo "Comparing retrieved entries from provider and P1 consumer..."
+$CMP $PROVIDERFLT $SERVER4FLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and P1 slave databases differ"
+       echo "test failed - provider and P1 consumer databases differ"
        exit 1
 fi
 
-echo "Comparing retrieved entries from master and P2 slave..."
-$CMP $MASTERFLT $SERVER5FLT > $CMPOUT
+echo "Comparing retrieved entries from provider and P2 consumer..."
+$CMP $PROVIDERFLT $SERVER5FLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and P2 slave databases differ"
+       echo "test failed - provider and P2 consumer databases differ"
        exit 1
 fi
 
-echo "Comparing retrieved entries from master and P3 slave..."
-$CMP $MASTERFLT $SERVER6FLT > $CMPOUT
+echo "Comparing retrieved entries from provider and P3 consumer..."
+$CMP $PROVIDERFLT $SERVER6FLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and P3 slave databases differ"
+       echo "test failed - provider and P3 consumer databases differ"
        exit 1
 fi
 
index 7c9b9b6c11e4c36bbec39491889911cd609892dd..144cbf299d096e3cbbc1e3a5beaed86531b2d0ee 100755 (executable)
@@ -43,16 +43,16 @@ fi
 mkdir -p $TESTDIR $DBDIR1 $DBDIR2
 
 # Test proxy caching:
-# - start master
+# - start provider
 # - start proxy cache
-# - populate master 
+# - populate provider
 # - perform first set of searches at the proxy
 # - verify cacheability
 # - perform second set of searches at the proxy 
 # - verify answerability
 
-echo "Starting master slapd on TCP/IP port $PORT1..."
-. $CONFFILTER < $CACHEMASTERCONF > $CONF1
+echo "Starting provider slapd on TCP/IP port $PORT1..."
+. $CONFFILTER < $CACHEPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -63,7 +63,7 @@ KILLPIDS="$PID"
 
 sleep 1
 
-echo "Using ldapsearch to check that master slapd is running..."
+echo "Using ldapsearch to check that provider slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                'objectclass=*' > /dev/null 2>&1
@@ -81,7 +81,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapadd to populate the master directory..."
+echo "Using ldapadd to populate the provider directory..."
 $LDAPADD -x -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDERED > /dev/null 2>&1
 RC=$?
index 3c7c629fd0d5a9266ce9e250517021eddd90b6f8..4e0b96548be909221671285d17c0153b6bf4340e 100755 (executable)
@@ -45,7 +45,7 @@ SPEC="mdb=a,bdb=a,hdb=a"
 #
 
 echo "Starting provider slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $DSRMASTERCONF > $CONF1
+. $CONFFILTER $BACKEND $MONITORDB < $DSRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -85,14 +85,14 @@ if test $RC != 0 ; then
 fi
 
 echo "Starting consumer slapd on TCP/IP port $PORT2..."
-. $CONFFILTER $BACKEND $MONITORDB < $DSRSLAVECONF > $CONF2
+. $CONFFILTER $BACKEND $MONITORDB < $DSRCONSUMERCONF > $CONF2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
@@ -137,7 +137,7 @@ if test $WAIT != 0 ; then
     echo PID $PID
     read foo
 fi
-KILLPIDS="$PID $SLAVEPID"
+KILLPIDS="$PID $CONSUMERPID"
 
 sleep 1
 
@@ -249,7 +249,7 @@ sleep $SLEEP1
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       'objectclass=*' \* + > $MASTEROUT 2>&1
+       'objectclass=*' \* + > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -260,7 +260,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       'objectclass=*' \* + > $SLAVEOUT 2>&1
+       'objectclass=*' \* + > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -270,12 +270,12 @@ if test $RC != 0 ; then
 fi
 
 echo "Filtering provider results..."
-$LDIFFILTER -b $BACKEND -s $SPEC < $MASTEROUT | grep -iv "^auditcontext:" > $MASTERFLT
+$LDIFFILTER -b $BACKEND -s $SPEC < $PROVIDEROUT | grep -iv "^auditcontext:" > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER -b $BACKEND -s $SPEC < $SLAVEOUT | grep -iv "^auditcontext:" > $SLAVEFLT
+$LDIFFILTER -b $BACKEND -s $SPEC < $CONSUMEROUT | grep -iv "^auditcontext:" > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
@@ -284,7 +284,7 @@ if test $? != 0 ; then
 fi
 
 echo "Stopping consumer to test recovery..."
-kill -HUP $SLAVEPID
+kill -HUP $CONSUMERPID
 sleep 10
 
 echo "Modifying more entries on the provider..."
@@ -322,12 +322,12 @@ EOMODS
 echo "Restarting consumer..."
 echo "RESTART" >> $LOG2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING >> $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$PID $SLAVEPID"
+KILLPIDS="$PID $CONSUMERPID"
 
 echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
@@ -357,7 +357,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       'objectclass=*' \* + > $MASTEROUT 2>&1
+       'objectclass=*' \* + > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -368,7 +368,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       'objectclass=*' \* + > $SLAVEOUT 2>&1
+       'objectclass=*' \* + > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -380,12 +380,12 @@ fi
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
 echo "Filtering provider results..."
-$LDIFFILTER -b $BACKEND -s $SPEC < $MASTEROUT | grep -iv "^auditcontext:" > $MASTERFLT
+$LDIFFILTER -b $BACKEND -s $SPEC < $PROVIDEROUT | grep -iv "^auditcontext:" > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER -b $BACKEND -s $SPEC < $SLAVEOUT | grep -iv "^auditcontext:" > $SLAVEFLT
+$LDIFFILTER -b $BACKEND -s $SPEC < $CONSUMEROUT | grep -iv "^auditcontext:" > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
index ec7175c6d0e8101dcb7d316a2b6e194d10e193d3..b932fc3dee3671d010b0e1c5cd26c9f09c2b7677 100755 (executable)
@@ -42,27 +42,27 @@ mkdir -p $TESTDIR $DBDIR1 $DBDIR2
 
 #
 # Test replication:
-# - start master
-# - start slave
+# - start provider
+# - start consumer
 # - populate over ldap
 # - perform some modifies and deleted
-# - attempt to modify the slave (referral or chain)
+# - attempt to modify the consumer (referral or chain)
 # - retrieve database over ldap and compare against expected results
 #
 
-echo "Starting master slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $CONF1
+echo "Starting provider slapd on TCP/IP port $PORT1..."
+. $CONFFILTER $BACKEND $MONITORDB < $SRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
-MASTERPID=$!
+PROVIDERPID=$!
 if test $WAIT != 0 ; then
-    echo MASTERPID $MASTERPID
+    echo PROVIDERPID $PROVIDERPID
     read foo
 fi
-KILLPIDS="$MASTERPID"
+KILLPIDS="$PROVIDERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that master slapd is running..."
+echo "Using ldapsearch to check that provider slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                '(objectClass=*)' > /dev/null 2>&1
@@ -80,7 +80,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapadd to create the context prefix entry in the master..."
+echo "Using ldapadd to create the context prefix entry in the provider..."
 $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDEREDCP > /dev/null 2>&1
 RC=$?
@@ -90,19 +90,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting slave slapd on TCP/IP port $PORT2..."
-. $CONFFILTER $BACKEND $MONITORDB < $RSLAVECONF > $CONF2
+echo "Starting consumer slapd on TCP/IP port $PORT2..."
+. $CONFFILTER $BACKEND $MONITORDB < $RCONSUMERCONF > $CONF2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$MASTERPID $SLAVEPID"
+KILLPIDS="$PROVIDERPID $CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that slave slapd is running..."
+echo "Using ldapsearch to check that consumer slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT2 \
                '(objectClass=*)' > /dev/null 2>&1
@@ -121,14 +121,14 @@ if test $RC != 0 ; then
 fi
 
 echo "Starting proxy slapd on TCP/IP port $PORT3..."
-. $CONFFILTER $BACKEND $MONITORDB < $PLSRSLAVECONF > $CONF3
+. $CONFFILTER $BACKEND $MONITORDB < $PLSRCONSUMERCONF > $CONF3
 $SLAPD -f $CONF3 -h $URI3 -d $LVL $TIMING > $LOG3 2>&1 &
 PROXYPID=$!
 if test $WAIT != 0 ; then
     echo PROXYPID $PROXYPID
     read foo
 fi
-KILLPIDS="$MASTERPID $SLAVEPID $PROXYPID"
+KILLPIDS="$PROVIDERPID $CONSUMERPID $PROXYPID"
 
 sleep 1
 
@@ -160,7 +160,7 @@ case $RC in
 esac
 
 CHECK=1
-echo "$CHECK > Using ldapadd to populate the master directory..."
+echo "$CHECK > Using ldapadd to populate the provider directory..."
 $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDEREDNOCP > /dev/null 2>&1
 RC=$?
@@ -170,30 +170,30 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-# get master contextCSN
+# get provider contextCSN
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       -s base '(objectClass=*)' contextCSN > "${MASTEROUT}.$CHECK" 2>&1
+       -s base '(objectClass=*)' contextCSN > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-# check slave contextCSN
+# check consumer contextCSN
 sleep 1
 for i in 1 2 3; do
        $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-               -s base '(objectClass=*)' contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
+               -s base '(objectClass=*)' contextCSN > "${CONSUMEROUT}.$CHECK" 2>&1
        RC=$?
 
        if test $RC != 0 ; then
-               echo "ldapsearch failed at slave ($RC)!"
+               echo "ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
 
-       $CMP ${MASTEROUT}.$CHECK ${SLAVEOUT}.$CHECK > $CMPOUT
+       $CMP ${PROVIDEROUT}.$CHECK ${CONSUMEROUT}.$CHECK > $CMPOUT
 
        if test $? = 0 ; then
                break
@@ -203,60 +203,60 @@ for i in 1 2 3; do
        sleep $SLEEP1
 done
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the slave..."
+#echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.$CHECK" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.$CHECK" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and slave databases differ"
+       echo "test failed - provider and consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
 CHECK=`expr $CHECK + 1`
 echo "$CHECK > Stopping the provider, sleeping $SLEEP2 seconds and restarting it..."
-kill -HUP "$MASTERPID"
-wait $MASTERPID
+kill -HUP "$PROVIDERPID"
+wait $PROVIDERPID
 sleep $SLEEP2
 
 echo "======================= RESTART =======================" >> $LOG1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
-MASTERPID=$!
+PROVIDERPID=$!
 if test $WAIT != 0 ; then
-    echo MASTERPID $MASTERPID
+    echo PROVIDERPID $PROVIDERPID
     read foo
 fi
-KILLPIDS="$MASTERPID $SLAVEPID $PROXYPID"
+KILLPIDS="$PROVIDERPID $CONSUMERPID $PROXYPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that master slapd is running..."
+echo "Using ldapsearch to check that provider slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                '(objectClass=*)' > /dev/null 2>&1
@@ -274,7 +274,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapmodify to modify master directory..."
+echo "Using ldapmodify to modify provider directory..."
 
 #
 # Do some modifications
@@ -361,70 +361,70 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-# get master contextCSN
+# get provider contextCSN
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       -s base '(objectClass=*)' contextCSN > "${MASTEROUT}.$CHECK" 2>&1
+       -s base '(objectClass=*)' contextCSN > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-# check slave contextCSN
+# check consumer contextCSN
 for i in 1 2 3; do
        echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
        sleep $SLEEP1
 
        $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-               -s base '(objectClass=*)' contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
+               -s base '(objectClass=*)' contextCSN > "${CONSUMEROUT}.$CHECK" 2>&1
        RC=$?
 
        if test $RC != 0 ; then
-               echo "ldapsearch failed at slave ($RC)!"
+               echo "ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
 
-       $CMP ${MASTEROUT}.$CHECK ${SLAVEOUT}.$CHECK > $CMPOUT
+       $CMP ${PROVIDEROUT}.$CHECK ${CONSUMEROUT}.$CHECK > $CMPOUT
 
        if test $? = 0 ; then
                break
        fi
 done
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the slave..."
+#echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.$CHECK" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.$CHECK" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and slave databases differ"
+       echo "test failed - provider and consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
@@ -434,7 +434,7 @@ echo "$CHECK > Stopping proxy to test recovery..."
 kill -HUP $PROXYPID
 wait $PROXYPID
 
-echo "Modifying more entries on the master..."
+echo "Modifying more entries on the provider..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
        $TESTOUT 2>&1 << EOMODS
 dn: cn=Bjorn Jensen, ou=Information Technology Division, ou=People, dc=example,dc=com
@@ -466,78 +466,78 @@ if test $WAIT != 0 ; then
     echo PROXYPID $PROXYPID
     read foo
 fi
-KILLPIDS="$MASTERPID $SLAVEPID $PROXYPID"
+KILLPIDS="$PROVIDERPID $CONSUMERPID $PROXYPID"
 
-# get master contextCSN
+# get provider contextCSN
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       -s base '(objectClass=*)' contextCSN > "${MASTEROUT}.$CHECK" 2>&1
+       -s base '(objectClass=*)' contextCSN > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-# check slave contextCSN
+# check consumer contextCSN
 for i in 1 2 3 4 5; do
        echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
        sleep $SLEEP1
 
        $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-               -s base '(objectClass=*)' contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
+               -s base '(objectClass=*)' contextCSN > "${CONSUMEROUT}.$CHECK" 2>&1
        RC=$?
 
        if test $RC != 0 ; then
-               echo "ldapsearch failed at slave ($RC)!"
+               echo "ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
 
-       $CMP ${MASTEROUT}.$CHECK ${SLAVEOUT}.$CHECK > $CMPOUT
+       $CMP ${PROVIDEROUT}.$CHECK ${CONSUMEROUT}.$CHECK > $CMPOUT
 
        if test $? = 0 ; then
                break
        fi
 done
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the slave..."
+#echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.$CHECK" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.$CHECK" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and slave databases differ"
+       echo "test failed - provider and consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
 CHECK=`expr $CHECK + 1`
-echo "$CHECK > Try updating the slave slapd..."
+echo "$CHECK > Try updating the consumer slapd..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT2 -w $PASSWD > \
        $TESTOUT 2>&1 << EOMODS
 dn: cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com
@@ -555,31 +555,31 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-# get master contextCSN
+# get provider contextCSN
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       -s base '(objectClass=*)' contextCSN > "${MASTEROUT}.$CHECK" 2>&1
+       -s base '(objectClass=*)' contextCSN > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-# check slave contextCSN
+# check consumer contextCSN
 sleep 1
 
 for i in 1 2 3; do
        $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-               -s base '(objectClass=*)' contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
+               -s base '(objectClass=*)' contextCSN > "${CONSUMEROUT}.$CHECK" 2>&1
        RC=$?
 
        if test $RC != 0 ; then
-               echo "ldapsearch failed at slave ($RC)!"
+               echo "ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
 
-       $CMP ${MASTEROUT}.$CHECK ${SLAVEOUT}.$CHECK > $CMPOUT
+       $CMP ${PROVIDEROUT}.$CHECK ${CONSUMEROUT}.$CHECK > $CMPOUT
 
        if test $? = 0 ; then
                break
@@ -589,48 +589,48 @@ for i in 1 2 3; do
        sleep $SLEEP1
 done
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the slave..."
+#echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-'(objectClass=*)' > "${SLAVEOUT}.$CHECK" 2>&1
+'(objectClass=*)' > "${CONSUMEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.$CHECK" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.$CHECK" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and slave databases differ"
+       echo "test failed - provider and consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
 CHECK=`expr $CHECK + 1`
 echo "$CHECK > Stopping consumer to test recovery..."
-kill -HUP $SLAVEPID
-wait $SLAVEPID
+kill -HUP $CONSUMERPID
+wait $CONSUMERPID
 
-echo "Modifying more entries on the master..."
+echo "Modifying more entries on the provider..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
        $TESTOUT 2>&1 << EOMODS
 dn: cn=Bjorn Jensen, ou=Information Technology Division, ou=People, dc=example,dc=com
@@ -646,85 +646,85 @@ sleep $SLEEP2
 echo "Restarting consumer..."
 echo "======================= RESTART =======================" >> $LOG2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING >> $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$MASTERPID $SLAVEPID $PROXYPID"
+KILLPIDS="$PROVIDERPID $CONSUMERPID $PROXYPID"
 
-# get master contextCSN
+# get provider contextCSN
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       -s base '(objectClass=*)' contextCSN > "${MASTEROUT}.$CHECK" 2>&1
+       -s base '(objectClass=*)' contextCSN > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-# check slave contextCSN
+# check consumer contextCSN
 
 for i in 1 2 3 4 5; do
        echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
        sleep $SLEEP1
 
        $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-               -s base '(objectClass=*)' contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
+               -s base '(objectClass=*)' contextCSN > "${CONSUMEROUT}.$CHECK" 2>&1
        RC=$?
 
        if test $RC != 0 ; then
-               echo "ldapsearch failed at slave ($RC)!"
+               echo "ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
 
-       $CMP ${MASTEROUT}.$CHECK ${SLAVEOUT}.$CHECK > $CMPOUT
+       $CMP ${PROVIDEROUT}.$CHECK ${CONSUMEROUT}.$CHECK > $CMPOUT
 
        if test $? = 0 ; then
                break
        fi
 done
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the slave..."
+#echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.$CHECK" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.$CHECK" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        # FIXME: keep the original workaround in place, in case we needed again
        if test 1 = 1 ; then
-               echo "test failed - master and slave databases differ"
+               echo "test failed - provider and consumer databases differ"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit 1
        fi
 
-       echo "  test failed - master and slave databases differ (ignored by now)"
+       echo "  test failed - provider and consumer databases differ (ignored by now)"
        echo "  Stopping proxy to see if it auto-recovers..."
        kill -HUP $PROXYPID
        wait $PROXYPID
@@ -737,30 +737,30 @@ if test $? != 0 ; then
                echo PROXYPID $PROXYPID
                read foo
        fi
-       KILLPIDS="$MASTERPID $SLAVEPID $PROXYPID"
+       KILLPIDS="$PROVIDERPID $CONSUMERPID $PROXYPID"
 
        echo "  Waiting $SLEEP2 seconds for syncrepl to receive changes..."
        sleep $SLEEP2
 
-       #echo "Using ldapsearch to read all the entries from the slave..."
+       #echo "Using ldapsearch to read all the entries from the consumer..."
        $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-               '(objectClass=*)' > "${SLAVEOUT}.5.1" 2>&1
+               '(objectClass=*)' > "${CONSUMEROUT}.5.1" 2>&1
        RC=$?
 
        if test $RC != 0 ; then
-               echo "  ldapsearch failed at slave ($RC)!"
+               echo "  ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
 
-       #echo "Filtering slave results..."
-       $LDIFFILTER < "${SLAVEOUT}.5.1" > $SLAVEFLT
+       #echo "Filtering consumer results..."
+       $LDIFFILTER < "${CONSUMEROUT}.5.1" > $CONSUMERFLT
 
-       echo "  ${CHECK}.1 < Comparing retrieved entries from master and slave..."
-       $CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+       echo "  ${CHECK}.1 < Comparing retrieved entries from provider and consumer..."
+       $CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
        if test $? != 0 ; then
-               echo "  test failed - master and slave databases differ"
+               echo "  test failed - provider and consumer databases differ"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit 1
        fi
@@ -793,30 +793,30 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-# get master contextCSN
+# get provider contextCSN
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       -s base '(objectClass=*)' contextCSN > "${MASTEROUT}.$CHECK" 2>&1
+       -s base '(objectClass=*)' contextCSN > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-# check slave contextCSN
+# check consumer contextCSN
 sleep 1
 for i in 1 2 3; do
        $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-               -s base '(objectClass=*)' contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
+               -s base '(objectClass=*)' contextCSN > "${CONSUMEROUT}.$CHECK" 2>&1
        RC=$?
 
        if test $RC != 0 ; then
-               echo "ldapsearch failed at slave ($RC)!"
+               echo "ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
 
-       $CMP ${MASTEROUT}.$CHECK ${SLAVEOUT}.$CHECK > $CMPOUT
+       $CMP ${PROVIDEROUT}.$CHECK ${CONSUMEROUT}.$CHECK > $CMPOUT
 
        if test $? = 0 ; then
                break
@@ -826,39 +826,39 @@ for i in 1 2 3; do
        sleep $SLEEP1
 done
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the slave..."
+#echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.$CHECK" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.$CHECK" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.$CHECK" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.$CHECK" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and slave databases differ (ignored by now)"
-       #echo "test failed - master and slave databases differ"
+       echo "test failed - provider and consumer databases differ (ignored by now)"
+       #echo "test failed - provider and consumer databases differ"
        #test $KILLSERVERS != no && kill -HUP $KILLPIDS
        #exit 1
 fi
index 83b2efd8fd07b776e20a43f872cb4967b1757db0..2f83a5ce65b77d9c71be5ab679a3cbea87251ec4 100755 (executable)
@@ -40,27 +40,27 @@ mkdir -p $TESTDIR $DBDIR1 $DBDIR2 $DBDIR3
 
 #
 # Test replication:
-# - start master
-# - start slave
+# - start provider
+# - start consumer
 # - populate over ldap
 # - perform some modifies and deleted
-# - attempt to modify the slave (referral or chain)
+# - attempt to modify the consumer (referral or chain)
 # - retrieve database over ldap and compare against expected results
 #
 
-echo "Starting master slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $PLSRMASTERCONF > $CONF1
+echo "Starting provider slapd on TCP/IP port $PORT1..."
+. $CONFFILTER $BACKEND $MONITORDB < $PLSRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
-MASTERPID=$!
+PROVIDERPID=$!
 if test $WAIT != 0 ; then
-    echo MASTERPID $MASTERPID
+    echo PROVIDERPID $PROVIDERPID
     read foo
 fi
-KILLPIDS="$MASTERPID"
+KILLPIDS="$PROVIDERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that master slapd is running..."
+echo "Using ldapsearch to check that provider slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                '(objectClass=*)' > /dev/null 2>&1
@@ -78,7 +78,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapadd to create the context prefix entry in the master..."
+echo "Using ldapadd to create the context prefix entry in the provider..."
 $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDEREDCP > /dev/null 2>&1
 RC=$?
@@ -88,19 +88,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting P1 slave slapd on TCP/IP port $PORT2..."
-. $CONFFILTER $BACKEND $MONITORDB < $RSLAVECONF > $CONF2
+echo "Starting P1 consumer slapd on TCP/IP port $PORT2..."
+. $CONFFILTER $BACKEND $MONITORDB < $RCONSUMERCONF > $CONF2
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-P1SLAVEPID=$!
+P1CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo P1SLAVEPID $P1SLAVEPID
+    echo P1CONSUMERPID $P1CONSUMERPID
     read foo
 fi
-KILLPIDS="$MASTERPID $P1SLAVEPID"
+KILLPIDS="$PROVIDERPID $P1CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that P1 slave slapd is running..."
+echo "Using ldapsearch to check that P1 consumer slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT2 \
                '(objectClass=*)' > /dev/null 2>&1
@@ -118,19 +118,19 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Starting R1 slave slapd on TCP/IP port $PORT3..."
-. $CONFFILTER $BACKEND $MONITORDB < $RSLAVECONF | sed -e 's;\.2\.\([^/]*\)$;.3.\1;' > $CONF3
+echo "Starting R1 consumer slapd on TCP/IP port $PORT3..."
+. $CONFFILTER $BACKEND $MONITORDB < $RCONSUMERCONF | sed -e 's;\.2\.\([^/]*\)$;.3.\1;' > $CONF3
 $SLAPD -f $CONF3 -h $URI3 -d $LVL $TIMING > $LOG3 2>&1 &
-R1SLAVEPID=$!
+R1CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo R1SLAVEPID $R1SLAVEPID
+    echo R1CONSUMERPID $R1CONSUMERPID
     read foo
 fi
-KILLPIDS="$MASTERPID $P1SLAVEPID $R1SLAVEPID"
+KILLPIDS="$PROVIDERPID $P1CONSUMERPID $R1CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that R1 slave slapd is running..."
+echo "Using ldapsearch to check that R1 consumer slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT3 \
                '(objectClass=*)' > /dev/null 2>&1
@@ -149,7 +149,7 @@ if test $RC != 0 ; then
 fi
 
 CHECK=1
-echo "$CHECK > Using ldapadd to populate the master directory..."
+echo "$CHECK > Using ldapadd to populate the provider directory..."
 $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDEREDNOCP > /dev/null 2>&1
 RC=$?
@@ -162,83 +162,83 @@ fi
 echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.1" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.1" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the P1 slave..."
+#echo "Using ldapsearch to read all the entries from the P1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.1" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.1" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at P1 slave ($RC)!"
+       echo "ldapsearch failed at P1 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.1" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.1" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.1" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and P1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and P1 slave databases differ"
+       echo "test failed - provider and P1 consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
-#echo "Using ldapsearch to read all the entries from the R1 slave..."
+#echo "Using ldapsearch to read all the entries from the R1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT3 \
-       '(objectClass=*)' > "${SLAVEOUT}.1" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.1" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at R1 slave ($RC)!"
+       echo "ldapsearch failed at R1 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.1" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and R1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and R1 slave databases differ"
+       echo "test failed - provider and R1 consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
 CHECK=`expr $CHECK + 1`
 echo "$CHECK > Stopping the provider, sleeping $SLEEP2 seconds and restarting it..."
-kill -HUP "$MASTERPID"
-wait $MASTERPID
+kill -HUP "$PROVIDERPID"
+wait $PROVIDERPID
 sleep $SLEEP2
 
 echo "======================= RESTART =======================" >> $LOG1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
-MASTERPID=$!
+PROVIDERPID=$!
 if test $WAIT != 0 ; then
-    echo MASTERPID $MASTERPID
+    echo PROVIDERPID $PROVIDERPID
     read foo
 fi
-KILLPIDS="$MASTERPID $P1SLAVEPID $R1SLAVEPID"
+KILLPIDS="$PROVIDERPID $P1CONSUMERPID $R1CONSUMERPID"
 
 sleep 1
 
-echo "Using ldapsearch to check that master slapd is running..."
+echo "Using ldapsearch to check that provider slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                '(objectClass=*)' > /dev/null 2>&1
@@ -256,7 +256,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapmodify to modify master directory..."
+echo "Using ldapmodify to modify provider directory..."
 
 #
 # Do some modifications
@@ -346,78 +346,78 @@ fi
 echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.2" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.2" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the P1 slave..."
+#echo "Using ldapsearch to read all the entries from the P1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.2" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.2" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at P1 slave ($RC)!"
+       echo "ldapsearch failed at P1 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.2" > $MASTERFLT
-#echo "Filtering P1 slave results..."
-$LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.2" > $PROVIDERFLT
+#echo "Filtering P1 consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.2" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and P1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and P1 slave databases differ"
+       echo "test failed - provider and P1 consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
-#echo "Using ldapsearch to read all the entries from the R1 slave..."
+#echo "Using ldapsearch to read all the entries from the R1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT3 \
-       '(objectClass=*)' > "${SLAVEOUT}.2" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.2" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at R1 slave ($RC)!"
+       echo "ldapsearch failed at R1 consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.2" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and R1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and R1 slave databases differ"
+       echo "test failed - provider and R1 consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
 CHECK=`expr $CHECK + 1`
-echo "$CHECK > Stopping slaves to test recovery..."
-kill -HUP $P1SLAVEPID $R1SLAVEPID
-wait $P1SLAVEPID
-wait $R1SLAVEPID
+echo "$CHECK > Stopping consumer to test recovery..."
+kill -HUP $P1CONSUMERPID $R1CONSUMERPID
+wait $P1CONSUMERPID
+wait $R1CONSUMERPID
 
-echo "Modifying more entries on the master..."
+echo "Modifying more entries on the provider..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
        $TESTOUT 2>&1 << EOMODS
 dn: cn=Bjorn Jensen, ou=Information Technology Division, ou=People, dc=example,dc=com
 changetype: modify
 add: description
-description: r1 slave is down...
+description: r1 consumer is down...
 
 dn: cn=James T. Kirk, ou=Retired, ou=People, dc=example,dc=com
 changetype: add
@@ -435,89 +435,89 @@ cn: Tiberius J. Hooker
 
 EOMODS
 
-echo "Restarting P1 slave..."
+echo "Restarting P1 consumer..."
 echo "======================= RESTART =======================" >> $LOG3
 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING >> $LOG2 2>&1 &
-P1SLAVEPID=$!
+P1CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo P1SLAVEPID $P1SLAVEPID
+    echo P1CONSUMERPID $P1CONSUMERPID
     read foo
 fi
 
-echo "Restarting R1 slave..."
+echo "Restarting R1 consumer..."
 echo "======================= RESTART =======================" >> $LOG3
 $SLAPD -f $CONF3 -h $URI3 -d $LVL $TIMING >> $LOG3 2>&1 &
-R1SLAVEPID=$!
+R1CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo R1SLAVEPID $R1SLAVEPID
+    echo R1CONSUMERPID $R1CONSUMERPID
     read foo
 fi
-KILLPIDS="$MASTERPID $P1SLAVEPID $R1SLAVEPID"
+KILLPIDS="$PROVIDERPID $P1CONSUMERPID $R1CONSUMERPID"
 
 echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..."
 sleep $SLEEP2
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.3" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.3" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the P1 slave..."
+#echo "Using ldapsearch to read all the entries from the P1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-       '(objectClass=*)' > "${SLAVEOUT}.3" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.3" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.3" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.3" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.3" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and P1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and slave databases differ"
+       echo "test failed - provider and consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
-#echo "Using ldapsearch to read all the entries from the R1 slave..."
+#echo "Using ldapsearch to read all the entries from the R1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT3 \
-       '(objectClass=*)' > "${SLAVEOUT}.3" 2>&1
+       '(objectClass=*)' > "${CONSUMEROUT}.3" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.3" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and R1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and slave databases differ"
+       echo "test failed - provider and consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
 CHECK=`expr $CHECK + 1`
-echo "$CHECK > Try updating the P1 slave slapd..."
+echo "$CHECK > Try updating the P1 consumer slapd..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT2 -w $PASSWD > \
        $TESTOUT 2>&1 << EOMODS
 dn: cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com
@@ -538,61 +538,61 @@ fi
 echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
-#echo "Using ldapsearch to read all the entries from the master..."
+#echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectClass=*)' > "${MASTEROUT}.4" 2>&1
+       '(objectClass=*)' > "${PROVIDEROUT}.4" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at master ($RC)!"
+       echo "ldapsearch failed at provider ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Using ldapsearch to read all the entries from the P1 slave..."
+#echo "Using ldapsearch to read all the entries from the P1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
-'(objectClass=*)' > "${SLAVEOUT}.4" 2>&1
+'(objectClass=*)' > "${CONSUMEROUT}.4" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering master results..."
-$LDIFFILTER < "${MASTEROUT}.4" > $MASTERFLT
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT
+#echo "Filtering provider results..."
+$LDIFFILTER < "${PROVIDEROUT}.4" > $PROVIDERFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.4" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and P1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and P1 slave databases differ"
+       echo "test failed - provider and P1 consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
 
-#echo "Using ldapsearch to read all the entries from the R1 slave..."
+#echo "Using ldapsearch to read all the entries from the R1 consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT3 \
-'(objectClass=*)' > "${SLAVEOUT}.4" 2>&1
+'(objectClass=*)' > "${CONSUMEROUT}.4" 2>&1
 RC=$?
 
 if test $RC != 0 ; then
-       echo "ldapsearch failed at slave ($RC)!"
+       echo "ldapsearch failed at consumer ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
 
-#echo "Filtering slave results..."
-$LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT
+#echo "Filtering consumer results..."
+$LDIFFILTER < "${CONSUMEROUT}.4" > $CONSUMERFLT
 
-echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+echo "$CHECK < Comparing retrieved entries from provider and R1 consumer..."
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
-       echo "test failed - master and R1 slave databases differ"
+       echo "test failed - provider and R1 consumer databases differ"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
 fi
index b88f9987bde1a350cd4ee1117249a14a863d939d..440f2c3e13acdea54fe98cc6288639e5251894d4 100755 (executable)
@@ -136,12 +136,12 @@ echo "Starting consumer slapd on TCP/IP port $PORT2..."
 $SLAPADD -F $CFCON -n 0 -l $CONFLDIF
 cd $CONDIR
 $SLAPD -F ./slapd.d -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 cd $TESTWD
 
 sleep 1
@@ -328,7 +328,7 @@ sleep $SLEEP1
 
 echo "Using ldapsearch to read config from the provider..."
 $LDAPSEARCH -b cn=config -D cn=config -H $URI1 -y $CONFIGPWF  \
-       'objectclass=*' > $MASTEROUT 2>&1
+       'objectclass=*' > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -339,7 +339,7 @@ fi
 
 echo "Using ldapsearch to read config from the consumer..."
 $LDAPSEARCH -b cn=config -D cn=config -H $URI2 -y $CONFIGPWF \
-       'objectclass=*' > $SLAVEOUT 2>&1
+       'objectclass=*' > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -349,12 +349,12 @@ if test $RC != 0 ; then
 fi
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved configs from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer configs differ"
@@ -364,7 +364,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -D "$MANAGERDN" -H $URI1 -w $PASSWD  \
-       'objectclass=*' > $MASTEROUT 2>&1
+       'objectclass=*' > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -375,7 +375,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -D "$MANAGERDN" -H $URI2 -w $PASSWD  \
-       'objectclass=*' > $SLAVEOUT 2>&1
+       'objectclass=*' > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -387,12 +387,12 @@ fi
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
similarity index 94%
rename from tests/scripts/test050-syncrepl-multimaster
rename to tests/scripts/test050-syncrepl-multiprovider
index b88611a1388efc27a4ba8a73fb9d24f3f776902b..aed53723ef19628b58f492845d3bb81f345f5408 100755 (executable)
@@ -21,10 +21,10 @@ if test $SYNCPROV = syncprovno; then
        exit 0
 fi 
 
-MMR=${MMR-4}
+MPR=${MPR-4}
 
-if [ $MMR -gt 9 ]; then
-MMR=9
+if [ $MPR -gt 9 ]; then
+MPR=9
 fi
 
 XDIR=$TESTDIR/srv
@@ -61,7 +61,7 @@ esac
 
 echo "Initializing server configurations..."
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 
 DBDIR=${XDIR}$n/db
 CFDIR=${XDIR}$n/slapd.d
@@ -139,7 +139,7 @@ echo "dn: cn=config" >> $TMP
 echo "changetype: modify" >> $TMP
 echo "replace: olcServerID" >> $TMP
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 echo "olcServerID: $n $URI" >> $TMP
@@ -160,7 +160,7 @@ add: olcSyncRepl
 EOF
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 echo "olcSyncRepl: rid=00$n provider=$URI binddn=\"cn=config\" bindmethod=simple" >> $TMP
@@ -180,19 +180,19 @@ if test $RC != 0 ; then
 fi
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 LOG=$TESTDIR/slapd.$n.log
 echo "Starting server $n on TCP/IP port $PORT..."
 cd ${XDIR}$n
 $SLAPD -F ./slapd.d -h $URI -d $LVL $TIMING > $LOG 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 cd $TESTWD
 
 sleep 1
@@ -222,7 +222,7 @@ changetype: modify
 add: olcSyncRepl
 EOF
 j=1
-while [ $j -le $MMR ]; do
+while [ $j -le $MPR ]; do
 P2=`expr $BASEPORT + $j`
 U2="ldap://${LOCALHOST}:$P2/"
 echo "olcSyncRepl: rid=00$j provider=$U2 binddn=\"cn=config\" bindmethod=simple" >> $TMP
@@ -285,7 +285,7 @@ olcRootPW: $PASSWD
 EOF
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -341,7 +341,7 @@ echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..."
 sleep $SLEEP2
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -362,9 +362,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved configs from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n configs differ"
@@ -375,7 +375,7 @@ n=`expr $n + 1`
 done
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -394,9 +394,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
@@ -420,7 +420,7 @@ echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -439,9 +439,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
@@ -470,7 +470,7 @@ echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -489,9 +489,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
@@ -533,7 +533,7 @@ echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -552,9 +552,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
@@ -597,7 +597,7 @@ echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -616,9 +616,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
@@ -672,7 +672,7 @@ if test $RC != 0 ; then
 fi
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 LOG=$TESTDIR/slapd.$n.log
@@ -691,7 +691,7 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 echo "Using ldapsearch to check that server $n is running..."
@@ -749,7 +749,7 @@ echo "Waiting $SLEEP1 seconds for servers to resync..."
 sleep $SLEEP1
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -768,9 +768,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
index 681df4b8a7c296eded0466736f6781b9e422bd86..6188cab735d31e20530bedd53b9d52fb78546ccf 100755 (executable)
@@ -34,7 +34,7 @@ mkdir -p $TESTDIR $DBDIR1 $DBDIR4
 #
 
 echo "Starting provider slapd on TCP/IP port $PORT1..."
-. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $CONF1
+. $CONFFILTER $BACKEND $MONITORDB < $SRPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -74,14 +74,14 @@ if test $RC != 0 ; then
 fi
 
 echo "Starting consumer slapd on TCP/IP port $PORT4..."
-. $CONFFILTER $BACKEND $MONITORDB < $P1SRSLAVECONF > $CONF4
+. $CONFFILTER $BACKEND $MONITORDB < $P1SRCONSUMERCONF > $CONF4
 $SLAPD -f $CONF4 -h $URI4 -d $LVL $TIMING > $LOG4 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
@@ -134,7 +134,7 @@ if test $WAIT != 0 ; then
     echo PID $PID
     read foo
 fi
-KILLPIDS="$PID $SLAVEPID"
+KILLPIDS="$PID $CONSUMERPID"
 
 sleep 1
 
@@ -260,8 +260,8 @@ echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 echo "Stopping consumer to test recovery..."
-kill -HUP $SLAVEPID
-wait $SLAVEPID
+kill -HUP $CONSUMERPID
+wait $CONSUMERPID
 
 echo "Modifying more entries on the provider..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD >> \
@@ -286,12 +286,12 @@ EOMODS
 echo "Restarting consumer..."
 echo "RESTART" >> $LOG4
 $SLAPD -f $CONF4 -h $URI4 -d $LVL $TIMING >> $LOG4 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$PID $SLAVEPID"
+KILLPIDS="$PID $CONSUMERPID"
 
 echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
@@ -335,7 +335,7 @@ OPATTRS="entryUUID creatorsName createTimestamp modifiersName modifyTimestamp"
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -346,7 +346,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
-       '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+       '(objectclass=*)' '*' $OPATTRS > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -358,12 +358,12 @@ fi
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
similarity index 90%
rename from tests/scripts/test059-slave-config
rename to tests/scripts/test059-consumer-config
index 2c0f168ece37327ecbf15812e1749c0054d7232f..f2d1255f24f10da2629514fe5d71eb29e4d32c69 100755 (executable)
@@ -45,7 +45,7 @@ case "$SYNCMODE" in
 esac
 
 #
-# Test replication of dynamic config with alternate slave config:
+# Test replication of dynamic config with alternate consumer config:
 # - start provider
 # - start consumer
 # - configure over ldap
@@ -116,13 +116,13 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-# Slaves will not replicate the master's actual cn=config.
+# Consumers will not replicate the provider's actual cn=config.
 # Instead, they will use an alternate DB so that they may be
-# configured differently from the master. This alternate DB
+# configured differently from the provider. This alternate DB
 # will also be a consumer for the real cn=schema,cn=config tree.
 # It has MirrorMode enabled so that it can be written directly
-# while being a slave of the main schema.
-echo "Configuring slave config DB on provider..."
+# while being a consumer of the main schema.
+echo "Configuring consumer config DB on provider..."
 $LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >> $TESTOUT 2>&1
 dn: cn=config
 changetype: modify
@@ -135,8 +135,8 @@ objectClass: olcDatabaseConfig
 objectClass: olcLdifConfig
 olcDatabase: {1}ldif
 olcDbDirectory: $DBDIR1A
-olcSuffix: cn=config,cn=slave
-olcRootDN: cn=config,cn=slave
+olcSuffix: cn=config,cn=consumer
+olcRootDN: cn=config,cn=consumer
 olcRootPW: repsecret
 olcAccess: to * by dn.base="cn=config" write
 
@@ -146,23 +146,23 @@ objectClass: olcOverlayConfig
 objectClass: olcSyncProvConfig
 olcOverlay: syncprov
 
-dn: cn=config,cn=slave
+dn: cn=config,cn=consumer
 changetype: add
 objectClass: olcGlobal
-cn: slaveconfig
+cn: consumerconfig
 
-dn: cn=schema,cn=config,cn=slave
+dn: cn=schema,cn=config,cn=consumer
 changetype: add
 objectClass: olcSchemaConfig
 cn: schema
 
-dn: olcDatabase={0}config,cn=config,cn=slave
+dn: olcDatabase={0}config,cn=config,cn=consumer
 changetype: add
 objectClass: olcDatabaseConfig
 olcDatabase: {0}config
 olcRootPW: topsecret
-olcSyncrepl: {0}rid=001 provider=$URI1 binddn="cn=config,cn=slave"
-  bindmethod=simple credentials=repsecret searchbase="cn=config,cn=slave"
+olcSyncrepl: {0}rid=001 provider=$URI1 binddn="cn=config,cn=consumer"
+  bindmethod=simple credentials=repsecret searchbase="cn=config,cn=consumer"
   $SYNCTYPE retry="3 5 300 5" timeout=3 suffixmassage="cn=config"
 olcUpdateRef: $URI1
 
@@ -172,7 +172,7 @@ add: olcSyncrepl
 olcSyncrepl: {0}rid=001 provider=$URI1 binddn="cn=config"
   bindmethod=simple credentials=$CONFIGPW searchbase="cn=schema,cn=config"
   $SYNCTYPE retry="3 5 300 5" timeout=3
-  suffixmassage="cn=schema,cn=config,cn=slave"
+  suffixmassage="cn=schema,cn=config,cn=consumer"
 -
 add: olcMirrorMode
 olcMirrorMode: TRUE
@@ -180,7 +180,7 @@ olcMirrorMode: TRUE
 EOF
 RC=$?
 if test $RC != 0 ; then
-       echo "ldapmodify failed for slave DB config ($RC)!"
+       echo "ldapmodify failed for consumer DB config ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
@@ -188,12 +188,12 @@ fi
 echo "Starting consumer slapd on TCP/IP port $PORT2..."
 $SLAPADD -F $CFCON -n 0 -l $CONFLDIF
 $SLAPD -F $CFCON -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
-SLAVEPID=$!
+CONSUMERPID=$!
 if test $WAIT != 0 ; then
-    echo SLAVEPID $SLAVEPID
+    echo CONSUMERPID $CONSUMERPID
     read foo
 fi
-KILLPIDS="$KILLPIDS $SLAVEPID"
+KILLPIDS="$KILLPIDS $CONSUMERPID"
 
 sleep 1
 
@@ -220,8 +220,8 @@ $LDAPMODIFY -D cn=config -H $URI2 -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
 dn: olcDatabase={0}config,cn=config
 changetype: modify
 add: olcSyncRepl
-olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config,cn=slave"
-  bindmethod=simple credentials=repsecret searchbase="cn=config,cn=slave"
+olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config,cn=consumer"
+  bindmethod=simple credentials=repsecret searchbase="cn=config,cn=consumer"
   $SYNCTYPE retry="3 5 300 5" timeout=3
   suffixmassage="cn=config"
 -
@@ -296,7 +296,7 @@ cn: module
 olcModulePath: ../servers/slapd/back-$BACKEND
 olcModuleLoad: back_$BACKEND.la
 
-dn: cn=module,cn=config,cn=slave
+dn: cn=module,cn=config,cn=consumer
 objectClass: olcModuleList
 cn: module
 olcModulePath: ../servers/slapd/back-$BACKEND
@@ -330,7 +330,7 @@ objectClass: olcOverlayConfig
 objectClass: olcSyncProvConfig
 olcOverlay: syncprov
 
-dn: olcDatabase={1}$BACKEND,cn=config,cn=slave
+dn: olcDatabase={1}$BACKEND,cn=config,cn=consumer
 objectClass: olcDatabaseConfig
 ${nullExclude}objectClass: olc${BACKEND}Config
 olcDatabase: {1}$BACKEND
@@ -402,7 +402,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the provider..."
 $LDAPSEARCH -S "" -b "$BASEDN" -D "$MANAGERDN" -H $URI1 -w $PASSWD  \
-       'objectclass=*' > $MASTEROUT 2>&1
+       'objectclass=*' > $PROVIDEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -413,7 +413,7 @@ fi
 
 echo "Using ldapsearch to read all the entries from the consumer..."
 $LDAPSEARCH -S "" -b "$BASEDN" -D "$MANAGERDN" -H $URI2 -w $PASSWD  \
-       'objectclass=*' > $SLAVEOUT 2>&1
+       'objectclass=*' > $CONSUMEROUT 2>&1
 RC=$?
 
 if test $RC != 0 ; then
@@ -425,12 +425,12 @@ fi
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
 echo "Filtering provider results..."
-$LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $PROVIDEROUT > $PROVIDERFLT
 echo "Filtering consumer results..."
-$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $CONSUMEROUT > $CONSUMERFLT
 
 echo "Comparing retrieved entries from provider and consumer..."
-$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+$CMP $PROVIDERFLT $CONSUMERFLT > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - provider and consumer databases differ"
similarity index 95%
rename from tests/scripts/test063-delta-multimaster
rename to tests/scripts/test063-delta-multiprovider
index c8e1d2c01ac3f882615bf8132caa4f2b0c1af428..b7f80c0eb1efebfa52ed62903aabe1ee28415b9b 100755 (executable)
@@ -25,7 +25,7 @@ if test $ACCESSLOG = accesslogno; then
        exit 0
 fi
 
-MMR=2
+MPR=2
 
 XDIR=$TESTDIR/srv
 TMP=$TESTDIR/tmp
@@ -51,7 +51,7 @@ case "$SYNCMODE" in
 esac
 
 #
-# Test delta-sync mmr
+# Test delta-sync mpr
 # - start servers
 # - configure over ldap
 # - populate over ldap
@@ -69,7 +69,7 @@ KILLPIDS=
 
 echo "Initializing server configurations..."
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 
 DBDIR=${XDIR}$n/db
 CFDIR=${XDIR}$n/slapd.d
@@ -247,7 +247,7 @@ echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -266,9 +266,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
@@ -292,7 +292,7 @@ THEDN="cn=James A Jones 2,ou=Alumni Association,ou=People,dc=example,dc=com"
 sleep 1
 for i in 1 2 3; do
        $LDAPSEARCH -S "" -b "$THEDN" -H $URI1 \
-               -s base '(objectClass=*)' entryCSN > "${MASTEROUT}.$i" 2>&1
+               -s base '(objectClass=*)' entryCSN > "${PROVIDEROUT}.$i" 2>&1
        RC=$?
 
        if test $RC = 0 ; then
@@ -300,7 +300,7 @@ for i in 1 2 3; do
        fi
 
        if test $RC != 32 ; then
-               echo "ldapsearch failed at slave ($RC)!"
+               echo "ldapsearch failed at consumer ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
        fi
@@ -310,7 +310,7 @@ for i in 1 2 3; do
 done
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -329,9 +329,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
@@ -343,7 +343,7 @@ done
 
 echo "Breaking replication between server 1 and 2..."
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 o=`expr 3 - $n`
 MYURI=`eval echo '$URI'$n`
 PROVIDERURI=`eval echo '$URI'$o`
@@ -492,7 +492,7 @@ fi
 
 echo "Restoring replication between server 1 and 2..."
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 o=`expr 3 - $n`
 MYURI=`eval echo '$URI'$n`
 PROVIDERURI=`eval echo '$URI'$o`
@@ -523,7 +523,7 @@ echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1
 
 n=1
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 PORT=`expr $BASEPORT + $n`
 URI="ldap://${LOCALHOST}:$PORT/"
 
@@ -542,9 +542,9 @@ n=`expr $n + 1`
 done
 
 n=2
-while [ $n -le $MMR ]; do
+while [ $n -le $MPR ]; do
 echo "Comparing retrieved entries from server 1 and server $n..."
-$CMP $MASTERFLT $TESTDIR/server$n.flt > $CMPOUT
+$CMP $PROVIDERFLT $TESTDIR/server$n.flt > $CMPOUT
 
 if test $? != 0 ; then
        echo "test failed - server 1 and server $n databases differ"
index 4449b8a94814ec4c0286dbf5a7ecaaac72ca1dbb..334d42143815c20ae796efd37b2591bbba75f79e 100755 (executable)
@@ -45,9 +45,9 @@ fi
 mkdir -p $TESTDIR $DBDIR1 $DBDIR2
 
 # Test proxy caching:
-# - start master
+# - start provider
 # - start proxy cache
-# - populate master 
+# - populate provider 
 # - perform a first search
 # - verify cacheability
 # - perform a second search with the same filter and same user 
@@ -55,8 +55,8 @@ mkdir -p $TESTDIR $DBDIR1 $DBDIR2
 # - perform a third search with the same user but a different filter
 # - verify cacheability of the bind and the non-answerability of the result 
 
-echo "Starting master slapd on TCP/IP port $PORT1..."
-. $CONFFILTER < $PROXYAUTHZMASTERCONF > $CONF1
+echo "Starting provider slapd on TCP/IP port $PORT1..."
+. $CONFFILTER < $PROXYAUTHZPROVIDERCONF > $CONF1
 $SLAPD -f $CONF1 -h $URI1 -d $LVL > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
@@ -67,7 +67,7 @@ KILLPIDS="$PID"
 
 sleep 1
 
-echo "Using ldapsearch to check that master slapd is running..."
+echo "Using ldapsearch to check that provider slapd is running..."
 for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
                -D "cn=Manager,dc=example,dc=com" -w secret 'objectclass=*' > /dev/null 2>&1
@@ -85,7 +85,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Using ldapadd to populate the master directory..."
+echo "Using ldapadd to populate the provider directory..."
 $LDAPADD -x -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
        $LDIFORDERED > /dev/null 2>&1
 RC=$?