Howard Chu
f2f6c516ab
DB_NODUPDATA is not a valid open flag
2002-01-17 09:48:44 +00:00
Kurt Zeilenga
929abbc97f
Run the lock detector
2002-01-17 05:36:47 +00:00
Kurt Zeilenga
3ad2bd3f56
Add a third entry...
2002-01-17 05:08:26 +00:00
Kurt Zeilenga
dedc813a7e
Add section add.
2002-01-17 04:43:39 +00:00
Kurt Zeilenga
492762f1c5
Don't use BDB group/attribute callbacks as they may cause deadlock.
...
Add code to bdb_attribute and bdb_group where use TXN id and to
provide error, but need to rework callers (and their callers) to
ensure error is properly bubbled up to the backend operation routine
handling the transaction. Ugh.
2002-01-17 03:58:52 +00:00
Kurt Zeilenga
32b955cfc5
replace strcasechr with bvcasechr
2002-01-17 00:18:57 +00:00
Kurt Zeilenga
1b6811d759
Reverse ber_strccmp assertion order to avoid ""[1] problems
2002-01-16 19:31:25 +00:00
Pierangelo Masarati
52b05a5b06
more ber_*cmp optimizations
2002-01-16 19:18:41 +00:00
Kurt Zeilenga
b48c355934
Fix up last commit
2002-01-16 19:03:31 +00:00
Pierangelo Masarati
1092fcfed8
remark for future (questionable) optimization
2002-01-16 18:51:20 +00:00
Pierangelo Masarati
0842db2a8b
fix ber_*str renaming
2002-01-16 18:50:45 +00:00
Kurt Zeilenga
7f0289a390
Move most of the new ber_*cmp routines to lber_pvt.h to keep them private,
...
rework them slightly to avoid computations which might result in underflow.
Rename them for consistency with other berval routines.
Remove some utf8 lint.
2002-01-16 18:16:15 +00:00
Howard Chu
356a98a363
Fix bdb_idl_fetch/insert_key. Still fails test011.
2002-01-16 15:22:08 +00:00
Pierangelo Masarati
8f29c5e1e4
use dn_match
2002-01-16 12:15:27 +00:00
Pierangelo Masarati
3d9377f764
compare attribute type, not value
2002-01-16 12:06:42 +00:00
Pierangelo Masarati
af54eed042
added ber_[mem|case]cmp() macros for fast berval comparison; extensively used in acl and in dn_match macro at present
2002-01-16 11:36:47 +00:00
Pierangelo Masarati
5c1d9b4fce
fix assertion
2002-01-16 10:58:04 +00:00
Howard Chu
457b00bf0f
Fix idl_insert_key with USE_INDIRECT_NIDS, wasn't setting NIDS...
2002-01-16 09:58:11 +00:00
Pierangelo Masarati
6c5be3006d
don't auto-detect DCE form; assert the UTF-8 charlen is legal
2002-01-16 09:57:20 +00:00
Howard Chu
913c321a7e
Fix misplaced #if USE_INDIRECT_NIDS/cont_alloc in idl_delete_key
2002-01-16 07:39:00 +00:00
Kurt Zeilenga
21c8846e64
Fix last commit
2002-01-16 05:44:21 +00:00
Kurt Zeilenga
20af643fc4
more cleanup
2002-01-16 04:40:41 +00:00
Kurt Zeilenga
3bfab4699e
Remove last uses of dn_validate()
2002-01-16 03:01:19 +00:00
Kurt Zeilenga
d2f5d75885
Remove unused deprecated DN routines.
...
Only dn_validate, dn_normalize, and dn_parent remain (for now).
2002-01-16 00:16:51 +00:00
Kurt Zeilenga
e154da3a09
Remove some asserts. Need to re-valid logic
2002-01-15 19:54:21 +00:00
Kurt Zeilenga
94193358b4
Switch the default backend to BDB.
2002-01-15 17:26:44 +00:00
Kurt Zeilenga
beaf090bbb
remove lint
2002-01-15 17:18:18 +00:00
Kurt Zeilenga
5e6e27078c
Change replace ACL semantics from U-Mich historical behavior.
...
U-Mich allows someone with selfwrite to use replace all values
of an attribute with a value containing their DN. Which, of course,
could than be deleted. This behavior was carried forward in all
versions of OpenLDAP.
The new semantics separate checks for deleting all existing values
and adding new values. It is more logical and more inline with
the common use of selfwrite.
2002-01-15 16:23:11 +00:00
Howard Chu
40542984cd
Added some reference comments for ldap_utf8_charlen2
2002-01-15 09:01:44 +00:00
Howard Chu
e21e900392
Use LDAP_UTF8_CHARLEN2 to check shortest possible encoding
2002-01-15 08:27:19 +00:00
Howard Chu
2d51ad52b3
Added LDAP_UTF8_CHARLEN2() to validate shortest possible encoding
...
of UTF8 string. (Returns charlen if valid, 0 if not.)
2002-01-15 08:07:46 +00:00
Kurt Zeilenga
13af7fb073
Misc. cleanup, remove lint, remove unused deprecated functions, etc.
2002-01-15 07:29:15 +00:00
Kurt Zeilenga
5a378a5ce8
A very basic UTF-8 check
2002-01-15 04:38:05 +00:00
Howard Chu
19f3ba216f
Fix ldap_utf8_lentab to detect illegal two-byte sequences.
2002-01-15 03:31:37 +00:00
Kurt Zeilenga
7ac207dc05
rm noautosubtypes
2002-01-15 02:47:06 +00:00
Howard Chu
6981960be0
Deleted autosubtypes support.
2002-01-15 01:50:09 +00:00
Howard Chu
d70498f0f2
Revert previous commit again. autosubtypes are gone for good.
2002-01-15 01:49:53 +00:00
Howard Chu
fde56a188c
More fixes for autosubtype index generation
2002-01-14 20:49:06 +00:00
Howard Chu
f4cfb13f2c
Fix previous commit
2002-01-14 20:26:51 +00:00
Howard Chu
1180279104
Revert previous commit
2002-01-14 20:13:25 +00:00
Pierangelo Masarati
bde71e45f9
fix format
2002-01-14 19:48:09 +00:00
Pierangelo Masarati
36f6a1169a
make temporary RDN and AVA arrays rescalable if needed
2002-01-14 19:44:04 +00:00
Pierangelo Masarati
9d6ebd822e
fix typo
2002-01-14 19:42:59 +00:00
Pierangelo Masarati
2ee2e7a145
quick fix that in pretty mode escapes with hexpair the specials ',', '+' and '\'
2002-01-14 19:33:13 +00:00
Kurt Zeilenga
f89308915a
Add a default case with assert() just in case.
2002-01-14 17:25:13 +00:00
Kurt Zeilenga
9d307b4242
ITS#1530 no value replace ACL fix
2002-01-14 17:19:05 +00:00
Howard Chu
f91d5f484a
In DN_SUBTREE use idl_allids instead of explicit malloc.
2002-01-14 11:52:53 +00:00
Pierangelo Masarati
7887ef7e92
revert previous commit: do accept '\00'
2002-01-14 11:09:14 +00:00
Pierangelo Masarati
3a6676a082
accept '\<special>' anywhere in the string
2002-01-14 10:50:02 +00:00
Howard Chu
2e8a98e3a1
Fix subtype indexing. Really really made it the default.
2002-01-14 10:37:08 +00:00