SLAPO-SYNCPROV(5)
π SLAPO-SYNCPROV π
okay bestie, so this one is a File Formats Manual page β the slapo-syncprov one, aka the Sync Provider overlay to slapd. yes it's a mouthful, it's fine, we're getting through it together π«Ά
β¨ NAME β¨
slapo-syncprov β Sync Provider overlay to slapd. that's the whole name. she's short, she's powerful, she runs the whole replication situation π
β¨ SYNOPSIS β¨
/etc/openldap/slapd.conf
yep. that's it. the whole synopsis is a file. we love a minimal queen. πΈ
β¨ DESCRIPTION β¨
so the Sync Provider overlay is the one that does the provider-side heavy lifting for LDAP Content Synchronization (RFC4533) and also for syncrepl replication support. she's the one handing out the updates, not the one receiving them. main character energy fr fr π
and here's the iconic part β this overlay can be used with any backend as long as that backend keeps entryCSN and entryUUID attributes for its entries. she's not picky. she's versatile. β¨
she also creates a contextCSN attribute in the root entry of the database. like, she just makes it. you're welcome. π
now, the contextCSN gets updated for every single write operation performed against the database. every one. but β and this is the smart part β to reduce database contention, the contextCSN is only updated in memory. π
so the tea is: the value gets written to the database on server shutdown, read into memory on startup, and maintained in memory after that. Checkpoints can be configured to write the contextCSN into the underlying database so you minimize recovery time after an unclean shutdown. (unclean shutdowns are giving π, so yeah, checkpoints are your friend.)
IMPORTANT BESTIE: on databases that support inequality indexing, it is highly recommended to set aneqindex on theentryCSNattribute when using this overlay. highly recommended. don't skip this. ngl this is the kind of thing people skip and then they're in the group chat asking why everything is slow. π
β¨ CONFIGURATION β¨
these slapd.conf options apply to the Sync Provider overlay. they should appear after the overlay directive. (order matters, bestie, we respect the order π)
syncprov-checkpoint <ops> <minutes>β after a write operation has succeeded, write thecontextCSNto the underlying database if<ops>write operations have happened, or if more than<minutes>time has passed since the last checkpoint. Checkpointing is disabled by default β so if you want it, you gotta ask for it. π¦syncprov-sessionlog <ops>β configures an in-memory session log for recording info about write operations made on the database.<ops>specifies the number of operations recorded in the log. All write operations (except Adds) get recorded in the log. and heads up β when you're using the session log, it's helpful to set aneqindex on theentryUUIDattribute in the underlying database. β¨syncprov-sessionlog-source <dn>β okay, first thing: this should not be set whensyncprov-sessionlogis set, and vice versa. they're mutually exclusive, they do not share the aux cord. π«
when accesslog for this database is configured and is logging at this suffix, it can be used as the session log source instead of the in-memory session log mentioned above. and the glow-up here? this log has the advantage of not starting afresh every time the server is restarted. iconic, honestly. π
syncprov-nopresent TRUE | FALSEβ specifies that the Present phase of refreshing should be skipped. this value should only be setTRUEfor a syncprov instance on top of a log database (such as one managed by theaccesslogoverlay). default isFALSE. πsyncprov-reloadhint TRUE | FALSEβ specifies that the overlay should honor thereloadHintflag in the Sync Control. it must be setTRUEwhen using theaccesslogoverlay for delta-based syncrepl replication support. default isFALSE. π₯
β¨ FILES β¨
/etc/openldap/slapd.confβ the defaultslapdconfiguration file. the one and only. π
β¨ SEE ALSO β¨
slapd.conf(5), slapd-config(5), slapo-accesslog(5). and also the OpenLDAP Administrator's Guide β go read it, she's thorough. π
β¨ ACKNOWLEDGEMENTS β¨
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. and fun fact bestie β OpenLDAP Software is derived from the University of Michigan LDAP 3.3 Release. history!! π
and that's the whole page, no notes π this was OpenLDAP 2.7.2, dated 2026/10/21, and honestly? she ate. periodt. π«Άβ¨π
π¦ where this page comes from
- arch rolling: openldap 2.7.2-2 Β· OLDAP-2.8
- Copyright 2004-2026 The OpenLDAP Foundation All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms