Kurt Zeilenga [Tue, 26 Jan 1999 00:27:51 +0000 (00:27 +0000)]
Add lber_log_print support to libldap.
Redefine Debug macro to call ldap_log_printf(NULL, lvl, fmt, ...)
Should replace each Debug statement with direct call to ldap_log_printf
passing LDAP session if available.
Kurt Zeilenga [Mon, 25 Jan 1999 02:30:58 +0000 (02:30 +0000)]
Move install.sh to install-sh. install.sh name may cause problems
with some 'make' programs that have a rule to create 'install' from
it there is no 'Makefile'. (per autoconf 2.12).
Kurt Zeilenga [Sat, 23 Jan 1999 19:33:53 +0000 (19:33 +0000)]
If dn2id returns ID but id2entry returns NULL, log it.
Assume entry was deleted from underneath the dn2entry call, hence
processing is same as if NOID had been returned.
Kurt Zeilenga [Sat, 23 Jan 1999 03:39:06 +0000 (03:39 +0000)]
Add LDAP_API_FEATURE_X_OPENLDAP to imply this implementation
has OpenLDAP extensions. (This may be defined on non-OpenLDAP
implmentations that implement features of our API).
The extensions implied by this flag are TBD.
Kurt Zeilenga [Fri, 22 Jan 1999 04:33:29 +0000 (04:33 +0000)]
Move libldap/strdup.c to string.c.
libldap/string.c will hold various string.h replacements.
Removed liblutil/strdup.c
Moved ldap_pvt_strtok to string.c.
Moved prototype of ldap_pvt_strtok to <ac/string.h>.
Added #define strtok_r ldap_pvt_strtok (if strtok_r doesn't exist).
Kurt Zeilenga [Fri, 22 Jan 1999 02:26:19 +0000 (02:26 +0000)]
Implement NEXTID chunking. Obtain IDs in chunks of size
SLAPD_NEXTID_CHUNK. Code protects NEXTID file to ensure
its equal to or greater than nextid. Updated on close
to actual nextid. next_id_save() could be called periodically
if desired. Default chunk size is 32. Define to 1 to disable
chunking.
Kurt Zeilenga [Fri, 22 Jan 1999 01:44:46 +0000 (01:44 +0000)]
That last error message did not apply to actual changes committed
for this file. Changes were to NULL the conn->c_dn and conn->c_cdn
after anonymous binds. Previously they were left to old values.
Backends should do the same.
Kurt Spanier [Thu, 21 Jan 1999 15:53:54 +0000 (15:53 +0000)]
Definition of slapd pid and args files as slapd.conf general parameters;
introduction of pid/agrs parameters to the test-suite slapd.conf files;
creation of sub-directory test/var for storage of pid/args files during test;
update of the slapd and slapd.conf man pages.
(The change reduces dependency on ldapconfig.h, since SLAPD_PIDEXT
and SLAPD_ARGSEXT are deleted from the code.)
Kurt Zeilenga [Thu, 21 Jan 1999 02:21:39 +0000 (02:21 +0000)]
Add c_protocol to slap_conn to track protocol version used by client.
Is initialized to 0 (unknown) and then set to 2 or 3 on bind. Should
also be 0->3 if a special (or any) operation occurs before the bind.
Kurt Zeilenga [Wed, 20 Jan 1999 20:21:38 +0000 (20:21 +0000)]
Update ldap_first_attribute/ldap_next_attribute to handle
BerElement argument per latest IETF ldapext draft c api spec.
That is, caller is solely responsible for freeing the BerElement
allocated and returned by ldap_first_attribute.
Update man pages accordingly.
Update applications accordingly.
Kurt Zeilenga [Tue, 19 Jan 1999 18:13:30 +0000 (18:13 +0000)]
Update support for dn vs ndn. Build new dn from e->e_dn not frontend
provided dn (which is normalized and uppercased). This preserved
the trailing portion of the dn.
Kurt Zeilenga [Tue, 19 Jan 1999 05:10:50 +0000 (05:10 +0000)]
Update slap_conn to maintain client provided dn and bound dn.
Update slap_op to maintain dn and ndn (derived from conn->c_dn).
Update ldbm_back_bind to return actual bound dn (including rootdn)
for use in slapd_conn. Other backends use client dn.
Modify other codes to use ndn (normalized uppercase dn) most everywhere.
Aliasing, Suffixing and modrdn could use more work.
Applied suffixing to compare and modrdn.
Kurt Zeilenga [Mon, 18 Jan 1999 17:41:12 +0000 (17:41 +0000)]
Protect return of the locked entry.
Note: we probably can replace the dn2entry_r with dn2id as only the id
is needed unless we're holding the lock for filtercandidates or something
Kurt Zeilenga [Sun, 17 Jan 1999 18:06:52 +0000 (18:06 +0000)]
Reworded paragraph 7 to make it apply to a library of routines
instead of a 'language'.
Added paragraph 8 to clarify software that linked with OpenLDAP
does NOT fall under our copyright (ie: the copyright is non-viral)
and that resulting executables may be used and redistributed without
restriction (including sold for profit).
Bart Hartgers [Thu, 14 Jan 1999 15:19:29 +0000 (15:19 +0000)]
Improved ldap_int_strtok. If strtok_r does not exists, it will be worked
simulated with strspn and strpbrk. If strspn or strpbrk aren't there, they
will be supplied.
In addition, the memory-handling of the ldap_int_gethostby's is better now.
Kurt Zeilenga [Thu, 14 Jan 1999 01:31:43 +0000 (01:31 +0000)]
Revamp build system yet again to move all external libraries to
end of link. Basic order is:
$LDFLAGS internal-libs external-libs $LIBS $LTHREAD_LIBS
LTHREAD_LIBS is last as -lpthread (or equiv) must be last on many systems.
LIBS is next to last as some user might have put -lpthread (or equiv)
in $LIBS.
Kurt Zeilenga [Wed, 13 Jan 1999 01:17:22 +0000 (01:17 +0000)]
Add normalized dn to Entry structure as field e_ndn. Entry
creation codes to provide this field. Update cache_entrydn_cmp
to strcasecmp() the e_ndn instead of e_dn. Note: strcasecmp()
is still used as e_ndn isn't in uppercase. Maybe it should
be. Did not update other codes to use e_ndn. Hence, there
are lots of dn_normalize() calls that could be eliminated.
(The case determination of e_ndn should be made first).
Kurt Zeilenga [Mon, 11 Jan 1999 19:04:34 +0000 (19:04 +0000)]
Use pthread_detach() to detach connection threads instead of
creating them detached. This hopefully will reduce problems on
draft4 pthread implementations related to creating detached
threads (which is _np under draft4) on some platforms without
causing problems with other thread implementations.