]> git.sur5r.net Git - openldap/log
openldap
23 years agoFix typo
Kurt Zeilenga [Wed, 24 Oct 2001 16:56:21 +0000 (16:56 +0000)]
Fix typo

23 years agoFix typo
Kurt Zeilenga [Wed, 24 Oct 2001 16:56:21 +0000 (16:56 +0000)]
Fix typo

23 years agoUpdate to full notice
Kurt Zeilenga [Wed, 24 Oct 2001 16:51:48 +0000 (16:51 +0000)]
Update to full notice

23 years agoCleanup --help
Kurt Zeilenga [Wed, 24 Oct 2001 07:31:17 +0000 (07:31 +0000)]
Cleanup --help

23 years agoFix error messages
Kurt Zeilenga [Wed, 24 Oct 2001 05:27:49 +0000 (05:27 +0000)]
Fix error messages

23 years agoUse defined Root DSE attributes.
Kurt Zeilenga [Tue, 23 Oct 2001 23:29:41 +0000 (23:29 +0000)]
Use defined Root DSE attributes.

Developed by Julius Enarusai/IBM
Copyright IBM Corp. 2001

Use of this source code is subject to the terms of The OpenLDAP
Public License Version 2.7, 7 September 2001.  No trademarks of the
IBM Corporation are to be used to identify, endorse or promote any
products derived from this code without the prior written consent
of IBM.

23 years agoUpdated busy loop protection
Kurt Zeilenga [Tue, 23 Oct 2001 22:17:41 +0000 (22:17 +0000)]
Updated busy loop protection

23 years agoAdd additional __res_query check
Kurt Zeilenga [Tue, 23 Oct 2001 17:32:53 +0000 (17:32 +0000)]
Add additional __res_query check

23 years agoRemove bogus refusal to index ;binary attributes. Notice that I left
Julio Sánchez Fernández [Tue, 23 Oct 2001 13:42:37 +0000 (13:42 +0000)]
Remove bogus refusal to index ;binary attributes.  Notice that I left
in a check.  This way you have to say:

index userCertificate eq

If we remove it, we could say:

index userCertificate;binary eq

I have not tried the latter.

23 years agoAnd this change implements indexing for certificateExactMatch. Now
Julio Sánchez Fernández [Tue, 23 Oct 2001 13:39:07 +0000 (13:39 +0000)]
And this change implements indexing for certificateExactMatch.  Now
you can search efficiently the directory for a certificate.

Notice that we index certificates just as serial integers.  A full
index should combine the issuer DN too, but I think in most scenarios
that would be extremely redundant and of little benefit.  We can add
an option later to do full indexing.

23 years agoNo code change, added a comment warning of a possible future difficulty.
Julio Sánchez Fernández [Tue, 23 Oct 2001 13:35:54 +0000 (13:35 +0000)]
No code change, added a comment warning of a possible future difficulty.
Apparently, we refuse to index ;binary attributes.  That is mostly
bogus.  Whether it is indexable or not depends on whether we know how
to or not, nothing more.  I.e., the existance of indexer and filter
functions for the matching rules that are relevant to the attribute
type.

23 years agoCompares get values in the matching rule syntax (see RFC2251, 4.1.7),
Julio Sánchez Fernández [Tue, 23 Oct 2001 09:48:18 +0000 (09:48 +0000)]
Compares get values in the matching rule syntax (see RFC2251, 4.1.7),
so we need to tell value_find about this.

23 years agoReplacement for value_find and compatibility macro.
Julio Sánchez Fernández [Tue, 23 Oct 2001 09:43:20 +0000 (09:43 +0000)]
Replacement for value_find and compatibility macro.
Now we will be able to fix compares.

23 years agoNormalization and more error checking.
Julio Sánchez Fernández [Tue, 23 Oct 2001 09:05:04 +0000 (09:05 +0000)]
Normalization and more error checking.

23 years agoWhen checking if an entry matches some filter, we have the list of
Julio Sánchez Fernández [Mon, 22 Oct 2001 20:07:06 +0000 (20:07 +0000)]
When checking if an entry matches some filter, we have the list of
values as stored in the entry on the one hand and an assertion value
that is not necessarily of the same syntax.  So tell value_match this
is the case by setting SLAP_MR_VALUE_IS_IN_MR_SYNTAX in flags.

