Kurt Zeilenga [Wed, 13 Oct 1999 20:28:00 +0000 (20:28 +0000)]
Change 'attribute' directive to 'attributetype'
(and allowing 'attribute' for backwards compatibility).
manuals and *.schema to be updated as time permits.
Kurt Zeilenga [Wed, 6 Oct 1999 00:04:04 +0000 (00:04 +0000)]
Add other schema references (nameref, alias, subentry) to core.schema.
Add openldap.schema (currently empty except for a few comments) to
hold OpenLDAP specific schema items (such as for cn=monitor).
Ben Collins [Wed, 29 Sep 1999 00:56:43 +0000 (00:56 +0000)]
* configure.in: add --enable-dynamic option for linking our local binaries
with the shared libraries instead of static, defaults to no
* build/lib-shared.mk: if LINK_BINS_DYNAMIC is set we create a symlink to
the .so and .so.# file along with the .a and .la files
* build/lib.mk: make sure the above links get removed on clean target
* build/top.mk: add define for LINK_BINS_DYNAMIC
* tests/scripts/defines.sh: add export for LD_LIBRARY_PATH so that tests will
run without requiring installation of libraries when we use --enable-dynamic
(LD_LIBRARY_PATH is always set, since it can't really hurt).
Kurt Zeilenga [Sat, 25 Sep 1999 22:13:25 +0000 (22:13 +0000)]
Rework passwd routines to allow callers to determine which
schemes are supported. This should facilate server rootDSE
advertisement of supported schemes, etc..
Randy Kunkee [Fri, 24 Sep 1999 18:16:41 +0000 (18:16 +0000)]
Back out my change to ldap_sort_strcasecmp. My mistake from not reading
manpage carefully. One should pass strcasecmp to ldap_sort_entries, not
ldap_sort_strcasecmp. Ldap_sort_strcasecmp is for ldap_sort_values, NOT
ldap_sort_entries.
Randy Kunkee [Fri, 24 Sep 1999 08:02:54 +0000 (08:02 +0000)]
Change call to strcasecmp in ldap_sort_strcasecmp, which makes
ldap_sort_entries work with ldap_sort_strcasecmp as the comparison
function. Pointers were being dereferenced, and should only have been
casted.
Kurt Zeilenga [Fri, 24 Sep 1999 04:19:37 +0000 (04:19 +0000)]
ITS#303: value_add_fast() empty value bug. Ignore empty value.
This is technical incorrect, but we don't have the codes in place
to correctly handle empty values yet.
Kurt Zeilenga [Thu, 23 Sep 1999 19:49:20 +0000 (19:49 +0000)]
Reimplement LDBM_SYNC/LDBM_NOSYNC code (dbnosync).
Old code applied sync flags to store(), however supported DBMs
require such flags to be specified during open(). The new
code now applies flags in ldbm_cache_open (which calls ldbm_open).
ldbm_cache_close() now calls ldbm_sync(). This will force
a updating of on-disk contents after each LDAP operation.
The old code either failed to sync the on-disk contents until
close or synced on every store. Per LDBM operation syncing
*should* be safe enough... real data safety requires transactions.
Removed nosync option from BDB2 as it is not compatible with
txn support.
Also added code to disable DBM level locking as slapd is only
process acessing the databases (dbnolocking).
The loading step in slapd build was failing because of a weird
@SLAPD tag. Removing it fixes the problem for me, but this should
be reviewed by someone who knows which @SLAPD_...@ tag was meant to
be there, if any.
Ben Collins [Thu, 23 Sep 1999 05:32:10 +0000 (05:32 +0000)]
* configure.in: add tcl8.2 to list of tcl libs to search for, also added new MOD_TCL_LIB
and related AC_SUBST() so that when back-tcl is compiled as a dynamic module we link
-ltcl to the module and not slapd (this is the correct way to do this since the .la file
handles giving the correct libs when we pass the module to it in the linker line with
-dlopen). Also modified the perl backend in a similar way except that the PERL_CPPFLAGS
always go to the module and never to slapd (slapd doesn't need them).
* build/mod.mk: added $(MODLIBS) to the dynamic module link line to accomodate module
specific libraries. These should be defined in the back-*/Makefile.in file for each
module (so far only back-tcl and back-perl need it).
* build/top.mk: modified the perl ldflags and cppflags slightly
* servers/slapd/Makefile.in: same here
* servers/slapd/back-perl/Makefile.in: added MODLIBS=$(MOD_PERL_LDFLAGS) for when we are
using a dynamic module (problem, libtool wont allow linking static libs into a libtool
lib, so unless perl's libs are compiled dynamic, then back-perl can't be a dynamic
module. We need a test for this on perl and tcl).
* servers/slapd/back-tcl/Makefile.in: added MODLIBS=$(MOD_TCL_LIB)
* back-perl and back-tcl now compile
Kurt Zeilenga [Thu, 23 Sep 1999 04:08:33 +0000 (04:08 +0000)]
experimental ITS#109 fix: make kbind open default connection if necessary.
implemented ldap_open_defconn() to centralize default connection
opening in open.c. Used by ldap_open, kbind, and send_initial_request().
Much as we would like to, we have to live for the time being with
broken objectclass and attributetype definitions where the OID is
missing. The implementation of OIDmacros was making this impossible.
This change tries to restore the old behaviour, while preserving the
new feature. Note that part of the restored behaviour lets OIDs that
are not in the numericoid format get through. We may lose this, but
then we need to fix some of the sample provided schemas, notably
pilot.schema.
Ben Collins [Wed, 22 Sep 1999 15:00:51 +0000 (15:00 +0000)]
* configure.in: Added better check for libwrap (the old way failed when
libwrap was a dynamic library). Added -lwrap to new subst var WRAP_LIBS
so we have more control over where it get's linked (dynamic libwrap
causes problems when we link to programs that don't define certains
globals that libwrap expects).
* build/top.mk: Added placeholder for WRAP_LIBS subst
* servers/slapd/Makefile.in: Added $(WRAP_LIBS) to the slapd and sslapd
link command line specifically so it doesn't get thrown in with the rest
of the LIBS.
* configure: rebuilt
Kurt Zeilenga [Mon, 20 Sep 1999 20:55:54 +0000 (20:55 +0000)]
Add experimental detection of BerkeleyDB2 DB_THREAD.
If not available, LDBM uses big mutex and BDB2 is disabled.
Should add BerkeleyDB version detection...
Howard Chu [Sat, 18 Sep 1999 23:40:03 +0000 (23:40 +0000)]
Added mixed-case as well as up-cased DN argument. The behavior of back-bdb2
and back-ldbm are preserved, they only use the up-cased DNs. back-passwd
uses the mixed-case DN. All others are using mixed-case DN, may need more
fixing.