Skip to content

Commit d607376

Browse files
author
Jong Hyuk Choi
committed
syncrepl update
1 parent 84a7381 commit d607376

File tree

1 file changed

+56
-41
lines changed

1 file changed

+56
-41
lines changed

doc/guide/admin/slapdconfig.sdf

+56-41
Original file line numberDiff line numberDiff line change
@@ -446,25 +446,25 @@ H4: syncrepl
446446

447447
> syncrepl id=<replica ID>
448448
> 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]
459451
> [searchbase=<base DN>]
460452
> [filter=<filter str>]
461-
> [attrs=<attr list>]
462453
> [scope=sub|one|base]
454+
> [attrs=<attr list>]
455+
> [attrsonly]
463456
> [sizelimit=<limit>]
464457
> [timelimit=<limit>]
465458
> [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>]
468468

469469
This directive specifies the current database as a replica of the
470470
master database at the provider site. The replica database at the
@@ -494,51 +494,66 @@ not represent the replication peers of each other.
494494
The content of the syncrepl replica is defined using a search
495495
specification as its result set. The consumer slapd will send
496496
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}}.
505506
The operation type is specified by the {{EX:type}} parameter.
506507
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
508509
synchronization operation finishes. The interval is specified
509510
by the {{EX:interval}} parameter. It is set to one day by default.
510511
In the {{EX:refreshAndPersist}} mode, a synchronization search
511512
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.
515515

516516
The schema checking can be enforced at the LDAP Sync consumer site
517517
by turning on the {{EX:schemachecking}} parameter. The default is off.
518518

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.
527538

528539
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
531542
{{EX:credentials}} parameters.
532543

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.
535546
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}},
537548
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.
539554

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.
542557

543558
See the {{SECT:LDAP Sync Replication}} chapter of the admin guide
544559
for more information on how to use this directive.

0 commit comments

Comments
 (0)