Julio Sánchez Fernández
bf5ea315b6
Compares get values in the matching rule syntax (see RFC2251, 4.1.7),
...
so we need to tell value_find about this.
2001-10-23 09:48:18 +00:00
Julio Sánchez Fernández
cb98a604fb
Replacement for value_find and compatibility macro.
...
Now we will be able to fix compares.
2001-10-23 09:43:20 +00:00
Julio Sánchez Fernández
de353ebeda
Normalization and more error checking.
2001-10-23 09:05:04 +00:00
Julio Sánchez Fernández
dd34307cf7
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.
2001-10-22 20:07:06 +00:00
Julio Sánchez Fernández
5f6d5494dd
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.
2001-10-22 20:03:30 +00:00
Julio Sánchez Fernández
5dbf4bddae
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).
2001-10-22 19:57:23 +00:00
Julio Sánchez Fernández
be89c094f6
Do something with the error text.
2001-10-22 19:55:21 +00:00
Pierangelo Masarati
5b4b535617
handle lead/trail escape chars in LDAPv2/LDAPv3; change misleading name of AVA type modifier
2001-10-22 19:23:37 +00:00
Howard Chu
0185b79559
Don't free entries since the tools realloc the buffers.
2001-10-22 15:58:44 +00:00
Howard Chu
11d884b8cf
Fix some uninitialized variables
2001-10-22 15:57:58 +00:00
Howard Chu
c108e66222
Fix entry_encode; must save the given e->e_dn without modification.
2001-10-22 15:01:35 +00:00
Howard Chu
c981026a6c
Missed a test in AttributeDescription commit
2001-10-22 14:55:42 +00:00
Howard Chu
c05de965b5
Moved binary entry_encode/entry_decode into main code. Removed lber version.
2001-10-22 14:07:42 +00:00
Howard Chu
0e16f6acf9
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.
2001-10-22 13:23:05 +00:00
Pierangelo Masarati
666f201c14
more elegant use of realloc; still needs cleanup in case of error
2001-10-22 10:24:32 +00:00
Pierangelo Masarati
03a97678ea
use AC_MEMCPY instead of str[n]cpy
2001-10-22 09:39:02 +00:00
Julio Sánchez Fernández
7581e304c0
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.
2001-10-22 06:54:30 +00:00
Kurt Zeilenga
4573656d61
Add HAVE_USLEEP for slapd/daemon busy loop protection
2001-10-21 00:48:55 +00:00
Kurt Zeilenga
17264d1ad4
Experiment with busy loop protection...
2001-10-21 00:48:14 +00:00
Kurt Zeilenga
125165ff97
Add check for __res_query in default libraries
2001-10-21 00:32:47 +00:00
Julio Sánchez Fernández
7e1c4f272d
Use the ldap syntax oid assigned by David Chadwick (no yet published).
2001-10-20 17:31:52 +00:00
Pierangelo Masarati
99e7ffe034
listen on any device
2001-10-20 17:19:56 +00:00
Pierangelo Masarati
97e8a2a9da
fixes ITS#1398
2001-10-20 15:49:05 +00:00
Julio Sánchez Fernández
4d0ab0215b
First cut at certificateExactMatch, completely untested and without
...
indexing.
2001-10-20 10:15:09 +00:00
Howard Chu
ce6243f009
Patches for modify/modrdn to work with BDB_USE_BINARY_RW.
2001-10-19 20:28:48 +00:00
Howard Chu
98d6a4f2bf
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.
2001-10-19 11:53:15 +00:00
Pierangelo Masarati
578c2b65ea
fix typo (ITS#1397)
2001-10-19 08:09:03 +00:00
Pierangelo Masarati
fefc29786c
skeleton of ldap_str2nd/dn2str; works with most of the simple cases, but there's much to do with unicode, I think
2001-10-18 19:00:07 +00:00
Kurt Zeilenga
850d8eba67
Minor update
2001-10-16 01:16:39 +00:00
Kurt Zeilenga
6469f75c26
Minor updates
2001-10-16 01:16:08 +00:00
Kurt Zeilenga
0e58c9ee20
paged results is informational
2001-10-16 01:15:52 +00:00
Kurt Zeilenga
d6730e5f50
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.
2001-10-13 16:55:54 +00:00
Kurt Zeilenga
5e7336fcf1
Move saucer to the Attic. Has not been updated to support LDAPv3.
2001-10-13 01:25:09 +00:00
Kurt Zeilenga
9b35077ede
db_strerror not available in bdb2
2001-10-13 00:24:40 +00:00
Mark Adamson
290137a54f
Serialize access to idl insert/delete key routines (ITS 1359)
2001-10-11 18:12:53 +00:00
Kurt Zeilenga
0229b76570
Update utils
2001-10-11 04:01:45 +00:00
Stig Venaas
4d4ed13f17
Section 3 man pages for ldap_parse_result(),
...
ldap_parse_sasl_bind_result() and ldap_parse_extended_result()
2001-10-10 23:05:43 +00:00
Kurt Zeilenga
01bdb4650e
Check for no OID.
2001-10-10 18:15:30 +00:00
Kurt Zeilenga
b9a5fb52e0
Rework set_malloc/set_alloc calls
2001-10-09 19:54:38 +00:00
Kurt Zeilenga
b6a3dad8f0
Delete attribute indices
2001-10-09 19:41:48 +00:00
Kurt Zeilenga
cdc7c44d80
Use non-critical ManageDsaIT control.
2001-10-09 18:53:22 +00:00
Pierangelo Masarati
069155f667
fixes ITS #1379 ; the replication test has been improved by adding modrdn entries
2001-10-09 18:12:22 +00:00
Pierangelo Masarati
7f79cd0047
there's a bug in the test, because the 'multilinedescription' attribute is not defined anywhere; I trimmed it and added modrdn tests as well
2001-10-09 18:11:05 +00:00
Pierangelo Masarati
6007789c14
avoid warning
2001-10-08 10:18:34 +00:00
Kurt Zeilenga
e2cca72bdc
Fix ntohs/htons issues
2001-10-07 02:40:16 +00:00
Kurt Zeilenga
2cef1e69b7
Updates for MIT KerberosV 1.1 based upon suggestions
...
from Booker C. Bense <bbense@stanford.edu>.
2001-10-06 02:24:51 +00:00
Kurt Zeilenga
fdc0dd7d6a
Fix some NEW_LOGGING errors
2001-10-05 21:49:04 +00:00
Kurt Zeilenga
fd5b806fc0
Update LDBM_LIB
2001-10-05 20:58:29 +00:00
Kurt Zeilenga
78adfde54e
BDB_INDEX code does no harm (but no good yet, not used by filters yet).
2001-10-05 20:12:16 +00:00
Kurt Zeilenga
492eb4b65b
Note that slapadd produces LDIF in database order not
...
superior first order. Make note that slapcat doesn't
check for superiors.
2001-10-05 19:48:59 +00:00