Howard Chu
9e8bbf129f
Fix prev commit, must passthru precomputed scopes
2003-05-13 02:44:22 +00:00
Howard Chu
fb52e37e06
ITS#2506 - fix prev patch, don't ignore undefined filters. treat as False,
...
test_filter will never match them anyway.
2003-05-13 01:16:26 +00:00
Howard Chu
574ca540d4
Revert prev commit
2003-05-11 10:09:51 +00:00
Howard Chu
236321ce9c
Plug leak in hdb
2003-05-11 08:42:58 +00:00
Howard Chu
6aa3637545
Added SLAP_TOOL_READMAIN and SLAP_TOOL_READONLY slapMode flags. The rw
...
arg to tool_entry_open comes too late for back-bdb to use.
2003-05-11 07:03:48 +00:00
Howard Chu
c84c133c90
Plug mem leak in slapindex
2003-05-10 03:56:01 +00:00
Howard Chu
399572ba50
For ITS#2502 - force release of locks on exiting threads
2003-05-09 22:30:28 +00:00
Howard Chu
2d5d4ecffa
ITS#2480 uninit'd vars
2003-05-02 13:38:16 +00:00
Hallvard Furuseth
a632038df9
Entry *e could be freed uninitialized after goto return_results;
2003-05-02 13:24:44 +00:00
Hallvard Furuseth
3420d12bdc
Fix printf/Debug format arguments.
2003-05-02 13:08:47 +00:00
Jong Hyuk Choi
e8cd5c2386
- LDAP_SYNCREPL defined in include/ldap.h
...
- add "updatedn" to the replication specification
- return referral to update to the slave server
2003-05-01 23:39:29 +00:00
Howard Chu
759996c6e9
Fix HDB search_aliases crash, cleanup search scope processing: call dn2idl
...
directly instead of going thru filter_candidates. Use hdb_ function prefix
in dn2id.c to avoid ambiguities...
2003-05-01 11:59:08 +00:00
Jong Hyuk Choi
b4e8f8f470
comment cleanup
2003-04-30 16:39:40 +00:00
Howard Chu
7e2273b30e
Added errmsg arg to lutil_passwd_{check,hash} functions
2003-04-30 07:52:05 +00:00
Howard Chu
cfaf127eaa
Log errors from dn2id failures
2003-04-30 07:47:24 +00:00
Howard Chu
35d18d4ab0
Use DB_RMW when deleting dn2id elements
2003-04-30 07:46:58 +00:00
Howard Chu
7e1a91340c
Use computed filters to pass in search scope.
2003-04-30 07:46:01 +00:00
Jong Hyuk Choi
b10f1c5780
- manageDSAit is implicitly assumed for LCUP / SYNC
...
- LCUP / SYNC search both entries and subentries at the same time
2003-04-30 02:04:23 +00:00
Howard Chu
15b661c5c7
Revert prev commit. It's a symptom that BDB was built incorrectly.
2003-04-29 22:02:24 +00:00
Howard Chu
c066e87e2c
Better handling of computed filters
2003-04-29 21:51:23 +00:00
Kurt Zeilenga
5cd994ed21
remove dnNormalize2
...
replace calls to dnNormalize2 with calls to dnNormalize
2003-04-29 18:28:14 +00:00
Hallvard Furuseth
51da53b4b0
Print long with %ld, not %d.
2003-04-29 14:55:36 +00:00
Howard Chu
792e97790d
Handle SLAPD_FILTER_COMPUTED cases
2003-04-29 00:42:54 +00:00
Howard Chu
b63bdc6513
Undo BDB const mucking
2003-04-25 13:14:33 +00:00
Howard Chu
e0f0a40497
ITS#2467 NULL pointer check
2003-04-25 10:27:55 +00:00
Howard Chu
2b6f4ff7d0
Fix byte-ordering in bdb_dup_compare
2003-04-23 11:52:22 +00:00
Howard Chu
184f647b25
Change RDN compare funcs, we don't need lexical ordering
2003-04-23 10:26:06 +00:00
Howard Chu
02217c9183
Subtree rename support for the cache
2003-04-23 08:46:23 +00:00
Howard Chu
6f461690c1
Function renaming, make internal funcs static, etc.
2003-04-23 06:34:55 +00:00
Howard Chu
1745c2478d
Missed a bei_rdn in prev commit
2003-04-22 20:35:29 +00:00
Howard Chu
c7d3d42304
Omit bei_rdn field from EntryInfo
2003-04-22 18:59:37 +00:00
Howard Chu
7c39a5e726
filter_candidate tweaks, search_stack tweaks
2003-04-22 18:22:51 +00:00
Howard Chu
68822b1e15
Trim dead BDB_HIER stuff
2003-04-22 17:06:35 +00:00
Howard Chu
c9f8d7accb
Fix args to bdb_cache_modrdn
2003-04-22 17:05:22 +00:00
Jong Hyuk Choi
4d6469f949
subentry cleanup
2003-04-22 17:00:04 +00:00
Howard Chu
0afba16b9b
Fix id2entry, let bdb_cache_release_all clean up EntryInfos
...
Fix idl_cache_put
2003-04-22 13:14:06 +00:00
Howard Chu
89127c93d0
Mem context tweaks for bdb_dn2idl
2003-04-22 06:29:13 +00:00
Howard Chu
ee1cddf6fd
Fix typo in prev commit
2003-04-22 05:15:50 +00:00
Howard Chu
bd871d710d
Moved IDL cache code to standalone functions.
...
Use IDL cache in bdb_dn2id_children.
2003-04-22 05:14:27 +00:00
Howard Chu
f0577fcb08
Pass parent EntryInfo instead of parent DN to dn2id_add/delete.
...
Add bdb_cache_children, remove cache flag manipulation from dn2id_children
2003-04-22 04:06:09 +00:00
Howard Chu
d290145776
memory context tweaks
2003-04-21 18:28:38 +00:00
Pierangelo Masarati
629885a269
use SLAP_PTRCMP
2003-04-18 17:16:48 +00:00
Howard Chu
6fd41cd254
Add shm_key config keyword to use shared memory for BDB environment
...
Unmeasurable performance difference on my tests, but who knows...
2003-04-18 09:43:22 +00:00
Howard Chu
6002ad5233
Minor fixes
2003-04-18 07:43:07 +00:00
Howard Chu
7caf3e0952
Fix prev commit, extended search was broken
2003-04-18 05:53:24 +00:00
Howard Chu
3baffe7cf2
Fix undefined filters
2003-04-18 04:44:46 +00:00
Howard Chu
8d8a52f9d2
ITS#2453, Fix filter candidate generation
2003-04-18 03:36:52 +00:00
Howard Chu
7c60ff1ef8
ITS#2449, broken NOT filters
2003-04-18 02:31:38 +00:00
Jong Hyuk Choi
2dbcd890b8
Caching non-existing index entries in the IDL cache - caching keys only
2003-04-18 00:35:11 +00:00
Howard Chu
c754980045
Use EntryInfo navigation for search scope checks
2003-04-17 11:03:21 +00:00
Howard Chu
ec13a69220
Finish alias scope support
2003-04-17 09:23:53 +00:00
Howard Chu
f7db076c86
Fix prev commit
2003-04-17 05:15:12 +00:00
Howard Chu
7dcb79157d
Fix database search loop conditions
2003-04-17 04:55:39 +00:00
Howard Chu
d7a1eb0ea2
Fix AVL comparisons
2003-04-17 04:36:42 +00:00
Howard Chu
2048c05a82
Added CACHE_ENTRY_NO_KIDS flag to bei_state to shortcut dn2id_children.
2003-04-17 00:52:31 +00:00
Howard Chu
377bccbc6c
Hierarchical cache management.
2003-04-16 16:23:36 +00:00
Howard Chu
ca9bb44089
Free IDL_CACHE locks
2003-04-16 01:04:00 +00:00
Howard Chu
d28bdf9cc2
Fix for modrdn retries
2003-04-15 01:13:28 +00:00
Howard Chu
755f785432
Memory context fixes
2003-04-13 16:15:52 +00:00
Howard Chu
af6804905f
Eliminate unnecessary calls to slap_bv2ad
2003-04-12 12:19:57 +00:00
Howard Chu
130f6e1b7d
Memory context tweaks for other ops
2003-04-12 10:47:11 +00:00
Howard Chu
a6a6946a67
New ldap_pvt_thread_pool_context()
2003-04-12 04:01:40 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Pierangelo Masarati
06a99afbdb
free cache only if required
2003-04-08 23:22:10 +00:00
Jong Hyuk Choi
b1b36ae75f
bdb->bi_idl_tree_lrulock initialize
2003-04-08 16:30:56 +00:00
Howard Chu
d01d31e54f
Better detection of new search scopes
2003-04-08 11:17:20 +00:00
Jong Hyuk Choi
420210a2a3
IDL cache locking change (mutex -> rwlock)
2003-04-08 06:57:07 +00:00
Howard Chu
c0ee56c306
Define MINIMUM_SEARCH_STACK_DEPTH=8, search_aliases needs at least this.
2003-04-05 10:05:27 +00:00
Pierangelo Masarati
b2075ea932
cleanup & more
2003-04-05 09:57:21 +00:00
Howard Chu
3814b5f1a1
Range check cleanup, added alias processing comments
2003-04-05 09:46:54 +00:00
Howard Chu
fbc6a7e8ac
Fix cursor initialization, scope IDs
2003-04-05 08:54:24 +00:00
Kurt Zeilenga
c866e28049
Cleanup
2003-04-05 08:40:07 +00:00
Howard Chu
cb92eaf96c
Fix locking etc. in prev commit
2003-04-05 07:50:01 +00:00
Howard Chu
48a9cf3416
Added code for BDB_ALIASES. Please test.
2003-04-05 06:35:16 +00:00
Kurt Zeilenga
c75be97ae9
#ifdef -DSLAP_NVALUES
2003-04-05 03:35:16 +00:00
Kurt Zeilenga
2d68ec09f2
#unifdef -DSLAP_NVALUES_ON_DISK
2003-04-05 03:11:29 +00:00
Howard Chu
adefd27c44
Fix return of DB error code to LDAP client
2003-04-03 01:59:08 +00:00
Howard Chu
9355dca9af
Consolidated slap_callbacks into one function. Removed send_search_result.
2003-04-01 04:12:18 +00:00
Howard Chu
d8350698aa
Remove psearch.c
2003-03-31 05:31:12 +00:00
Howard Chu
8188bd1752
Fix typo in prev commit
2003-03-30 18:49:25 +00:00
Howard Chu
e8c58b4e7f
Major API change - (SLAP_OP_BLOCKS) All request parameters are
...
consolidated into the Operation structure. All reply parameters
are consolidated into the new SlapReply structure. Most operations
now have identical call signatures... Changes are not #ifdef'd,
revert to -r NO_SLAP_OP_BLOCKS if necessary to back out.
2003-03-30 09:03:54 +00:00
Howard Chu
0be6cb5a67
Deleted bi_database_mutex, use DB_LOCK instead. Changed bdb_locker_id to
...
lookup the threadctx if no Op * is provided. (bdb_db_cache doesn't know
its thread context when it acquires a locker ID.)
2003-03-29 05:15:48 +00:00
Howard Chu
1985b2c5a1
Don't use subdatabases for indexes. This patch is an incompatible change,
...
must destroy existing indexes and run slapindex to regenerate.
2003-03-27 04:30:05 +00:00
Howard Chu
ecd4296640
Fix previous commit
2003-03-27 03:27:48 +00:00
Howard Chu
51e10cf23c
Save DB_LOCK structure so it can be released later.
2003-03-26 13:33:51 +00:00
Howard Chu
c9ec6b0cab
Remove attribute.c, group.c from build
2003-03-26 11:52:59 +00:00
Howard Chu
99950e4fe4
Deleted BackendInfo->bi_acl_attribute, bi_acl_group.
...
Replaced with bi_entry_get_rw.
Implemented for back-bdb, back-ldbm, back-ldap.
2003-03-26 11:50:03 +00:00
Howard Chu
f14561d59d
#if out unused cache rdwr locks
2003-03-25 20:17:05 +00:00
Howard Chu
b672620eb8
Simplify indexer - remove redundant dbname parameter
2003-03-25 18:17:34 +00:00
Howard Chu
880b9f15ac
ITS#2392 - move cache_commit inside transaction. needs lock protection,
...
and the lock goes away after txn_commit. Not sure what to do about the
cache if txn_commit actually fails though. Since txn_prepare succeeded,
should never happen. ???
2003-03-25 17:49:35 +00:00
Howard Chu
3fe42f68c8
SLAP_NVALUES fix
2003-03-24 17:28:26 +00:00
Howard Chu
5ad51b6150
SLAP_NVALUES tweaks - after input, a_nvals is always populated. If there is
...
no normalizer, a_nvals = a_vals.
2003-03-24 01:56:56 +00:00
Howard Chu
79f3ea6e80
BDB_HIER was defined by accident, undef
...
Fix up for SLAP_NVALUES_ON_DISK
2003-03-23 15:27:43 +00:00
Howard Chu
329202e897
Plug ndn leak (re: ITS#2390)
2003-03-22 16:59:41 +00:00
Kurt Zeilenga
8a7114e152
ITS#2390 fix for back-bdb
2003-03-22 16:38:31 +00:00
Howard Chu
23d69c1d1f
Still need DB_AUTO_COMMIT flag
2003-03-22 16:21:44 +00:00
Howard Chu
a0c58e5f40
Don't use DB_AUTO_COMMIT when opening a database
2003-03-18 00:04:16 +00:00
Kurt Zeilenga
6c7a1194c3
reorder to statements for debugging purposes
2003-03-16 18:48:44 +00:00
Kurt Zeilenga
676349481f
SLAP_NVALUES updates
2003-03-16 06:03:23 +00:00
Kurt Zeilenga
3972e13fc3
NVALUES: fix a couple of value_find_ex() calls
2003-03-15 22:47:17 +00:00
Howard Chu
44be38c0f0
ITS#2371, fix BDB_SUBDIRs
2003-03-13 15:53:19 +00:00
Kurt Zeilenga
e12aec25f4
minor cleanup
2003-03-13 04:16:18 +00:00
Howard Chu
a2a5ef48be
ITS#2368 - fix deleting key from range IDL
2003-03-12 21:18:39 +00:00
Howard Chu
f2223ede5b
Fix error messages
2003-03-12 21:16:43 +00:00
Jong Hyuk Choi
c1da85eba0
Error checking code for ITS#2367
2003-03-12 16:37:04 +00:00
Jong Hyuk Choi
0d0d5ffddf
declaration of bdb_idl_entry_cmp()
2003-03-12 16:36:28 +00:00
Jong Hyuk Choi
2e31af9ca1
AVL delete upon shutdown (ITS#2367)
2003-03-12 16:34:17 +00:00
Howard Chu
009afb4bd7
Fix cache consistency problems on txn retry
2003-03-12 15:20:51 +00:00
Howard Chu
1e5de87e10
Plug memory leaks:
...
retrying a modrdn leaked DNs, rdns, etc.
modifying a cached entry leaked attrs
2003-03-12 13:04:23 +00:00
Howard Chu
bbad1de8e1
Added lutil_passwd_init, _destroy, _add for dynamically adding passwd
...
schemes. Declarations in lutil.h require lutil.h never be included before
lber.h, always after.
2003-03-11 05:58:53 +00:00
Kurt Zeilenga
0f0122abdd
need to use ch_malloc/realloc
2003-03-09 20:15:30 +00:00
Jong Hyuk Choi
5db7e20cf1
misc : not activating idl cache in tool mode run
2003-03-05 03:34:59 +00:00
Howard Chu
a0b1fb1f9c
Multiple-suffix fail msg should be logged at ERR/ANY, not ARGS.
2003-03-04 21:17:31 +00:00
Pierangelo Masarati
498f8a7454
init var
2003-03-03 21:33:29 +00:00
Pierangelo Masarati
14d64852e8
trim unnecessary varaible
2003-03-01 12:12:12 +00:00
Kurt Zeilenga
47b18c9a51
SLAP_NVALUES: index normalized values
2003-03-01 05:17:44 +00:00
Howard Chu
22e88ffb75
Fix LDAP_LOG arg
2003-02-28 05:24:08 +00:00
Howard Chu
4e01c67966
ITS#2336 - Don't allow rename on subtrees.
2003-02-28 05:18:29 +00:00
Kurt Zeilenga
152829be87
SLAP_NVALUES:
...
schema engine updated (but not schema routines so things don't run yet)
nvalues mostly populated, enough for tests 0-2 to pass
schema routines needs lots of work
modify/mods codes needs lots of work
2003-02-27 01:54:43 +00:00
Howard Chu
321780eb66
Complain about holes in database at end of slapadd
2003-02-26 15:33:20 +00:00
Howard Chu
1e718b1815
Delete extraneous log msg
2003-02-26 12:57:15 +00:00
Howard Chu
d7aac0a9d5
Only check opinfo.boi_err when ACL check failed.
2003-02-26 12:49:21 +00:00
Howard Chu
18554e7511
Fix attribute/group to allow TXN to abort on lock failure. Save and
...
restore op->o_do_not_cache on TXN retry, bdb_group will set it if it
fails to get a lock.
2003-02-26 12:09:10 +00:00
Howard Chu
00837465c4
Don't need TXN/opinfo support in read-only operations
2003-02-26 11:45:30 +00:00
Howard Chu
bda79780ce
ITS#2122 - actually use the passed in txn handle!!
2003-02-26 10:48:02 +00:00
Howard Chu
3505c326da
bdb_entry_return must explicitly check for/free attr nvals.
2003-02-26 10:10:13 +00:00
Kurt Zeilenga
dd66e6e929
SLAP_NVALUES, round 3
2003-02-26 07:39:30 +00:00
Kurt Zeilenga
25886d989a
Change MR flag names and add comments as to what they mean to slap.h
2003-02-26 02:55:28 +00:00
Kurt Zeilenga
a65a55d385
SLAP_NVALUES: fix up modify password exop
2003-02-25 22:57:53 +00:00
Kurt Zeilenga
6390e947b0
SLAP_NVALUES, round 2
2003-02-25 22:49:41 +00:00
Jong Hyuk Choi
71ca4d51f1
log message fix
2003-02-25 21:15:26 +00:00
Howard Chu
4c760dfc18
Fix? For bdb_cache_find_entry*, COMMITTED entries are usable, not just
...
READY entries. This change eliminates a retry bottleneck, and looks safe
to me, but please review.
2003-02-22 12:39:49 +00:00
Howard Chu
c756bf0590
Change - bdb_tool_entry_put always "sorts" entries:
...
instead of just calling bdb_next_id, it calls bdb_dn2id to see if the
current entry already has an ID. If so, it uses it.
if not, it recurses to see if its parent exists, and does dn2id_add from
the database suffix back to the current entry.
2003-02-21 10:13:20 +00:00
Howard Chu
65bf90ff73
Use struct berval for exop reqoid everywhere. Define berval constants
...
for the known exops.
2003-02-16 06:15:28 +00:00
Howard Chu
1756206598
Use bdb_unlocked_cache_return; lock ended when TXN ended.
2003-02-14 22:30:07 +00:00
Kurt Zeilenga
1a14def903
Use function pointers to get at backend routines.
2003-02-14 20:51:35 +00:00
Kurt Zeilenga
737f4b0d34
Misc LCUP cleanup
2003-02-09 08:43:20 +00:00
Kurt Zeilenga
282f6bc32d
Cancel exop updates
2003-02-09 05:54:45 +00:00
Kurt Zeilenga
c04e9ac993
rename "permit modify" control to "permissive modify"
...
rename "no referrals" controls to "domain scope"
misc cleanup
2003-02-09 05:39:21 +00:00
Kurt Zeilenga
48d47954a6
Rework #ifdef'ing of expermental controls to ease release engineering
...
using LDAP_DEVEL (to indicate experimental) to enable experimental features
(true for HEAD unless LDAP_REL_ENG is defined)
2003-02-08 21:53:05 +00:00
Kurt Zeilenga
1862077b24
Use DB_VERSION_ to set BDB_ENOUGH
2003-02-08 07:38:22 +00:00
Kurt Zeilenga
d1287dd341
Reword BDB 4.0 bug comment now that configure requires BDB 4.1
2003-02-08 01:34:27 +00:00
Kurt Zeilenga
cca15d41c9
minor code cleanup
2003-02-08 00:57:21 +00:00
Kurt Zeilenga
3737a1c8c4
cleanup
2003-02-07 20:33:05 +00:00
Jong Hyuk Choi
886179fbca
cleanup
2003-02-07 20:16:09 +00:00
Jong Hyuk Choi
82115be0fb
use of normalized dn (fix for a deadlock case ITS#2195)
2003-02-07 15:59:24 +00:00
Jong Hyuk Choi
55cf8bbd88
use of pre-assigned locker in bdb_group() / bdb_attribute()
2003-02-07 15:47:32 +00:00
Pierangelo Masarati
08d9d56721
more exaustive logging in case of trouble
2003-02-07 13:46:17 +00:00
Jong Hyuk Choi
85bdf79337
Filename change : servers/slapd/back-bdb/lcup.c -> servers/slapd/back-bdb/psearch.c
2003-02-05 07:43:00 +00:00
Jong Hyuk Choi
85b1783d5c
LDAP Sync Operation (draft-zeilenga-ldup-sync) as a groundwork for an LDAP replication design
2003-02-05 07:37:02 +00:00