]> git.sur5r.net Git - openldap/log
openldap
23 years agoChanged AttributeType.sat_cname from char * to struct berval.
Howard Chu [Fri, 16 Nov 2001 07:45:37 +0000 (07:45 +0000)]
Changed AttributeType.sat_cname from char * to struct berval.
(will fix up back-bdb next.)

23 years agoChanged global ad_mutex into per-attributeType mutex. Added
Howard Chu [Fri, 16 Nov 2001 07:39:14 +0000 (07:39 +0000)]
Changed global ad_mutex into per-attributeType mutex. Added
ad_find_lang() to search an AttributeType for a given language variant.
(Will be used in back-bdb/back-ldbm index code...)

23 years agoFixed some memory allocation/freeing bugs
Ralf Haferkamp [Wed, 14 Nov 2001 17:33:54 +0000 (17:33 +0000)]
Fixed some memory allocation/freeing bugs

23 years agohack to make '' base work; please check side-effects
Pierangelo Masarati [Wed, 14 Nov 2001 17:27:24 +0000 (17:27 +0000)]
hack to make '' base work; please check side-effects

23 years agofix a couple of misformats
Pierangelo Masarati [Wed, 14 Nov 2001 16:17:30 +0000 (16:17 +0000)]
fix a couple of misformats

