Kurt Zeilenga
e25f6ef0cd
Add a safety check to bvcasechr
2002-01-17 17:19:20 +00:00
Pierangelo Masarati
1ea0d20e82
publish dnParent()
2002-01-17 17:04:11 +00:00
Howard Chu
5c2bc277b8
In db_destroy, cannot checkpoint a NULL dbenv.
2002-01-17 10:05:04 +00:00
Howard Chu
f2f6c516ab
DB_NODUPDATA is not a valid open flag
2002-01-17 09:48:44 +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
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
Howard Chu
457b00bf0f
Fix idl_insert_key with USE_INDIRECT_NIDS, wasn't setting NIDS...
2002-01-16 09:58:11 +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
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
e21e900392
Use LDAP_UTF8_CHARLEN2 to check shortest possible encoding
2002-01-15 08:27:19 +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
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
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
Howard Chu
2e8a98e3a1
Fix subtype indexing. Really really made it the default.
2002-01-14 10:37:08 +00:00
Howard Chu
ac1332cdb8
Renamed BVarray to BerVarray. Moved slapd:bvarray_{add,free} to
...
liblber:ber_bvarray_{add,free}.
2002-01-14 01:43:17 +00:00
Howard Chu
92481f7057
Modify performance patch from Gertjan van Wingerde <gwingerde@home.nl>
2002-01-13 23:23:23 +00:00
Howard Chu
ec8fc19566
Modify performance patch from Gertjan van Wingerde <gwingerde@home.nl>
...
with minor adjustments.
2002-01-13 23:21:03 +00:00
Howard Chu
8b969479f4
Turn on BDB_IDL_MULTI by default
2002-01-13 22:26:29 +00:00
Howard Chu
22120f4930
Turn on USE_INDIRECT_NIDS by default
2002-01-13 22:25:51 +00:00
Kurt Zeilenga
de6700d3b1
Really fix previous commit
2002-01-13 20:30:17 +00:00
Kurt Zeilenga
7826020e97
Fix compile error
2002-01-13 20:19:40 +00:00
Kurt Zeilenga
ff23cd0f7f
Clean up last patch
2002-01-13 20:06:53 +00:00
Kurt Zeilenga
64619bed94
Install system schema checks
2002-01-13 19:38:12 +00:00
Kurt Zeilenga
9a3dcc376c
Zap connection_internal_*
2002-01-13 18:05:16 +00:00
Howard Chu
d0724c769e
Fix mutex leak in previous commit
2002-01-13 17:17:29 +00:00
Howard Chu
f20991dea7
Changed to use search callbacks instead of connection_internal_open
2002-01-13 17:12:43 +00:00
Howard Chu
af862f8c6b
Reworked callback layout, added send_search_entry callback
2002-01-13 16:40:37 +00:00
Kurt Zeilenga
ce2d8ebc7e
Misc cleanup, lint removal, and minor optimizations
2002-01-13 05:00:59 +00:00
Pierangelo Masarati
fafce1601e
consistently use dn_match macro throughout slapd
2002-01-12 18:17:13 +00:00
Kurt Zeilenga
bcf37b4463
Fix SASL leak and clobber bug
...
Fix TLS critical rev logic bug
Suggested fixes reported by Roman.Kagan@itep.ru
2002-01-12 17:46:27 +00:00
Pierangelo Masarati
3bddc61a2a
clarify macro name: dn_match = 1 if match, 0 otherwise
2002-01-12 17:42:44 +00:00
Pierangelo Masarati
e89d7b1280
some memory handling cleanup: check that memory is freed by who allocated it, or at least put a FIXME where not
2002-01-12 17:35:01 +00:00
Pierangelo Masarati
39a652d2de
cleanup and better dn handling
2002-01-12 16:04:15 +00:00
Pierangelo Masarati
725e13dade
slap_strncopy function
2002-01-12 16:02:51 +00:00
Pierangelo Masarati
f8fb4aca76
error message from be_entry_put tool backend function
2002-01-12 16:00:51 +00:00
Pierangelo Masarati
ea86a19460
monitor objectclass definition
2002-01-12 11:36:23 +00:00
Kurt Zeilenga
7e9c78fbc6
Add ITS#1508 fix to allow ACIs to grant anonymous users access.
2002-01-11 23:48:22 +00:00
Kurt Zeilenga
d30ab4c113
Additional system schema checks
2002-01-11 20:47:24 +00:00
Kurt Zeilenga
2d09d18de5
Add collective attribute system schema support.
2002-01-11 20:28:05 +00:00
Kurt Zeilenga
70d6f39459
More system schema checks
2002-01-11 19:11:46 +00:00
Kurt Zeilenga
19f2925ab1
Add some basic system schema checks.
2002-01-11 18:56:01 +00:00
Kurt Zeilenga
f57057ee01
Add system schema flags to backends supporting system schema.
2002-01-11 18:26:17 +00:00
Kurt Zeilenga
f402762f9a
Remove lint.
2002-01-11 18:03:28 +00:00
Kurt Zeilenga
20dd3c1273
Add Backend to system schema check routines
2002-01-11 18:00:22 +00:00
Pierangelo Masarati
6c76b2c55d
of course this is required by listener monitor
2002-01-11 11:48:46 +00:00
Pierangelo Masarati
619f772459
listener monitor
2002-01-11 11:43:35 +00:00
Pierangelo Masarati
5dfbf93687
need this outside for back monitor ...
2002-01-11 10:46:58 +00:00
Pierangelo Masarati
75f1addd76
added structural objectclass; reworked obejctclasses to use 'monitor' and 'extensibleObject'; minor cleanup
2002-01-11 10:27:58 +00:00
Howard Chu
340d288db3
Fix loop in glue_tool_sync
2002-01-11 09:04:34 +00:00
Kurt Zeilenga
504404725a
Flip some bits in the backend flags mask
2002-01-11 02:31:47 +00:00
Kurt Zeilenga
c3b62aae91
Fix the bits
2002-01-10 22:54:24 +00:00
Jon Leichter
80a214aef0
Added a missing attribute: tokenGroupsGlobalAndUniversal. It exists
...
in Active Directory.
2002-01-10 22:38:17 +00:00
Kurt Zeilenga
55501e886f
Rework backend (lastmod + glue + system schema) flags
2002-01-10 22:34:11 +00:00
Howard Chu
f0cd9956ed
readahead is only needed on UDP, don't use it on TCP. (Save unneeded memcpy)
2002-01-10 22:00:17 +00:00
Howard Chu
54dae3d3d3
Fix str2anlist declaration, str is not const. (gets overwritten if
...
there is an error.)
2002-01-10 20:25:23 +00:00
Pierangelo Masarati
f757db004c
fix for backend-dependent schema check
2002-01-10 20:12:25 +00:00
Kurt Zeilenga
27a26905b7
Use NULL for be parameter to entry_schema_check() for now.
2002-01-10 19:48:43 +00:00
Kurt Zeilenga
c816ebc225
Add Backend argument to entry_schema_check() to support system schema
...
checks (in addition to user application schema checks).
2002-01-10 19:37:03 +00:00
Howard Chu
f5bfb64f07
Fix lint in previous commit
2002-01-10 18:55:13 +00:00
Kurt Zeilenga
f662a39d41
Add start of subentry support... still need to sort out
...
administrativeRole restricts.
2002-01-10 18:18:37 +00:00
Howard Chu
8067107ed2
Added an_oc to AttributeName for caching ObjectClass lookups.
...
Added error checking to str2anlist; if the attr name doesn't match
any attribute or objectclass the offending attr name is displayed.
2002-01-10 09:54:14 +00:00
Kurt Zeilenga
bf5b4405fe
More clean up of system schema changes
2002-01-10 06:58:57 +00:00
Kurt Zeilenga
aa9612f051
add system schema checks
2002-01-10 06:30:26 +00:00
Kurt Zeilenga
b4bb3b5bf8
Fix up last commit
2002-01-10 05:54:50 +00:00
Kurt Zeilenga
58a72b915a
More operational attribute infrastructure...
2002-01-10 05:31:49 +00:00
Kurt Zeilenga
cadecfaae1
Finish building in operational attributes
2002-01-10 04:10:54 +00:00
Kurt Zeilenga
f4336c8953
More builtin operational attributes
2002-01-10 03:31:11 +00:00
Kurt Zeilenga
7fcf4e011c
Cleanup last commit. Need to add more internal schema....
2002-01-10 02:01:00 +00:00
Kurt Zeilenga
6ed15e3350
Another round of operational attribute changes... more to follow.
2002-01-10 01:46:08 +00:00
Kurt Zeilenga
91644affd9
Minor cleanup
2002-01-10 00:54:31 +00:00
Kurt Zeilenga
c80d93f2bb
Start of new operational attribute framework
2002-01-10 00:17:21 +00:00
Kurt Zeilenga
74421a28ec
Round 2 of subentry changes
2002-01-09 19:43:15 +00:00
Kurt Zeilenga
9b0585f393
Add very basic subentry search support.
2002-01-09 19:21:07 +00:00
Kurt Zeilenga
39c02506de
Fix problems caused by lint removal
2002-01-09 18:18:36 +00:00
Kurt Zeilenga
22f993f89b
Remove some lint caused by the changes in const'ification
2002-01-09 06:30:23 +00:00
Kurt Zeilenga
bc1cd95149
Rework control infrastructure a bit. Add subentries visibility control.
2002-01-09 06:29:54 +00:00
Kurt Zeilenga
e19fdf58c0
Add some comments
2002-01-09 00:19:56 +00:00
Kurt Zeilenga
053251ee88
Bring nadf back from attic, but note that it is obsolete
2002-01-09 00:19:20 +00:00