23 years agoExtend value_match to extract an asserted value from a full value
Julio Sánchez Fernández [Mon, 22 Oct 2001 20:03:30 +0000 (20:03 +0000)]
Extend value_match to extract an asserted value from a full value
if needed.  This is controlled by SLAP_MR_VALUE_IS_IN_MR_SYNTAX,
a new flag that should be set when evaluating filters such as in
searches and compares and unset otherwise (such as in modify).

Now, some callers of value_match, notably value_find, don't know
whether to set it or not.  We'll see to that.

23 years agoAdd a flag to help the value_* functions know whether they are seeing
Julio Sánchez Fernández [Mon, 22 Oct 2001 19:57:23 +0000 (19:57 +0000)]
Add a flag to help the value_* functions know whether they are seeing
a full value (in attribute type syntax) or a value in the syntax of
the matching rule (as happens in filters).

23 years agoDo something with the error text.
Julio Sánchez Fernández [Mon, 22 Oct 2001 19:55:21 +0000 (19:55 +0000)]
Do something with the error text.

23 years agohandle lead/trail escape chars in LDAPv2/LDAPv3; change misleading name of AVA type...
Pierangelo Masarati [Mon, 22 Oct 2001 19:23:37 +0000 (19:23 +0000)]
handle lead/trail escape chars in LDAPv2/LDAPv3; change misleading name of AVA type modifier

23 years agoDon't free entries since the tools realloc the buffers.
Howard Chu [Mon, 22 Oct 2001 15:58:44 +0000 (15:58 +0000)]
Don't free entries since the tools realloc the buffers.

23 years agoFix some uninitialized variables
Howard Chu [Mon, 22 Oct 2001 15:57:58 +0000 (15:57 +0000)]
Fix some uninitialized variables

23 years agoFix entry_encode; must save the given e->e_dn without modification.
Howard Chu [Mon, 22 Oct 2001 15:01:35 +0000 (15:01 +0000)]
Fix entry_encode; must save the given e->e_dn without modification.

23 years agoMissed a test in AttributeDescription commit
Howard Chu [Mon, 22 Oct 2001 14:55:42 +0000 (14:55 +0000)]
Missed a test in AttributeDescription commit

23 years agoMoved binary entry_encode/entry_decode into main code. Removed lber version.
Howard Chu [Mon, 22 Oct 2001 14:07:42 +0000 (14:07 +0000)]
Moved binary entry_encode/entry_decode into main code. Removed lber version.

23 years agoMoved AttributeDescription caching into main code:
Howard Chu [Mon, 22 Oct 2001 13:23:05 +0000 (13:23 +0000)]
Moved AttributeDescription caching into main code:
   Changed AttributeDescription.{ad_cname,ad_lang} to struct berval everywhere
   Deleted ad_free() everywhere
   Added ad_mutex to init.c

The AttributeDescriptions are in a linked list hanging off of the
corresponding AttributeType.

23 years agomore elegant use of realloc; still needs cleanup in case of error
Pierangelo Masarati [Mon, 22 Oct 2001 10:24:32 +0000 (10:24 +0000)]
more elegant use of realloc; still needs cleanup in case of error

23 years agouse AC_MEMCPY instead of str[n]cpy
Pierangelo Masarati [Mon, 22 Oct 2001 09:39:02 +0000 (09:39 +0000)]
use AC_MEMCPY instead of str[n]cpy

23 years agoIt now sort of works, but needs some normalization work and proper
Julio Sánchez Fernández [Mon, 22 Oct 2001 06:54:30 +0000 (06:54 +0000)]
It now sort of works, but needs some normalization work and proper
error reporting to client and syslog. And indexing, of course.

Now, the problem is that matching rules get called from different
places that are inconsistent in what an assertedValue is.  When doing
a modify, a full certificate value is passed (to verify it isn't
already there).  When doing a search or compare, the passed value is
in the syntax of the matching rule.

Consistency would require that the caller extracts an asserted value
from the full value before calling smr_match.  It can do this by
calling smr_convert (it was unused, was it meant to be used for
this?).

Unfortunately, the caller is typically value_find, value_match, etc.
that have themselves little knowledge of what they are dealing with,
so their interface needs to be extended, new flag values or new
arguments, so that they know if they have a value in attribute type
syntax or in matching rule syntax.