23 years agonon-root add/delete of entries rooted at '' checks children write permission (forward...
Pierangelo Masarati [Wed, 14 Nov 2001 16:09:33 +0000 (16:09 +0000)]
non-root add/delete of entries rooted at '' checks children write permission (forward port from back-ldbm)

23 years agonon-root add/delete of entries rooted at '' checks children write permission
Pierangelo Masarati [Wed, 14 Nov 2001 16:08:59 +0000 (16:08 +0000)]
non-root add/delete of entries rooted at '' checks children write permission

23 years agoRemove slap_get_time optimization.
Kurt Zeilenga [Tue, 13 Nov 2001 20:31:00 +0000 (20:31 +0000)]
Remove slap_get_time optimization.
timelimit must be checked on first entry.

23 years agoPort ITS#1430 changes from ldbm
Kurt Zeilenga [Tue, 13 Nov 2001 19:45:47 +0000 (19:45 +0000)]
Port ITS#1430 changes from ldbm

23 years agorm currenttime_mutex.
Kurt Zeilenga [Tue, 13 Nov 2001 18:16:07 +0000 (18:16 +0000)]
rm currenttime_mutex.
trival other cleanup.

23 years agooptimize number of calls to slap_get_time()
Mark Adamson [Tue, 13 Nov 2001 01:38:30 +0000 (01:38 +0000)]
optimize number of calls to slap_get_time()

23 years agoFix - put group cache search after backend has been selected
Howard Chu [Mon, 12 Nov 2001 21:39:55 +0000 (21:39 +0000)]
Fix - put group cache search after backend has been selected

23 years agoAdded bdb_attribute and bdb_group ACL support routines
Howard Chu [Mon, 12 Nov 2001 20:52:25 +0000 (20:52 +0000)]
Added bdb_attribute and bdb_group ACL support routines

23 years agoFix missing case
Howard Chu [Mon, 12 Nov 2001 20:28:23 +0000 (20:28 +0000)]
Fix missing case

23 years agoAdded backend_group result caching.
Howard Chu [Mon, 12 Nov 2001 19:37:48 +0000 (19:37 +0000)]
Added backend_group result caching.

23 years agoAdded backend_group result caching.
Howard Chu [Mon, 12 Nov 2001 19:25:41 +0000 (19:25 +0000)]
Added backend_group result caching.

23 years agoFixes first part of ITS#1430
Pierangelo Masarati [Mon, 12 Nov 2001 17:32:52 +0000 (17:32 +0000)]
Fixes first part of ITS#1430

23 years agoFixes second part of ITS#1430
Pierangelo Masarati [Mon, 12 Nov 2001 17:27:01 +0000 (17:27 +0000)]
Fixes second part of ITS#1430

23 years agoFixes ITS#1433
Pierangelo Masarati [Mon, 12 Nov 2001 17:12:43 +0000 (17:12 +0000)]
Fixes ITS#1433

23 years agotrims space after comma in dn.regex acls (prelude to normalization)
Pierangelo Masarati [Mon, 12 Nov 2001 11:29:40 +0000 (11:29 +0000)]
trims space after comma in dn.regex acls (prelude to normalization)

23 years agofix bug in previous commit
Pierangelo Masarati [Mon, 12 Nov 2001 08:47:09 +0000 (08:47 +0000)]
fix bug in previous commit

23 years agostruct berval * instead of char * in ldap_ava struct; minor cleanup
Pierangelo Masarati [Mon, 12 Nov 2001 08:10:12 +0000 (08:10 +0000)]
struct berval * instead of char * in ldap_ava struct; minor cleanup

23 years agoalready have the strlen of the attrname in the berval->bv_len
Mark Adamson [Mon, 12 Nov 2001 03:15:40 +0000 (03:15 +0000)]
already have the strlen of the attrname in the berval->bv_len

23 years agoFixes memory leaks in do_compare()
Stig Venaas [Sat, 10 Nov 2001 23:34:03 +0000 (23:34 +0000)]
Fixes memory leaks in do_compare()

23 years agotypo in declaration of function.
Mark Adamson [Fri, 9 Nov 2001 19:22:03 +0000 (19:22 +0000)]
typo in declaration of function.

23 years agouse berval's instead of strings with UTF8normalize()
Mark Adamson [Fri, 9 Nov 2001 19:01:23 +0000 (19:01 +0000)]
use berval's instead of strings with UTF8normalize()

23 years agoCompile error if Cyrus Sasl is not present. Put ifdefs in
Steve Sonntag [Thu, 8 Nov 2001 20:08:36 +0000 (20:08 +0000)]
Compile error if Cyrus Sasl is not present.  Put ifdefs in
unbind call around free of sasl data.

23 years agoRemove lint
Kurt Zeilenga [Wed, 7 Nov 2001 01:24:32 +0000 (01:24 +0000)]
Remove lint

23 years agoAdded schema_destroy() et al to free schema structures on shutdown
Howard Chu [Wed, 7 Nov 2001 01:03:49 +0000 (01:03 +0000)]
Added schema_destroy() et al to free schema structures on shutdown

23 years agoFixed more memory leaks
Stig Venaas [Tue, 6 Nov 2001 22:36:28 +0000 (22:36 +0000)]
Fixed more memory leaks

23 years agoAdded ldap_pvt_tls_destroy() to cleanup TLS library on shutdown
Howard Chu [Tue, 6 Nov 2001 20:52:59 +0000 (20:52 +0000)]
Added ldap_pvt_tls_destroy() to cleanup TLS library on shutdown

23 years agobervals alloc'd by UTF8SubstringsassertionNormalize() must be ber_bvfree'd
Mark Adamson [Tue, 6 Nov 2001 19:07:15 +0000 (19:07 +0000)]
bervals alloc'd by UTF8SubstringsassertionNormalize() must be ber_bvfree'd

23 years agoPlug leaks (ITS#1116)
Kurt Zeilenga [Tue, 6 Nov 2001 17:05:51 +0000 (17:05 +0000)]
Plug leaks (ITS#1116)
Patch provided by John Morrissey <jwm@horde.net>

23 years agofix various memory leaks
Mark Adamson [Mon, 5 Nov 2001 23:14:42 +0000 (23:14 +0000)]
fix various memory leaks

23 years agoAdd dnsReferral to TO DO list
Kurt Zeilenga [Mon, 5 Nov 2001 17:57:09 +0000 (17:57 +0000)]
Add dnsReferral to TO DO list

23 years agoDon't use indices to support not [!] filters.
Kurt Zeilenga [Mon, 5 Nov 2001 17:25:44 +0000 (17:25 +0000)]
Don't use indices to support not [!] filters.
Use pres indices to support LE/GE [<=,>=] filters.

23 years agocleanup
Pierangelo Masarati [Mon, 5 Nov 2001 08:52:01 +0000 (08:52 +0000)]
cleanup

23 years agosame typo in more data files (was it intended ? :)
Pierangelo Masarati [Mon, 5 Nov 2001 08:51:29 +0000 (08:51 +0000)]
same typo in more data files (was it intended ? :)

23 years agotypo in data (already fixed in test-ordered.ldif)
Pierangelo Masarati [Mon, 5 Nov 2001 08:28:26 +0000 (08:28 +0000)]
typo in data (already fixed in test-ordered.ldif)

23 years agoFix for dbnosync - DB_TXN_NOSYNC is not a valid flag for dbenv_open,
Howard Chu [Mon, 5 Nov 2001 07:01:12 +0000 (07:01 +0000)]
Fix for dbnosync - DB_TXN_NOSYNC is not a valid flag for dbenv_open,
must be set later using dbenv_set_flags.

23 years agoPorted referral patches from back-ldbm. I believe search.c still needs
Howard Chu [Mon, 5 Nov 2001 06:24:11 +0000 (06:24 +0000)]
Ported referral patches from back-ldbm. I believe search.c still needs
the patch from ITS#1289 to be ported here.

23 years agoFix typo in last commit
Kurt Zeilenga [Sun, 4 Nov 2001 17:50:16 +0000 (17:50 +0000)]
Fix typo in last commit

23 years agoFix realloc bug (ITS#1410)
Kurt Zeilenga [Sat, 3 Nov 2001 22:07:41 +0000 (22:07 +0000)]
Fix realloc bug (ITS#1410)

23 years agotelex number should allow $
Kurt Zeilenga [Sat, 3 Nov 2001 22:03:20 +0000 (22:03 +0000)]
telex number should allow $

23 years agoFix uninitialized pointer bug.
Kurt Zeilenga [Sat, 3 Nov 2001 22:02:57 +0000 (22:02 +0000)]
Fix uninitialized pointer bug.

23 years agoSome minor adjustments
Kurt Zeilenga [Sat, 3 Nov 2001 21:53:44 +0000 (21:53 +0000)]
Some minor adjustments

23 years agoRemove derived file
Kurt Zeilenga [Sat, 3 Nov 2001 19:07:05 +0000 (19:07 +0000)]
Remove derived file

23 years agoaccess control man page
Pierangelo Masarati [Sat, 3 Nov 2001 18:03:10 +0000 (18:03 +0000)]
access control man page

23 years agomore meaningful subtree replication test
Pierangelo Masarati [Sat, 3 Nov 2001 16:59:06 +0000 (16:59 +0000)]
more meaningful subtree replication test

23 years agoSubtree replication test
Pierangelo Masarati [Fri, 2 Nov 2001 15:39:43 +0000 (15:39 +0000)]
Subtree replication test

23 years agowrong length in statement selection (not critical); some cleanup (sizeof()-1 instead...
Pierangelo Masarati [Thu, 1 Nov 2001 18:57:21 +0000 (18:57 +0000)]
wrong length in statement selection (not critical); some cleanup (sizeof()-1 instead of strlen on constant strings)

23 years agoremove remaining C++ style comments
Pierangelo Masarati [Wed, 31 Oct 2001 09:28:03 +0000 (09:28 +0000)]
remove remaining C++ style comments

23 years agomoved rdn parsing in a dedicated routine, ldap_str2rdn(), that can be used directly...
Pierangelo Masarati [Tue, 30 Oct 2001 10:04:24 +0000 (10:04 +0000)]
moved rdn parsing in a dedicated routine, ldap_str2rdn(), that can be used directly; now ldap_rdn2str() handles all the formats

23 years agofixes assertion fault when the <to> clauses's argument does not have a = inside
Pierangelo Masarati [Mon, 29 Oct 2001 08:14:12 +0000 (08:14 +0000)]
fixes assertion fault when the <to> clauses's argument does not have a = inside

23 years agoMore compliant version of str2dn/dn2str;
Pierangelo Masarati [Mon, 29 Oct 2001 08:05:23 +0000 (08:05 +0000)]
More compliant version of str2dn/dn2str;
may need optimization;
uncomment #define USE_LDAP_DN_PARSING in libraries/libldap/getdn.c
to enable its use.
The ava/rdn/dn handling routines (append, insert, free and so) must
be made available thru declaration in some header.

23 years agoMisc updates
Kurt Zeilenga [Sat, 27 Oct 2001 18:20:52 +0000 (18:20 +0000)]
Misc updates

23 years agoOnly build/install tools and ud by default
Kurt Zeilenga [Sat, 27 Oct 2001 18:14:22 +0000 (18:14 +0000)]
Only build/install tools and ud by default

23 years agoenhanced dn parsing; see libraries/libldap/dntest for a 'demo'. Need to define USE_LD...
Pierangelo Masarati [Fri, 26 Oct 2001 18:10:05 +0000 (18:10 +0000)]
enhanced dn parsing; see libraries/libldap/dntest for a 'demo'. Need to define USE_LDAP_DN_PARSING to override usual ldap_dn2ufn and so, and PARSE_UTF8 to parse attribute values as utf-8

23 years agodraft 04
Kurt Zeilenga [Fri, 26 Oct 2001 02:10:30 +0000 (02:10 +0000)]
draft 04

23 years agoFirst stable an implementing latest namedref specification.
Kurt Zeilenga [Fri, 26 Oct 2001 02:05:14 +0000 (02:05 +0000)]
First stable an implementing latest namedref specification.
Includes rewriting of URLs where the DN of the referral object
and the DN of the ref attribute attribute are not the same.
Also, always returns explicit DN and scope.
Currently, back-ldbm only.  Needs to be ported to back-bdb.

23 years agoAdd nul termination
Kurt Zeilenga [Fri, 26 Oct 2001 02:01:42 +0000 (02:01 +0000)]
Add nul termination

23 years agomissing leading quote
Pierangelo Masarati [Thu, 25 Oct 2001 18:56:06 +0000 (18:56 +0000)]
missing leading quote

23 years agoDon't pass NULL string pointers to Debug
Kurt Zeilenga [Thu, 25 Oct 2001 18:32:59 +0000 (18:32 +0000)]
Don't pass NULL string pointers to Debug

23 years agoFixes ITS#1385
Pierangelo Masarati [Thu, 25 Oct 2001 15:15:34 +0000 (15:15 +0000)]
Fixes ITS#1385

23 years agoRoot DSE and subschema subentry compare.
Kurt Zeilenga [Thu, 25 Oct 2001 06:18:11 +0000 (06:18 +0000)]
Root DSE and subschema subentry compare.
Developed by Steve Omrani/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 agoUse allids instead of candidiate negation for !. (ITS#1405)
Kurt Zeilenga [Wed, 24 Oct 2001 21:26:32 +0000 (21:26 +0000)]
Use allids instead of candidiate negation for !. (ITS#1405)
Use presence indices in support of >= and <=.
(Note presence indices could be used to support = and substr in
like fashion where eq and substr indices are not maintained, but
I'll save that for another day.)

23 years agoAdd openldap notice.
Kurt Zeilenga [Wed, 24 Oct 2001 20:18:26 +0000 (20:18 +0000)]
Add openldap notice.

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