Commit Graph

4284 Commits

Author SHA1 Message Date
Howard Chu
a5a71d4e6c Cleanup previous commit 2003-03-26 17:42:27 +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
945fd190f9 SLAP_OP_BLOCKS - added response block 2003-03-25 23:42:55 +00:00
Howard Chu
fec1c7b54c Added slap_op_init/destroy, cache Operation structures 2003-03-25 20:18:50 +00:00
Howard Chu
f14561d59d #if out unused cache rdwr locks 2003-03-25 20:17:05 +00:00
Howard Chu
13aafa46d8 struct co_arg is redundant, removed 2003-03-25 18:44:00 +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
Pierangelo Masarati
26895b9fa5 fix bug in schema check 2003-03-25 14:34:01 +00:00
Pierangelo Masarati
a26cca88dd blind fix of value_match when SLAP_NVALUES is set 2003-03-24 22:23:18 +00:00
Howard Chu
837c7eb78e Fix prev commit 2003-03-24 19:36:25 +00:00
Howard Chu
4853334ad4 Fix shadowed text/textbuf 2003-03-24 19:19:54 +00:00
Howard Chu
3fe42f68c8 SLAP_NVALUES fix 2003-03-24 17:28:26 +00:00
Howard Chu
3c0b0d507a ITS#2363 - use wake_sds ala slapd/daemon.c for signal management 2003-03-24 14:57:10 +00:00
Howard Chu
dd02409dd3 Clean up SIGBREAK / NT 2003-03-24 07:49:59 +00:00
Kurt Zeilenga
ce5bff041d SLAP_NVALUES: a few more matching rules 2003-03-24 06:49:55 +00:00
Howard Chu
dfe3b4fb2f SLAP_NVALUES - quick hack, just set a->a_nvals = a->a_vals. will need to
fix this if ACLs are expected to work on the local slapd.
2003-03-24 02:59:43 +00:00
Howard Chu
4d22b569de SLAP_NVALUES - add attr_merge comment 2003-03-24 02:24:23 +00:00
Howard Chu
0e1378e55e SLAP_NVALUES - a_nvals is useless if ma_rule isn't the same as attr's. 2003-03-24 02:16:42 +00:00
Kurt Zeilenga
d50064ddb8 SLAP_NVALUES: telephoneNumberNormalize 2003-03-24 02:16:10 +00:00
Kurt Zeilenga
8b19daa35a SLAP_NVALUES: add numericStringNormalize() 2003-03-24 02:11:41 +00:00
Kurt Zeilenga
fd8c453a56 Clarify comment 2003-03-24 02:11:16 +00:00
Howard Chu
bb287d666b SLAP_NVALUES fix matchedValues 2003-03-24 02:03:33 +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
491ad352ea Fix order of arguments 2003-03-24 01:19:43 +00:00
Howard Chu
1d772b3df6 ITS#2364 fix unterminated AttributeName array 2003-03-23 16:00:20 +00:00
Howard Chu
3f48cabdde Fix typo 2003-03-23 15:45:06 +00:00
Howard Chu
08ae7adfee Code for SLAP_NVALUES_ON_DISK in entry_encode/entry_decode 2003-03-23 15:28:41 +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
Kurt Zeilenga
2d78fafe03 Boolean indexing support 2003-03-23 05:54:52 +00:00
Kurt Zeilenga
c9805cf0c8 Add SLAP_NVALUES_ON_DISK define (but not code) 2003-03-23 03:23:32 +00:00
Kurt Zeilenga
91a2fb1c96 Add namingCSN attribute type
Make SLAP_NVALUES the default.
2003-03-23 02:58:36 +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
90332c2de2 ITS#2390 - freeing uninit'd ndn 2003-03-22 16:26:38 +00:00
Howard Chu
23d69c1d1f Still need DB_AUTO_COMMIT flag 2003-03-22 16:21:44 +00:00
Kurt Zeilenga
c37a3b37b8 namingCSN 2003-03-22 16:12:59 +00:00
Kurt Zeilenga
61dffba479 ITS#2847: fix cn=#,... 2003-03-22 16:12:39 +00:00
Howard Chu
a63b8908cd ITS#2389 - stop reading requests on a conn if it has more than
connection_pool_max/2 operations already executing. May want to tune
this to a higher value, e.g. connection_pool_max - XX, etc. Fix in
result.c throttles the connection too late, all threads are already
consumed by the time the send buffer blocks.
2003-03-20 12:40:11 +00:00
Howard Chu
546d5cb3a0 ITS#2389 - stop reading requests on a connection when we are blocked
writing responses. This may not be the right fix.
2003-03-20 11:54:17 +00:00
Howard Chu
f23c71c03c ITS#2385 fix typo in comment terminator 2003-03-18 17:52:48 +00:00
Pierangelo Masarati
26e6e44bec value is parsed in place; minor cleanup 2003-03-18 14:38:40 +00:00
Pierangelo Masarati
c4b925f343 document -u option 2003-03-18 10:38:23 +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
c79c13d480 replace get_substring_filter with get_ssa() 2003-03-17 06:06:02 +00:00
Kurt Zeilenga
86fdee6de7 SLAP_NVALUES: fix values_find_ex call 2003-03-17 00:30:35 +00:00
Kurt Zeilenga
1a55430c65 SLAP_NVALUES: more fixes 2003-03-17 00:27:33 +00:00
Kurt Zeilenga
e0c2e71a7c SLAP_NVALUES updates 2003-03-17 00:10:43 +00:00
Kurt Zeilenga
9ac9102b55 Undo last commit 2003-03-16 23:54:40 +00:00
Kurt Zeilenga
8b6e1db2d3 SLAP_NVALUES: remove all the extra frees 2003-03-16 23:54:22 +00:00
Kurt Zeilenga
b1d245d9de SLAP_NVALUES: fix extraneous free bug. 2003-03-16 23:52:44 +00:00
Kurt Zeilenga
e3b1020e75 Fix typos in last commit
Still chasing SLAP_NVALUES trashed filter bug
2003-03-16 21:58:00 +00:00
Kurt Zeilenga
261d127281 Rewrite filter routines to malloc() late. 2003-03-16 21:50:39 +00:00
Kurt Zeilenga
19ddf0d63d SLAP_NVALUES: still chasing an extranous free... this just saves
an unneccessary malloc.  (Actually, we should likely use local
filter structure to read things into and then malloc/copy once
we're sure there are no errors.)
2003-03-16 19:09:07 +00:00
Kurt Zeilenga
6c7a1194c3 reorder to statements for debugging purposes 2003-03-16 18:48:44 +00:00
Kurt Zeilenga
8873006105 SLAP_NVALUES changes
and misc cleanup
2003-03-16 18:10:16 +00:00
Howard Chu
d18e0989d9 ITS#2382 use ch_calloc 2003-03-16 12:34:40 +00:00
Kurt Zeilenga
e1980876f4 SLAP_NVALUES updates 2003-03-16 06:41:53 +00:00
Kurt Zeilenga
676349481f SLAP_NVALUES updates 2003-03-16 06:03:23 +00:00
Kurt Zeilenga
338355d30b SLAP_NVALUES: value_find v value_find_ex 2003-03-16 01:39:39 +00:00
Kurt Zeilenga
52fb5b1342 Not sure why these asserts are failing... too tired to figure it...
so #ifdef for now.
2003-03-15 23:59:14 +00:00
Kurt Zeilenga
c0477e1532 Fix test006-acls 2003-03-15 23:02:55 +00:00
Kurt Zeilenga
3972e13fc3 NVALUES: fix a couple of value_find_ex() calls 2003-03-15 22:47:17 +00:00
Kurt Zeilenga
776e3f2248 Add some additional error checking...
but haven't yet figured out why NVALUES crashes in test003
2003-03-15 19:45:36 +00:00
Howard Chu
55fea9715e Plug leaks in controls_destroy() 2003-03-14 09:42:18 +00:00
Howard Chu
9ccecd3907 Plug leaks. (benign. slap_controls and root_dse need a destroy() still,
also still need to clear mr's from the ad_map.)
2003-03-14 09:37:27 +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
30c5915460 Fix version check in previous 2003-03-13 02:01:14 +00:00
Howard Chu
573349a318 ITS#2356 - support Perl newer than 5.6 2003-03-13 01:58:26 +00:00
Kurt Zeilenga
0bfcfbf5fa Minor tweaks 2003-03-13 01:29:49 +00:00
Kurt Zeilenga
e88b84d6db Use BER_BVC 2003-03-13 01:05:40 +00:00
Kurt Zeilenga
c4feadbd4f Fix typo in last commit 2003-03-13 00:53:40 +00:00
Kurt Zeilenga
12139ae223 Another comment. 2003-03-13 00:51:06 +00:00
Kurt Zeilenga
3bffd98e9d Add comment that this schema is invalid 2003-03-13 00:50:30 +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
21a95f4309 ITS#2348 - revert previous patch, use patch from ITS 2003-03-12 13:40:54 +00:00
Howard Chu
c2fd1b8a3f Added lutil_passwd_init(), lutil_passwd_destroy() 2003-03-12 13:10:22 +00:00
Howard Chu
6aab531d66 #ifndef SLAP_NVALUES asserted berval was leaked 2003-03-12 13:05:19 +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
97a805415d ITS#2348, additional check to prevent re-inserting IDs that are
already present. Hopefully the final fix...
2003-03-12 10:45:00 +00:00
Howard Chu
6694db8fd4 ITS#2253 - when StartTLS fails, slapd closes the connection so slurpd
must unbind and re-initialize the LDAP session.
2003-03-12 04:38:12 +00:00
Pierangelo Masarati
1277616c40 use an "unknown" listener name/url when faking connections 2003-03-11 18:25:51 +00:00
Pierangelo Masarati
fc87692576 fix ITS#2362 and other leaks/unhandled massaged DN memory 2003-03-11 18:09:38 +00:00
Kurt Zeilenga
72b6f82cc4 Tweak SLAP_OP_BLOCKS 2003-03-11 17:26:57 +00:00
Pierangelo Masarati
4a862018eb #include reordering 2003-03-11 12:26:05 +00:00
Pierangelo Masarati
f6a47ac9ea silence warning 2003-03-11 12:25:39 +00:00
Pierangelo Masarati
3415b384e2 cleanup cache search 2003-03-11 12:24:38 +00:00
Pierangelo Masarati
5c7e6e872d cleanup bind 2003-03-11 12:24:14 +00:00
Pierangelo Masarati
bfe6d806d9 (ultimately?) fix ITS#2361 2003-03-11 12:23:20 +00:00
Howard Chu
ed884fe0ee Added proposed request parameters to Operation. #ifdef'd, not active.
Replaces "be, conn, op" triple with just "op" for most functions. Removes
individual arguments from backend op functions. Please review/comment.
2003-03-11 10:39:32 +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
Howard Chu
5c3909f567 ITS#2361, skip sockname, peername, peerdomain, sockurl ACLs if the
corresponding conn->field is NULL. (overwrites previous commit.)
2003-03-10 22:28:35 +00:00
Pierangelo Masarati
11c225d40c check conn->c_listener before use (hack to fix ITS#2361; need to review this part of slapi) 2003-03-10 22:19:32 +00:00
Howard Chu
40454ccec8 Added op->o_is_auth_check; use ACL_AUTH instead of ACL_SEARCH/ACL_READ
in access_allowed() if flag is set. Set in sasl/saslauth searches.
2003-03-10 22:07:21 +00:00
Howard Chu
d6bbe2dba5 Blind fix - remove suffixalias.c 2003-03-10 19:13:38 +00:00
Pierangelo Masarati
998ab2f441 fix log message (ITS#2359) 2003-03-10 07:36:42 +00:00
Kurt Zeilenga
0f0122abdd need to use ch_malloc/realloc 2003-03-09 20:15:30 +00:00
Kurt Zeilenga
e4b507dfe9 Use ch_malloc instead of malloc for unchecked allocations 2003-03-09 20:11:12 +00:00
Kurt Zeilenga
cc96deee75 Redefine queryid 2003-03-06 20:20:13 +00:00
Jong Hyuk Choi
6f81235386 Commit of the Proxy Cache contribution (ITS#2062)
from IBM India Research (Apurva Kumar)
Code review by Pierangelo, Kurt, and Jong.
2003-03-06 19:44:41 +00:00
Howard Chu
aa84264fc2 Technically, since the authid is expected to be a normalized DN, uidNumber
and gidNumber should be all lower case: uidnumber,gidnumber. Is it too late
to fix this, would it break compatibility for anything major?
2003-03-06 12:08:39 +00:00
Kurt Zeilenga
e906747d51 call LDAPv2 what it is (historical) 2003-03-06 01:00:05 +00:00
Howard Chu
31a4149f02 ITS#2348: fix previous commit 2003-03-06 00:16:32 +00:00
Howard Chu
f2800036fa ITS#2348: cont_alloc/cont_free cleanup in idl_insert_key 2003-03-05 23:10:32 +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
3955eaede2 Fix LDAP_DEBUG/LDAP_SYSLOG test 2003-03-05 02:22:58 +00:00
Howard Chu
b21e69db0e Use ldap_pvt_get_hname instead of ldap_pvt_gethostbyaddr_a 2003-03-05 01:53:32 +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
4a658ee581 more improvements ... 2003-03-04 09:46:48 +00:00
Pierangelo Masarati
95b115394d improve last commit 2003-03-04 09:43:12 +00:00
Pierangelo Masarati
118bf1e9f9 apply a different fix for ITS#2342 2003-03-03 23:06:58 +00:00
Pierangelo Masarati
a62d86cbe0 improve checks 2003-03-03 22:56:21 +00:00
Pierangelo Masarati
51849d6ecb fix ITS#2343 2003-03-03 22:25:28 +00:00
Pierangelo Masarati
498f8a7454 init var 2003-03-03 21:33:29 +00:00
Pierangelo Masarati
cd41bb1a06 set return code 2003-03-03 21:32:58 +00:00
Pierangelo Masarati
40622232f7 silence warning 2003-03-03 21:32:08 +00:00
Pierangelo Masarati
74960cc52f initialize var 2003-03-03 21:31:47 +00:00
Howard Chu
3cbcf01cfd Added NT service support 2003-03-03 11:47:16 +00:00
Howard Chu
3b01c9a99e Cleanup slapd-specific NT service support 2003-03-03 11:46:05 +00:00
Howard Chu
d9dbbeb87f Add explicit "service" argument, only change cwd if running as a service. 2003-03-03 06:42:16 +00:00
Kurt Zeilenga
2d942d7035 Use renamed initializers 2003-03-02 03:15:16 +00:00
Howard Chu
9beaa08d79 Fix slap_sasl_authorized, c_authz_backend may be NULL 2003-03-02 00:21:24 +00:00
Kurt Zeilenga
f172e06cc0 SLAP_NVALUES: substrings indexing/filterring 2003-03-01 20:21:39 +00:00
Kurt Zeilenga
bafe8044ab more OPERATIONS v. OTHER error cleanup 2003-03-01 20:20:53 +00:00
Kurt Zeilenga
c981ebcb61 Don't return LDAP_OPERATIONS_ERROR for internal errors 2003-03-01 20:17:52 +00:00
Pierangelo Masarati
9702e837e8 fix attr_merge_one hack 2003-03-01 15:41:54 +00:00
Pierangelo Masarati
9bd043277b fix memory free 2003-03-01 12:28:45 +00:00
Pierangelo Masarati
46a841870f add 'next[/prev]' initializer 2003-03-01 12:28:07 +00:00
Pierangelo Masarati
14d64852e8 trim unnecessary varaible 2003-03-01 12:12:12 +00:00
Pierangelo Masarati
bf35f8e37f improved filter mapping/rewrite; improved result rewriting; improved attribute/objectclass mapping configuration 2003-03-01 11:08:53 +00:00
Kurt Zeilenga
009a9640d4 enable indexing 2003-03-01 05:21:51 +00:00
Kurt Zeilenga
47b18c9a51 SLAP_NVALUES: index normalized values 2003-03-01 05:17:44 +00:00
Kurt Zeilenga
2bd7c30d5f SLAP_NVALUES: test005-modrdn works... 2003-03-01 04:51:31 +00:00
Kurt Zeilenga
c24ebfe014 SLAP_NVALUE: misc updates 2003-03-01 04:14:17 +00:00
Kurt Zeilenga
603543ca26 SLAP_NVALUES: test004 works 2003-03-01 03:37:16 +00:00
Kurt Zeilenga
208971a65f SLAP_NVALUES: A couple of more normalizers... 2003-03-01 01:27:09 +00:00
Kurt Zeilenga
16c9e81c80 SLAP_NVALUES: test003 now passes (with help of a substr mr hack) 2003-03-01 00:14:32 +00:00
Kurt Zeilenga
eb6ccefabf Remove deadwood 2003-02-28 22:32:12 +00:00
Kurt Zeilenga
806c9bfe84 SLAP_NVALUES: Use a_nvals 2003-02-28 21:05:19 +00:00
Kurt Zeilenga
cd6657fdf0 SLAP_NVALUES: fix UTF8StringNormalize
tests 0-2 now run correctly
2003-02-28 20:00:54 +00:00
Kurt Zeilenga
64b621620b ITS#2324: Allow extended operation plugin to override default
from jenarusa@us.ibm.com
2003-02-28 19:21:38 +00:00
Howard Chu
0423ec0bd6 Fix ITS#2335, RFC1798 sequence layout was wrong. 2003-02-28 13:04:16 +00:00
Luke Howard
2c98342192 Fix typo 2003-02-28 12:55:01 +00:00
Luke Howard
cc39f75261 Support for dynamic registration of controls, both through native and
SLAPI plugins.
2003-02-28 12:34:35 +00:00
Pierangelo Masarati
e0a70010d9 missing OpenLDAPaciMatch definition 2003-02-28 12:05:48 +00:00
Howard Chu
507781eeb3 Partial fix of ITS#2335, restore proper CLDAP msg format for LDAPv2 2003-02-28 08:34:31 +00:00
Kurt Zeilenga
7735c44167 Use add_merge_one to add schema elements to subschema 2003-02-28 07:06:06 +00:00
Kurt Zeilenga
3600aac0fb SLAP_NVALUES: fix a FIX ME 2003-02-28 05:44:03 +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
840f3644f4 SLAP_NVALUES: a couple of basic normalizers... but not working yet. 2003-02-28 05:13:29 +00:00
Kurt Zeilenga
70f5bd5d9d SLAP_NVALUES: More preparation for new normalization routines 2003-02-27 17:35:23 +00:00
Luke Howard
9eb008ab16 Implemented slapi_dup_control(). 2003-02-27 13:00:25 +00:00
Pierangelo Masarati
df57840626 more hacks/comments for SLAP_NVALUES 2003-02-27 09:52:47 +00:00
Kurt Zeilenga
7a7f482623 SLAP_NVALUES: prepare for new schema routines
(hopefully I didn't break -USLAP_NVALUES)
2003-02-27 06:51:53 +00:00
Kurt Zeilenga
511a94d98c SLAP_NVALUES: disable indexing for now 2003-02-27 06:37:10 +00:00
Kurt Zeilenga
32399d9bd9 axe mr_ptr in favor or schema_prep 2003-02-27 03:29:07 +00:00
Kurt Zeilenga
82c403cb7f Fix typo in last commit 2003-02-27 03:03:54 +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
Pierangelo Masarati
dd6870515b quick fix to allow -DSLAP_NVALUES with -DLDAP_SLAPI 2003-02-27 00:41:46 +00:00
Pierangelo Masarati
216bcd948e more SLAP_NVALUES cleanup 2003-02-26 22:58:46 +00:00
Pierangelo Masarati
87f48aab93 improve previous commit 2003-02-26 22:12:14 +00:00
Pierangelo Masarati
955d298a25 fix ITS#2330; free rdn after usage 2003-02-26 21:47:47 +00:00
Pierangelo Masarati
937475efbf blind fix 2003-02-26 21:45:56 +00:00
Pierangelo Masarati
7ab954d516 blind fix (accrding to back-monitor hack) 2003-02-26 19:41:27 +00:00
Kurt Zeilenga
baa5c88d75 whoops (again). Don't define SLAP_NOVALUES yet. 2003-02-26 16:48:31 +00:00
Pierangelo Masarati
f32e8ee7e7 blind fix (accrding to back-monitor hack) 2003-02-26 15:59:36 +00:00
Kurt Zeilenga
f1441afbac Backout prototype rename 2003-02-26 15:53:31 +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
Howard Chu
e13246b965 Fix previous commit 2003-02-26 09:59:08 +00:00
Howard Chu
6d0dadc0bf Fix modify_delete_values. This stuff should be completely rewritten
to take full advantage of SLAP_NVALUES.
2003-02-26 09:55:07 +00:00
Howard Chu
284ef10e6e In slap_mods_check, must null-terminate sm_nvalues array 2003-02-26 09:24:01 +00:00
Howard Chu
01c56e0044 In entry_decode, must null-terminate a_nvals array 2003-02-26 09:11:56 +00:00
Howard Chu
64be098f28 Sync with MR flags in slap.h 2003-02-26 08:40:33 +00:00
Kurt Zeilenga
dd66e6e929 SLAP_NVALUES, round 3 2003-02-26 07:39:30 +00:00
Kurt Zeilenga
46a2616b83 Fix -USLAP_NVALUES 2003-02-26 03:12:02 +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
a5e883a886 SLAP_NVALUE more add tweaks 2003-02-26 01:57:07 +00:00
Kurt Zeilenga
2cdbd25a60 SLAP_NVALUES mostly populated now 2003-02-26 01:41:22 +00:00
Kurt Zeilenga
793dada79c Populate nvals via entry_decode 2003-02-26 01:09:20 +00:00
Kurt Zeilenga
88990a5c6a SLAP_BVALUES fixes 2003-02-26 00:48:37 +00:00
Kurt Zeilenga
51e841c694 Whoops, SLAP_NVALUES should be off for now 2003-02-25 23:46:40 +00:00
Kurt Zeilenga
122f5d4299 *** empty log message *** 2003-02-25 23:16:21 +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
Kurt Zeilenga
2a8dec95ba SLAP_NVALUES back-monitor temporary hack 2003-02-25 21:19:42 +00:00
Jong Hyuk Choi
71ca4d51f1 log message fix 2003-02-25 21:15:26 +00:00
Kurt Zeilenga
8502301b00 Round one of SLAP_NVALUES code 2003-02-25 21:08:48 +00:00
Kurt Zeilenga
5b4e69a564 Fix monitorContext description 2003-02-25 20:41:28 +00:00
Kurt Zeilenga
627de4de15 Additional indexer normalization (need to check all Indexers) 2003-02-25 19:21:18 +00:00
Kurt Zeilenga
ec9db8dec1 Quick (and incomplete) fix to " foo " indexing 2003-02-25 19:01:33 +00:00
Kurt Zeilenga
02b98006f0 Add comment about subschema ACLs 2003-02-25 19:00:59 +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
d3fafb16b2 Fix ITS#2319, use "," comma to delimit port number in rej filename
on Windows instead of ":" colon.
2003-02-22 01:14:24 +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
9c701c8861 Fix ITS#2320, check for NULL re->re_replicas 2003-02-21 02:14:46 +00:00
Kurt Zeilenga
13b63911a4 ITS#2318: unlink pid file (and args file) 2003-02-19 20:47:57 +00:00
Kurt Zeilenga
05619c6ec7 ITS#2236. Add missing connections_shutdown() call. 2003-02-19 20:39:04 +00:00
Kurt Zeilenga
fb73fea612 More understandable error text 2003-02-19 16:19:13 +00:00
Howard Chu
9f0598034e Fix do/don't send result logic 2003-02-19 00:01:22 +00:00
Kurt Zeilenga
6d6bed3bc0 Fix -ULDAP_CLIENT_UPDATE bug (mine) 2003-02-17 17:57:19 +00:00
Kurt Zeilenga
4d9a4174f5 Lower SLAP_MAX_WORKER_THREAD to 16 (from 32) 2003-02-17 17:36:01 +00:00
Howard Chu
979e5073cf Revert previous kludge in controls.c, use ldap_pvt_thread_pool_context
instead if c_sasl_bindop is NULL.
2003-02-16 19:34:29 +00:00
Howard Chu
09585ad3d0 Kludge - set conn->c_sasl_bindop before calling slap_sasl_getdn, otherwise
op->o_threadctx is inaccessible.
2003-02-16 12:23:00 +00:00
Howard Chu
d6dab5dfb4 Suppress warning 2003-02-16 12:22:06 +00:00
Howard Chu
187f1d2ad4 Added proxy-whoami keyword for forwarding whoami requests. 2003-02-16 11:21:15 +00:00
Howard Chu
7e1a566391 Use struct berval * instead of ** for newpasswd 2003-02-16 09:42:04 +00:00
Howard Chu
532eea87c9 Added passwd_exop, added matchedDN rewrite for results. 2003-02-16 09:22:44 +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
8f88bc1f8f Free default_passwd_hash on cleanup 2003-02-16 06:13:34 +00:00
Kurt Zeilenga
4ae637a08d Update comment 2003-02-15 16:38:32 +00:00
Kurt Zeilenga
619f9a72ec Fix typo in last commit 2003-02-14 23:14:19 +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
Howard Chu
c04f3e7706 Fix previous commit 2003-02-14 09:17:42 +00:00
Howard Chu
0b6772492f Use extended async APIs to allow direct parsing of results. Otherwise
they will be interleaved in LDAP*. Avoid setting any options on the handle.
2003-02-14 05:23:45 +00:00
Howard Chu
202cf8af75 Implemented connection pooling. Requires libldap_r to allow multiple threads
to access the same LDAP* handle.
2003-02-13 23:29:56 +00:00
Howard Chu
b228caa723 Revert previous, wasn't broken. 2003-02-13 23:19:51 +00:00
Kurt Zeilenga
074b1a0d3a Place SLAP_EXTENDED_SCHEMA behind defined(LDAP_DEVEL) 2003-02-13 20:47:46 +00:00
Howard Chu
568829d821 Fix uninit'd timeout value 2003-02-13 10:24:32 +00:00
Pierangelo Masarati
628bcc7174 improve error handling 2003-02-10 22:34:06 +00:00
Pierangelo Masarati
1db0725502 partially fix ITS#2310 2003-02-10 21:37:30 +00:00
Pierangelo Masarati
06b981429a fix ITS#2309 2003-02-10 18:15:36 +00:00
Kurt Zeilenga
aaf253318b Move include <slapi.h> behind #ifdef 2003-02-10 02:09:00 +00:00
Kurt Zeilenga
737f4b0d34 Misc LCUP cleanup 2003-02-09 08:43:20 +00:00
Kurt Zeilenga
db427d725d no more suffix_alias 2003-02-09 07:28:15 +00:00
Kurt Zeilenga
8f82e9f772 ITS#2117: remove suffixalias support until someone fixes it 2003-02-09 07:20:03 +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
a256e5035d extern'ize 2003-02-08 19:18:46 +00:00
Kurt Zeilenga
698d73d5f3 Disable reverse lookups by default for security
(and performance) reasons.
2003-02-08 07:40:19 +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