23 years agoAdd HAVE_USLEEP for slapd/daemon busy loop protection
Kurt Zeilenga [Sun, 21 Oct 2001 00:48:55 +0000 (00:48 +0000)]
Add HAVE_USLEEP for slapd/daemon busy loop protection

23 years agoExperiment with busy loop protection...
Kurt Zeilenga [Sun, 21 Oct 2001 00:48:14 +0000 (00:48 +0000)]
Experiment with busy loop protection...

23 years agoAdd check for __res_query in default libraries
Kurt Zeilenga [Sun, 21 Oct 2001 00:32:47 +0000 (00:32 +0000)]
Add check for __res_query in default libraries

23 years agoUse the ldap syntax oid assigned by David Chadwick (no yet published).
Julio Sánchez Fernández [Sat, 20 Oct 2001 17:31:52 +0000 (17:31 +0000)]
Use the ldap syntax oid assigned by David Chadwick (no yet published).

23 years agolisten on any device
Pierangelo Masarati [Sat, 20 Oct 2001 17:19:56 +0000 (17:19 +0000)]
listen on any device

23 years agofixes ITS#1398
Pierangelo Masarati [Sat, 20 Oct 2001 15:49:05 +0000 (15:49 +0000)]
fixes ITS#1398

23 years agoFirst cut at certificateExactMatch, completely untested and without
Julio Sánchez Fernández [Sat, 20 Oct 2001 10:15:09 +0000 (10:15 +0000)]
First cut at certificateExactMatch, completely untested and without
indexing.

23 years agoPatches for modify/modrdn to work with BDB_USE_BINARY_RW.
Howard Chu [Fri, 19 Oct 2001 20:28:48 +0000 (20:28 +0000)]
Patches for modify/modrdn to work with BDB_USE_BINARY_RW.

23 years agoAdded new bdb_encode/bdb_decode functions, must #define BDB_USE_BINARY_RW
Howard Chu [Fri, 19 Oct 2001 11:53:15 +0000 (11:53 +0000)]
Added new bdb_encode/bdb_decode functions, must #define BDB_USE_BINARY_RW
to activate. The bdb_decode works in-place on the db data. Add/Search are
OK, I think Modify needs to be tweaked. Don't use this yet unless you want
to help finish it.

