Jong Hyuk Choi [Tue, 7 Oct 2003 20:01:37 +0000 (20:01 +0000)]
slaptools update : replica promotion / demotion
new slapadd options
-p : promote : If the ldif file contains syncConsumerSubentries, convert
them to a single syncProviderSubentry. Its contextCSN
attribute has the largest value of the syncreplCookie
attributes of the syncConsumerSubentries.
syncProviderSubentry in the ldif file is retained.
-p -w : promote : Recalculate contextCSN based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory.
-r : demote : If the ldif file contains syncProviderSubentry, convert it
to a syncConsumerSubentry having the default syncrepl id
of 0. syncConsumerSubentries in the ldif file are retained.
-r -w : demote : Recalculate syncreplCookie based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory. The default
syncrepl id of 0 will be used for the new
syncConsumerSubentry.
-r -w -i %d[,%d]* : Using the comma separated list followed by the -i option,
it is possible to create multiple syncConsumerSubentries
having the syncrepl ids specified in the list.
syncreplCookie values of these sycnConsumerSubentries
will have the same value, either from the maximum
entryCSN value or from the contextCSN value of the
syncProviderSubentry.
Luke Howard [Tue, 23 Sep 2003 07:40:29 +0000 (07:40 +0000)]
Fix for Howard's fix for ITS #2704
The oblique SLAPI interface requires that preop bind plugins return 1 in the
case that they have authoritatively handled the bind; of course, this is
the same return value that doPluginFNs() returns in the case of no plugins
being called.
This patch should distinguish between the two cases...
Howard Chu [Tue, 23 Sep 2003 06:11:38 +0000 (06:11 +0000)]
ITS#2526 Fix slapi builds
note that -lltdl is added redundantly if --enable-modules was specified.
It seems to me that --enable-slapi should have implied --enable-modules
from the beginning.
fix ITS#2733
- if test back-ldbm then
- run the provider with back-bdb when back-bdb is configured
- run the provider with back-hdb when back-hdb is configured
- exit when neither is configured
Howard Chu [Mon, 22 Sep 2003 23:50:33 +0000 (23:50 +0000)]
ITS#2717, use default SASL_MECH if none was provided.
Note that the mech stored in the void *defaults structure is useless
because we can't look inside the structure, and the mech list is needed
as input to the SASL library, before any callbacks are called. It seems
the mech doesn't belong in the *defaults struct, and/or it should be
visible and not opaque.
Luke Howard [Sun, 21 Sep 2003 06:26:43 +0000 (06:26 +0000)]
Define SLAP_STRTOL macro for integerBitAndMatch() and integerBitOrMatch()
usage - necessary to use larger types for interop with a certain client
that would expect the assertion (attr:1.2.840.113556.1.4.803:=2147483648)
to match a signed value (eg. -2147483646).
There are probably better / more portable solutions; review appreciated.
Howard Chu [Sat, 20 Sep 2003 08:16:04 +0000 (08:16 +0000)]
ITS#2573 dynamic group support
moved labeledURI into system schema
attribute types that inherit from labeledURI may be used in dynamic
groups e.g. access to * by group/groupOfURLs/memberURL=foo