1 .TH SLAPO-DDS 5 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 2005-2014 The OpenLDAP Foundation, All Rights Reserved.
3 .\" Copying restrictions apply. See the COPYRIGHT file.
6 slapo\-dds \- Dynamic Directory Services overlay to slapd
14 implements dynamic objects as per RFC 2589.
18 Dynamic Directory Services.
19 It allows to define dynamic objects, characterized by the
23 Dynamic objects have a limited lifetime, determined by a time-to-live
24 (TTL) that can be refreshed by means of a specific
27 This operation allows to set the Client Refresh Period (CRP),
28 namely the period between refreshes that is required to preserve the
29 dynamic object from expiration.
30 The expiration time is computed by adding the requested TTL to the
32 When dynamic objects reach the end of their lifetime without being
33 further refreshed, they are automatically deleted.
34 There is no guarantee of immediate deletion, so clients should not count
37 Dynamic objects can have subordinates, provided these also are dynamic
39 RFC 2589 does not specify what the behavior of a dynamic directory
40 service should be when a dynamic object with (dynamic) subordinates
42 In this implementation, the lifetime of dynamic objects with subordinates
43 is prolonged until all the dynamic subordinates expire.
50 overlay to the current database:
56 The database must have a
58 specified, otherwise, the
60 overlay will not be able to delete expired objects. The
62 overlay may be used with any backend that implements the
69 Since its use may result in many internal entry lookups, adds
70 and deletes, it should be best used in conjunction with backends
71 that have reasonably good write performances.
74 The config directives that are specific to the
76 overlay are prefixed by
78 to avoid potential conflicts with directives specific to the underlying
79 database or to other stacked overlays.
82 .B dds\-max\-ttl <ttl>
83 Specifies the max TTL value.
84 This is also the default TTL newly created
85 dynamic objects receive, unless
88 When the client with a refresh extended operation requests a TTL higher
89 than it, sizeLimitExceeded is returned.
90 This value must be between 86400 (1 day, the default) and 31557600
91 (1 year plus 6 hours, as per RFC 2589).
94 .B dds\-min\-ttl <ttl>
95 Specifies the min TTL value; clients requesting a lower TTL by means
96 of the refresh extended operation actually obtain this value as CRP.
97 If set to 0 (the default), no lower limit is set.
100 .B dds\-default\-ttl <ttl>
101 Specifies the default TTL value that newly created dynamic objects get.
102 If set to 0 (the default), the
107 .B dds\-interval <ttl>
108 Specifies the interval between expiration checks; defaults to 1 hour.
111 .B dds\-tolerance <ttl>
112 Specifies an extra time that is added to the timer that actually wakes up
113 the thread that will delete an expired dynamic object.
114 So the nominal lifetime of the entry is that specified in the
116 attribute, but its lifetime will actually be
117 .BR "entryTtl + tolerance" .
118 Note that there is no guarantee that the lifetime of a dynamic object
121 the requested TTL; due to implementation details, it may be longer, which
122 is allowed by RFC 2589.
123 By default, tolerance is 0.
126 .B dds\-max\-dynamicObjects <num>
127 Specifies the maximum number of dynamic objects that can simultaneously exist
128 within a naming context.
129 This allows to limit the amount of resources (mostly in terms of
130 run-queue size) that are used by dynamic objects.
131 By default, no limit is set.
134 .B dds\-state {TRUE|false}
135 Specifies if the Dynamic Directory Services feature is enabled or not.
136 By default it is; however, a proxy does not need to keep track of dynamic
137 objects itself, it only needs to inform the frontend that support for
138 dynamic objects is available.
143 overlay restricts the refresh operation by requiring
149 for details about the
154 is an operational, NO-USER-MODIFICATION attribute, no direct write access
158 overlay turns refresh extended operation into an internal modification to
165 RFC 2589 recommends that anonymous clients should not be allowed to refresh
167 This can be implemented by appropriately crafting access control to obtain
170 Example: restrict refresh to authenticated clients
174 access to attrs=entryTtl
180 Example: restrict refresh to the creator of the dynamic object
184 access to attrs=entryTtl
185 by dnattr=creatorsName manage
190 Another suggested usage of dynamic objects is to implement dynamic meetings;
191 in this case, all the participants to the meeting are allowed to refresh
192 the meeting object, but only the creator can delete it (otherwise it will
193 be deleted when the TTL expires)
195 Example: assuming \fIparticipant\fP is a valid DN-valued attribute,
196 allow users to start a meeting and to join it; restrict refresh
197 to the participants; restrict delete to the creator
201 access to dn.base="cn=Meetings"
205 access to dn.onelevel="cn=Meetings"
207 by dnattr=creatorsName write
210 access to dn.onelevel="cn=Meetings"
212 by dnattr=creatorsName write
216 access to dn.onelevel="cn=Meetings"
218 by dnattr=participant manage
225 This implementation of RFC 2589 provides a restricted interpretation of how
226 dynamic objects replicate. Only the master takes care of handling dynamic
227 object expiration, while replicas simply see the dynamic object as a plain
230 When replicating these objects, one needs to explicitly exclude the
235 This implementation of RFC 2589 introduces a new operational attribute,
236 .BR entryExpireTimestamp ,
237 that contains the expiration timestamp. This must be excluded from
240 The quick and dirty solution is to set
242 in the syncrepl configuration
243 and, optionally, exclude the operational attributes from replication, using
248 exattrs=entryTtl,entryExpireTimestamp
252 In any case the overlay must be either statically built in or run-time loaded
253 by the consumer, so that it is aware of the
254 .B entryExpireTimestamp
255 operational attribute; however, it must not be configured in the shadow
257 Currently, there is no means to remove the
259 class from the entry; this may be seen as a feature, since it allows to see
260 the dynamic properties of the object.
265 default slapd configuration file
268 .BR slapd\-config (5),
271 Implemented by Pierangelo Masarati.