23 years agofix typo (ITS#1397)
Pierangelo Masarati [Fri, 19 Oct 2001 08:09:03 +0000 (08:09 +0000)]
fix typo (ITS#1397)

23 years agoskeleton of ldap_str2nd/dn2str; works with most of the simple cases, but there's...
Pierangelo Masarati [Thu, 18 Oct 2001 19:00:07 +0000 (19:00 +0000)]
skeleton of ldap_str2nd/dn2str; works with most of the simple cases, but there's much to do with unicode, I think

23 years agoMinor update
Kurt Zeilenga [Tue, 16 Oct 2001 01:16:39 +0000 (01:16 +0000)]
Minor update

23 years agoMinor updates
Kurt Zeilenga [Tue, 16 Oct 2001 01:16:08 +0000 (01:16 +0000)]
Minor updates

23 years agopaged results is informational
Kurt Zeilenga [Tue, 16 Oct 2001 01:15:52 +0000 (01:15 +0000)]
paged results is informational

23 years agoBDB updates... haven't had a chance to work on this for a while,
Kurt Zeilenga [Sat, 13 Oct 2001 16:55:54 +0000 (16:55 +0000)]
BDB updates...  haven't had a chance to work on this for a while,
committin what I have so that someone else might be able to work it.

23 years agoMove saucer to the Attic. Has not been updated to support LDAPv3.
Kurt Zeilenga [Sat, 13 Oct 2001 01:25:09 +0000 (01:25 +0000)]
Move saucer to the Attic.  Has not been updated to support LDAPv3.

23 years agodb_strerror not available in bdb2
Kurt Zeilenga [Sat, 13 Oct 2001 00:24:40 +0000 (00:24 +0000)]
db_strerror not available in bdb2

23 years agoSerialize access to idl insert/delete key routines (ITS 1359)
Mark Adamson [Thu, 11 Oct 2001 18:12:53 +0000 (18:12 +0000)]
Serialize access to idl insert/delete key routines (ITS 1359)

23 years agoUpdate utils
Kurt Zeilenga [Thu, 11 Oct 2001 04:01:45 +0000 (04:01 +0000)]
Update utils

23 years agoSection 3 man pages for ldap_parse_result(),
Stig Venaas [Wed, 10 Oct 2001 23:05:43 +0000 (23:05 +0000)]
Section 3 man pages for ldap_parse_result(),
ldap_parse_sasl_bind_result() and ldap_parse_extended_result()

23 years agoCheck for no OID.
Kurt Zeilenga [Wed, 10 Oct 2001 18:15:30 +0000 (18:15 +0000)]
Check for no OID.

23 years agoRework set_malloc/set_alloc calls
Kurt Zeilenga [Tue, 9 Oct 2001 19:54:38 +0000 (19:54 +0000)]
Rework set_malloc/set_alloc calls

23 years agoDelete attribute indices
Kurt Zeilenga [Tue, 9 Oct 2001 19:41:48 +0000 (19:41 +0000)]
Delete attribute indices

23 years agoUse non-critical ManageDsaIT control.
Kurt Zeilenga [Tue, 9 Oct 2001 18:53:22 +0000 (18:53 +0000)]
Use non-critical ManageDsaIT control.

23 years agofixes ITS #1379; the replication test has been improved by adding modrdn entries
Pierangelo Masarati [Tue, 9 Oct 2001 18:12:22 +0000 (18:12 +0000)]
fixes ITS #1379; the replication test has been improved by adding modrdn entries

23 years agothere's a bug in the test, because the 'multilinedescription' attribute is not define...
Pierangelo Masarati [Tue, 9 Oct 2001 18:11:05 +0000 (18:11 +0000)]
there's a bug in the test, because the 'multilinedescription' attribute is not defined anywhere; I trimmed it and added modrdn tests as well

23 years agoavoid warning
Pierangelo Masarati [Mon, 8 Oct 2001 10:18:34 +0000 (10:18 +0000)]
avoid warning

23 years agoFix ntohs/htons issues
Kurt Zeilenga [Sun, 7 Oct 2001 02:40:16 +0000 (02:40 +0000)]
Fix ntohs/htons issues

23 years agoUpdates for MIT KerberosV 1.1 based upon suggestions
Kurt Zeilenga [Sat, 6 Oct 2001 02:24:51 +0000 (02:24 +0000)]
Updates for MIT KerberosV 1.1 based upon suggestions
from Booker C. Bense <bbense@stanford.edu>.

23 years agoFix some NEW_LOGGING errors
Kurt Zeilenga [Fri, 5 Oct 2001 21:49:04 +0000 (21:49 +0000)]
Fix some NEW_LOGGING errors

23 years agoUpdate LDBM_LIB
Kurt Zeilenga [Fri, 5 Oct 2001 20:58:29 +0000 (20:58 +0000)]
Update LDBM_LIB

23 years agoBDB_INDEX code does no harm (but no good yet, not used by filters yet).
Kurt Zeilenga [Fri, 5 Oct 2001 20:12:16 +0000 (20:12 +0000)]
BDB_INDEX code does no harm (but no good yet, not used by filters yet).

23 years agoNote that slapadd produces LDIF in database order not
Kurt Zeilenga [Fri, 5 Oct 2001 19:48:59 +0000 (19:48 +0000)]
Note that slapadd produces LDIF in database order not
superior first order.  Make note that slapcat doesn't
check for superiors.

23 years agoDon't assume e_id is a long.
Kurt Zeilenga [Fri, 5 Oct 2001 18:38:25 +0000 (18:38 +0000)]
Don't assume e_id is a long.

23 years agoAnother round. BDB_INDEX almost ready for functional testing.
Kurt Zeilenga [Fri, 5 Oct 2001 17:00:21 +0000 (17:00 +0000)]
Another round.  BDB_INDEX almost ready for functional testing.

23 years agoMinor updates
Kurt Zeilenga [Fri, 5 Oct 2001 02:01:37 +0000 (02:01 +0000)]
Minor updates

23 years agoReturn unwillingToPerform instead of noSuchObject for subschema subentry
Kurt Zeilenga [Fri, 5 Oct 2001 01:55:14 +0000 (01:55 +0000)]
Return unwillingToPerform instead of noSuchObject for subschema subentry

23 years agoInitial idl fetch code, undef BDB_INDEX for now, other cleanup
Kurt Zeilenga [Fri, 5 Oct 2001 01:19:58 +0000 (01:19 +0000)]
Initial idl fetch code, undef BDB_INDEX for now, other cleanup

23 years agoAdd some initial BDB_INDEX code... needs much work.
Kurt Zeilenga [Thu, 4 Oct 2001 22:29:34 +0000 (22:29 +0000)]
Add some initial BDB_INDEX code... needs much work.

23 years agoAdded the easy part of NLS support, behind an #ifdef.
Kurt Zeilenga [Thu, 4 Oct 2001 18:06:08 +0000 (18:06 +0000)]
Added the easy part of NLS support, behind an #ifdef.

23 years agorebuild after ando fix typo
Kurt Zeilenga [Thu, 4 Oct 2001 15:34:26 +0000 (15:34 +0000)]
rebuild after ando fix typo

23 years agofix typo; need to rebuild configure
Pierangelo Masarati [Thu, 4 Oct 2001 15:28:01 +0000 (15:28 +0000)]
fix typo; need to rebuild configure

23 years agoMore changes to let BDB build without LDBM.
Kurt Zeilenga [Thu, 4 Oct 2001 06:34:03 +0000 (06:34 +0000)]
More changes to let BDB build without LDBM.

23 years agoHack to allow --enable-bdb --disable-ldbm, needs more work.
Kurt Zeilenga [Thu, 4 Oct 2001 04:54:12 +0000 (04:54 +0000)]
Hack to allow --enable-bdb --disable-ldbm, needs more work.

23 years agoMove set_alloc to env.
Kurt Zeilenga [Thu, 4 Oct 2001 03:36:48 +0000 (03:36 +0000)]
Move set_alloc to env.

23 years agoAdd prelim index code from LDBM, needs work...
Kurt Zeilenga [Thu, 4 Oct 2001 02:55:09 +0000 (02:55 +0000)]
Add prelim index code from LDBM, needs work...

23 years agoAdd BDB_INDEX error handling
Kurt Zeilenga [Wed, 3 Oct 2001 23:49:38 +0000 (23:49 +0000)]
Add BDB_INDEX error handling

23 years agoAdd error handling to BDB_INDEX code
Kurt Zeilenga [Wed, 3 Oct 2001 23:39:29 +0000 (23:39 +0000)]
Add error handling to BDB_INDEX code

23 years agoAn incremental step.
Kurt Zeilenga [Wed, 3 Oct 2001 23:28:20 +0000 (23:28 +0000)]
An incremental step.

23 years agoAdd BDB index directives
Kurt Zeilenga [Wed, 3 Oct 2001 21:27:37 +0000 (21:27 +0000)]
Add BDB index directives

23 years agoAdd BDB index config code
Kurt Zeilenga [Wed, 3 Oct 2001 21:11:52 +0000 (21:11 +0000)]
Add BDB index config code

23 years agoReplace #if 0 with #if MACRO
Kurt Zeilenga [Wed, 3 Oct 2001 20:34:00 +0000 (20:34 +0000)]
Replace #if 0 with #if MACRO

23 years agoEnable management of attribute indices. Not yet used by test_filter.
Kurt Zeilenga [Wed, 3 Oct 2001 20:20:29 +0000 (20:20 +0000)]
Enable management of attribute indices.  Not yet used by test_filter.

23 years agosubschemaSubentry attributes could be leaked under some conditions,
Kurt Zeilenga [Wed, 3 Oct 2001 18:19:07 +0000 (18:19 +0000)]
subschemaSubentry attributes could be leaked under some conditions,
plug them.

23 years agouse slap_str2undef_ad for unknown attributes
Pierangelo Masarati [Wed, 3 Oct 2001 18:17:08 +0000 (18:17 +0000)]
use slap_str2undef_ad for unknown attributes

23 years agocandidate check using new macro from Kurt
Pierangelo Masarati [Tue, 2 Oct 2001 19:15:05 +0000 (19:15 +0000)]
candidate check using new macro from Kurt

23 years agoAdd BDB_IDL_N() macro for ando
Kurt Zeilenga [Tue, 2 Oct 2001 19:04:12 +0000 (19:04 +0000)]
Add BDB_IDL_N() macro for ando

23 years agoforward porting of time/size limits from back-ldbm (pending the definition of the...
Pierangelo Masarati [Tue, 2 Oct 2001 12:00:01 +0000 (12:00 +0000)]
forward porting of time/size limits from back-ldbm (pending the definition of the most appropriate way to determine the number of candidates)

23 years agoforward porting of empty parent dn checks from back-ldbm
Pierangelo Masarati [Tue, 2 Oct 2001 10:44:14 +0000 (10:44 +0000)]
forward porting of empty parent dn checks from back-ldbm

23 years agoforward porting of composite rdn handling from back-ldbm
Pierangelo Masarati [Tue, 2 Oct 2001 10:39:04 +0000 (10:39 +0000)]
forward porting of composite rdn handling from back-ldbm

23 years agofix memory leak in case of ACL failure (no write permission to rdn attributes)
Pierangelo Masarati [Tue, 2 Oct 2001 10:36:35 +0000 (10:36 +0000)]
fix memory leak in case of ACL failure (no write permission to rdn attributes)

23 years agoTru64 diff does support "diff foo /dev/null",
Kurt Zeilenga [Tue, 2 Oct 2001 08:27:18 +0000 (08:27 +0000)]
Tru64 diff does support "diff foo /dev/null",
replace with "diff foo - < /dev/null"

23 years agoImplement r/w locks for BerkeleyDB with DB_THREAD.
Kurt Zeilenga [Tue, 2 Oct 2001 04:13:47 +0000 (04:13 +0000)]
Implement r/w locks for BerkeleyDB with DB_THREAD.
Code basically ready for BerkeleyDB with DB_INIT_CDB, need detection.

23 years agoAdd tasks related to Cyrus SASLv2
Kurt Zeilenga [Tue, 2 Oct 2001 02:11:42 +0000 (02:11 +0000)]
Add tasks related to Cyrus SASLv2

23 years agoMore CLDAP tweaks, to differentiate between real LDAPv2 CLDAP and "other"
Howard Chu [Tue, 2 Oct 2001 01:02:23 +0000 (01:02 +0000)]
More CLDAP tweaks, to differentiate between real LDAPv2 CLDAP and "other"
LDAP/UDP messages. Slapd marks received CLDAP messages as LDAP_VERSION2.
The client library can generate CLDAP queries if -Protocol 2 is chosen,
otherwise not. LDAPv2 CLDAP cannot query the slapd rootDSE, gets no reply.

23 years agoAdd prototype for ldap_dn_normalize() routine (to be implemented)
Kurt Zeilenga [Tue, 2 Oct 2001 00:22:40 +0000 (00:22 +0000)]
Add prototype for ldap_dn_normalize() routine (to be implemented)

23 years agofix candidate selection based on scope
Pierangelo Masarati [Mon, 1 Oct 2001 22:12:23 +0000 (22:12 +0000)]
fix candidate selection based on scope

23 years agofix result bug; add hooks for error selection based on priority (now the last one...
Pierangelo Masarati [Mon, 1 Oct 2001 22:11:37 +0000 (22:11 +0000)]
fix result bug; add hooks for error selection based on priority (now the last one is selected)

23 years agofix various result returning bugs, mostly related to candidate selction that results...
Pierangelo Masarati [Mon, 1 Oct 2001 16:16:51 +0000 (16:16 +0000)]
fix various result returning bugs, mostly related to candidate selction that results in invalid candidates (bug detected by Markus Storm <Markus.Storm@mediaWays.net>)

23 years agoInit MPOOL in DB_THREAD test
Kurt Zeilenga [Mon, 1 Oct 2001 06:38:24 +0000 (06:38 +0000)]
Init MPOOL in DB_THREAD test

23 years agoRework DB_THREAD support. CDB support needs reimplementation.
Kurt Zeilenga [Mon, 1 Oct 2001 06:08:46 +0000 (06:08 +0000)]
Rework DB_THREAD support.  CDB support needs reimplementation.

23 years agoDisable (for now) check for HAVE_BERKELEY_DB_THREAD and hence disable
Kurt Zeilenga [Sat, 29 Sep 2001 23:41:34 +0000 (23:41 +0000)]
Disable (for now) check for HAVE_BERKELEY_DB_THREAD and hence disable
use of BerkeleyDB's Concurrent DB API.