@@ -446,25 +446,25 @@ H4: syncrepl
446
446
447
447
> syncrepl id=<replica ID>
448
448
> provider=ldap[s]://<hostname>[:port]
449
- > [binddn=<dn>]
450
- > [bindmethod=simple|sasl]
451
- > [binddn=<simple DN>]
452
- > [credentials=<simple passwd>]
453
- > [saslmech=<SASL mech>]
454
- > [secprops=<properties>]
455
- > [realm=<realm>]
456
- > [authcId=<authentication ID>]
457
- > [authzId=<authorization ID>]
458
- > [updatedn=<dn>]
449
+ > [type=refreshOnly|refreshAndPersist]
450
+ > [interval=dd:hh:mm:ss]
459
451
> [searchbase=<base DN>]
460
452
> [filter=<filter str>]
461
- > [attrs=<attr list>]
462
453
> [scope=sub|one|base]
454
+ > [attrs=<attr list>]
455
+ > [attrsonly]
463
456
> [sizelimit=<limit>]
464
457
> [timelimit=<limit>]
465
458
> [schemachecking=on|off]
466
- > [type=refreshOnly|refreshAndPersist]
467
- > [interval=dd:hh:mm:ss]
459
+ > [updatedn=<dn>]
460
+ > [bindmethod=simple|sasl]
461
+ > [binddn=<dn>]
462
+ > [saslmech=<mech>]
463
+ > [authcid=<identity>]
464
+ > [authzid=<identity>]
465
+ > [credentials=<passwd>]
466
+ > [realm=<realm>]
467
+ > [secprops=<properties>]
468
468
469
469
This directive specifies the current database as a replica of the
470
470
master database at the provider site. The replica database at the
@@ -494,51 +494,66 @@ not represent the replication peers of each other.
494
494
The content of the syncrepl replica is defined using a search
495
495
specification as its result set. The consumer slapd will send
496
496
search requests to the provider slapd according to the search
497
- specification. The search specification consists of {{EX:searchbase}},
498
- {{EX:scope}}, {{EX:filter}}, and {{EX:attrs}} parameters
499
- as in the normal search specification. The search requests
500
- for the LDAP Content Synchronization operation is attached
501
- a special control for synchronization and replica management.
502
-
503
- The LDAP Content Synchronization protocol has two types of operation
504
- modes : {{EX:refreshOnly}} and {{EX:refreshAndPersist}}.
497
+ specification. The search specification includes {{EX:searchbase}},
498
+ {{EX:scope}}, {{EX:filter}}, {{EX:attrs}}, {{EX:attrsonly}},
499
+ {{EX:sizelimit}}, and {{EX:timelimit}} parameters as in the normal
500
+ search specification. The syncrepl search specification
501
+ has the same default value semantics as the {{REF:ldapsearch(1)}}
502
+ client search tool.
503
+
504
+ The LDAP Content Synchronization protocol has two operation
505
+ types: {{EX:refreshOnly}} and {{EX:refreshAndPersist}}.
505
506
The operation type is specified by the {{EX:type}} parameter.
506
507
In the {{EX:refreshOnly}} mode, the next synchronization search operation
507
- is rescheduled periodically at the interval time after the current
508
+ is periodically rescheduled at an interval time after each
508
509
synchronization operation finishes. The interval is specified
509
510
by the {{EX:interval}} parameter. It is set to one day by default.
510
511
In the {{EX:refreshAndPersist}} mode, a synchronization search
511
512
remains persistent in the provider slapd. Further updates to the
512
- master replica will make searchResultEntry search responses
513
- to the persistent synchronization search delivered to the consumer
514
- slapd in order to synchronize the replica.
513
+ master replica will generate searchResultEntry to the consumer slapd
514
+ as the search responses to the persistent synchronization search.
515
515
516
516
The schema checking can be enforced at the LDAP Sync consumer site
517
517
by turning on the {{EX:schemachecking}} parameter. The default is off.
518
518
519
- The {{EX:binddn}} parameter gives the DN for a LDAP Content Synchronization
520
- search to bind as to the provider slapd. The search result, i.e., the
521
- content of the replica, will be subject to the access control privileges
522
- of the DN.
523
-
524
- The {{EX:bindmethod}} is {{EX:simple}} or {{EX:sasl}}, depending
525
- on whether simple password-based authentication or SASL authentication
526
- is to be used when connecting to the provider slapd.
519
+ The {{EX:updatedn}} paramter specifies the DN in the consumer site
520
+ which is allowed to make changes to the replica. This DN is used
521
+ locally by the syncrepl engine when updating the replica with
522
+ the entries received from the provider site by using the
523
+ internal operation mechanism. The update of the replica content
524
+ is subject to the access control privileges of the DN.
525
+ The DN should have read/write access to the replica database.
526
+ It is typically given as a {{EX:rootdn}} in the consumer site's
527
+ config file.
528
+
529
+ The {{EX:binddn}} parameter gives the DN to bind as for the
530
+ syncrepl searches to the provider slapd. It should be a DN
531
+ which has read access to the replication content in the
532
+ master database.
533
+
534
+ The {{EX:bindmethod}} is {{EX:simple}} or {{EX:sasl}},
535
+ depending on whether simple password-based authentication or
536
+ {{TERM:SASL}} authentication is to be used when connecting
537
+ to the provider slapd.
527
538
528
539
Simple authentication should not be used unless adequate integrity
529
- and data confidential protections are in place (e.g. TLS or IPSEC).
530
- Simple authentication requires specification of {{EX:binddn}} and
540
+ and privacy protections are in place (e.g. TLS or IPSEC). Simple
541
+ authentication requires specification of {{EX:binddn}} and
531
542
{{EX:credentials}} parameters.
532
543
533
- SASL authentication is generally recommended. SASL authentication
534
- requires specification of a mechanism using the {{EX:mech }} parameter.
544
+ SASL authentication is generally recommended. SASL authentication
545
+ requires specification of a mechanism using the {{EX:saslmech }} parameter.
535
546
Depending on the mechanism, an authentication identity and/or
536
- credentials can be specified using {{EX:authcid}} and {{EX:credentials}}
547
+ credentials can be specified using {{EX:authcid}} and {{EX:credentials}},
537
548
respectively. The {{EX:authzid}} parameter may be used to specify
538
- a proxy authorization identity.
549
+ an authorization identity.
550
+
551
+ The {{EX:realm}} parameter specifies a realm which a certain
552
+ mechanisms authenticate the identity within. The {{EX:secprops}}
553
+ parameter specifies Cyrus SASL security properties.
539
554
540
- The syncrepl replication mechanism is supported in the three native backends:
541
- back-bdb, back-hdb, and back-ldbm.
555
+ The syncrepl replication mechanism is supported by the
556
+ three native backends: back-bdb, back-hdb, and back-ldbm.
542
557
543
558
See the {{SECT:LDAP Sync Replication}} chapter of the admin guide
544
559
for more information on how to use this directive.
0 commit comments