Commit Graph

7997 Commits

Author SHA1 Message Date
Kurt Zeilenga
4f63434511 Improve SASL error handling 2005-11-06 22:43:23 +00:00
Howard Chu
0f2ee54e20 ITS#4151 remove extraneous sasl_bind_in_progress manipulation 2005-11-06 04:02:13 +00:00
Howard Chu
ee8bea214a Fix ITS#4151 - set sasl_bind_in_progress in bind_cb 2005-11-05 22:35:40 +00:00
Pierangelo Masarati
852e4e3109 allow per-target retry in searches; taint invalid connections; don't massage the pseudorootdn (ITS#4150) 2005-11-05 14:44:43 +00:00
Howard Chu
19f6e2d943 ITS#4148 fix replica mods 2005-11-05 08:50:16 +00:00
Pierangelo Masarati
29dfcec866 reverse previous commit 2005-11-04 20:00:03 +00:00
Pierangelo Masarati
acb17be789 fix size/time limit (ITS#4145) 2005-11-04 12:42:39 +00:00
Pierangelo Masarati
a00f337acd partially revert previous commit 2005-11-04 07:57:54 +00:00
Howard Chu
8f7fbfe60a ITS#4143 bdb_tool_info should only be non-NULL for QUICK index/add 2005-11-04 02:52:14 +00:00
Pierangelo Masarati
d170fae411 improve previous commit 2005-11-04 01:44:44 +00:00
Pierangelo Masarati
1ec4cf7bba add a giant mutex around the ldapinfo structure to serialize chaining (need to check for deadlocks...) 2005-11-04 01:42:11 +00:00
Pierangelo Masarati
a9067fc056 free values in case of error 2005-11-04 01:29:48 +00:00
Pierangelo Masarati
a1a68333dc only add opattrs if not shadow; use helper to extract rdn 2005-11-04 01:27:31 +00:00
Pierangelo Masarati
1249fa93d5 plug one-time leak 2005-11-03 22:51:27 +00:00
Howard Chu
91b3f49d5f ITS#4128 revert prev fixes, alternate fix used. 2005-11-03 21:56:33 +00:00
Pierangelo Masarati
d3a2a42e85 fix previous commit (addresses ITS#4139) 2005-11-03 21:48:46 +00:00
Howard Chu
06c96f6cf1 Cleanup 2005-11-03 20:38:51 +00:00
Howard Chu
27b197c36d ITS#4128 use backend_db_init 2005-11-03 20:34:45 +00:00
Howard Chu
c5b44f3660 ITS#4128 use backend_db_init to init the private backend 2005-11-03 20:31:11 +00:00
Kurt Zeilenga
e470116ab3 fix -USLAP_LIGHTWEIGHT_DISPACTHER sl_busy issue 2005-11-03 18:50:04 +00:00
Pierangelo Masarati
0207dcd3f9 import leak plug from slapo-rwm 2005-11-03 15:20:33 +00:00
Pierangelo Masarati
2f63454973 don't leak on exit 2005-11-03 15:08:23 +00:00
Pierangelo Masarati
ac6b3e1415 don't leak massaged referral DN 2005-11-03 14:06:26 +00:00
Pierangelo Masarati
e2b87791ac release entry, if required; release mapping resources as appropriate on exit 2005-11-03 13:34:43 +00:00
Howard Chu
11f6938162 ITS#4136 fix prev commit 2005-11-03 12:45:57 +00:00
Pierangelo Masarati
2a24cbb5e8 don't leak text/matched 2005-11-03 11:58:06 +00:00
Howard Chu
f7ebf67355 ITS#4135 fix prev commit 2005-11-03 02:40:52 +00:00
Kurt Zeilenga
ecd86725f2 Update result code to IANA-assigned values
Provide some backwards compatibility.
Misc cleanup
2005-11-03 01:27:07 +00:00
Howard Chu
e0ec0a21c2 ITS#4134 additional fix 2005-11-03 00:51:57 +00:00
Howard Chu
f8815bf833 ITS#4099, protect hosts_ctl with tcpd_mutex. From richton@nbcs.rutgers.edu. 2005-11-03 00:47:25 +00:00
Howard Chu
82db113f32 ITS#4134 delete pwdFailureTime on password reset 2005-11-03 00:35:46 +00:00
Howard Chu
9ee48976e2 ITS#4135 remove client socket from frontend control before unbinding 2005-11-03 00:15:50 +00:00
Howard Chu
30869197f8 Fix fastpath for internal clients (e.g. syncrepl) too. 2005-11-02 00:15:41 +00:00
Howard Chu
44fcfb9ed3 Fix fastpath for single-op dispatching 2005-11-01 23:53:01 +00:00
Pierangelo Masarati
7949808924 plug one-time leaks 2005-11-01 18:12:14 +00:00
Pierangelo Masarati
757c34ee4b s/sprintf/snprintf/ 2005-11-01 17:50:57 +00:00
Pierangelo Masarati
22ca0e457e cleanup 2005-11-01 17:05:32 +00:00
Pierangelo Masarati
7146f4e21f don't leak matchedDN 2005-11-01 16:47:17 +00:00
Pierangelo Masarati
3cb2bc0c56 various cleanup 2005-11-01 16:36:17 +00:00
Howard Chu
948e19e132 ITS#4132 reset CACHE_ENTRY_ONELEVEL when complete. Fell out from a bad merge. 2005-11-01 15:52:44 +00:00
Howard Chu
dbf69a6ff5 Fix prev commit 2005-11-01 15:44:51 +00:00
Howard Chu
0a509c9c07 Free bind callback 2005-11-01 15:11:54 +00:00
Pierangelo Masarati
3fd5e683f2 fix size of connection array (ITS#4131) 2005-11-01 14:12:12 +00:00
Pierangelo Masarati
cedb88c373 eat up values of removed attrs 2005-11-01 13:42:51 +00:00
Pierangelo Masarati
d3f33d8139 better fix: in case of error during bind, just bail out (very conservative, though) 2005-11-01 11:00:55 +00:00
Pierangelo Masarati
e60d7c7f24 fix incorrect bind error (ITS#4129) 2005-11-01 09:47:30 +00:00
Pierangelo Masarati
e725c8488a allow descriptions in -d for tools as well; test as much as possible about pid/args files in slaptest 2005-10-31 18:48:12 +00:00
Pierangelo Masarati
e3b9448bd7 allow the "none" log level 2005-10-31 17:46:03 +00:00
Pierangelo Masarati
ea0047295c fix usage 2005-10-31 16:40:11 +00:00
Pierangelo Masarati
93a6a3647f check length (FIXME: snprintf return value may not be portable?) 2005-10-31 16:23:27 +00:00
Pierangelo Masarati
0dc6ef59ad cleanup namespace (ITS#423) 2005-10-31 16:08:33 +00:00
Pierangelo Masarati
183b696e76 address ITS#4127 (please review) 2005-10-31 16:00:51 +00:00
Pierangelo Masarati
48432b1a8d more about ITS#4128; please review 2005-10-31 15:33:30 +00:00
Pierangelo Masarati
217489bd90 address ITS#4128; please review 2005-10-31 15:27:26 +00:00
Howard Chu
3d60d71ad2 Partial fix for ITS#3850, stop spurious "deferring: binding" messages.
Make sure conn state is reset before reply reaches client. Hang still
occurs in RE22, not in RE23.
2005-10-30 09:53:15 +00:00
Howard Chu
fcd3058f83 Fix slap_callback processing, make sure it's safe for callbacks to
delete themselves at any time.
2005-10-30 09:50:48 +00:00
Howard Chu
9edea08357 Fix uninit'd rc 2005-10-30 07:42:08 +00:00
Howard Chu
98969cc28e Fix epoll, just handle wake events in the order they arrived. 2005-10-30 00:50:59 +00:00
Kurt Zeilenga
91db8ccffe Add commented-out 'top' 2005-10-29 23:36:57 +00:00
Howard Chu
e131aa424b ITS#4108 fix another accept/read race condition 2005-10-29 15:16:35 +00:00
Pierangelo Masarati
67397c46be do not return success; frontend already does (ITS#4122) 2005-10-29 12:49:57 +00:00
Howard Chu
1f0e2f8944 Fix debug msg 2005-10-29 04:24:23 +00:00
Howard Chu
4bb234bac8 ITS#4108 Cleanup accept/close race conditions. 2005-10-29 04:17:56 +00:00
Howard Chu
638b84db6e Cleanup, fix ITS#4120 2005-10-29 02:06:32 +00:00
Howard Chu
4f302fd197 Fix ITS#4119, option char left over after rev 1.185 2005-10-28 22:55:22 +00:00
Howard Chu
4ebed09d81 ITS#4017, additional revisions for DH parameters 2005-10-28 05:35:19 +00:00
Howard Chu
39f39fcb44 reqMod / reqOld must be OctetString to accomodate all possible values 2005-10-28 03:31:04 +00:00
Howard Chu
3200892a95 ITS#4111 fix mask_to_verbs return value 2005-10-28 01:57:40 +00:00
Howard Chu
675cda1b62 Use #ifdef BDB_TOOL_IDL_CACHE to enable IDL cache. Leave disabled for
now, it appears to just slow things down.
2005-10-27 13:57:48 +00:00
Howard Chu
8d0ed89832 Fix cache flush / retry sequencing 2005-10-27 13:38:21 +00:00
Howard Chu
d85cb6efbb Revert to previous IDL cache scheme. Doesn't seem to help much in
the threaded case, may be best without it.
2005-10-27 12:00:26 +00:00
Howard Chu
f94968fb5b Multi-threaded slapindex 2005-10-27 10:34:33 +00:00
Howard Chu
fc621a1c78 Add tool-threads config keyword, init thread pool in tool mode. 2005-10-27 09:29:42 +00:00
Howard Chu
b3c3335418 Fix IDL caching 2005-10-27 01:41:34 +00:00
Howard Chu
888731e6c3 Use sorted array for indexed attrs instead of AVL tree 2005-10-26 08:31:38 +00:00
Howard Chu
08cc40317b Fix notags/nosubtypes handling 2005-10-26 06:36:34 +00:00
Howard Chu
b67c0123d2 Better IDL cache allocation 2005-10-26 05:24:41 +00:00
Pierangelo Masarati
cfa2eefe3c fix previous commit 2005-10-25 14:50:05 +00:00
Howard Chu
2f9965c32b Lower id2entry cache priority in tool mode 2005-10-25 10:54:04 +00:00
Howard Chu
8a69f642b8 hdb doesn't need to fix DNs for slapindex 2005-10-25 08:40:01 +00:00
Pierangelo Masarati
8a5a1ab39f fix handling of invalid DN-valued attrs (ITS#4107) 2005-10-24 20:22:08 +00:00
Howard Chu
8f5ea1f1d2 substring indexing optimization 2005-10-23 22:38:15 +00:00
Howard Chu
34e154e28b Add IDL caching for slapadd/slapindex quick mode 2005-10-22 21:41:58 +00:00
Pierangelo Masarati
3ee954de81 fix custom group objectclass/member attribute parsing; let ACI code be built as dynamic module 2005-10-20 23:20:10 +00:00
Howard Chu
a14fd7cc3b Cleanup unused def 2005-10-18 21:36:06 +00:00
Howard Chu
ed5e8db572 Eliminate long-lived read transaction, we can just set a cursor's locker
ID explicitly to our long-lived locker. Should have thought of this before...
2005-10-18 21:35:07 +00:00
Howard Chu
8f7da062f5 ITS#4088 force cursors to use same locker 2005-10-18 20:52:04 +00:00
Kurt Zeilenga
dc616c771f managedit should be explicitly hidden (it was hidden behind LDAP_DEVEL). 2005-10-17 20:36:21 +00:00
Howard Chu
656c6011bb Fix epoll, slapd_remove gets called multiple times for the same descriptor.
Ignore subsequent calls.
2005-10-17 17:31:48 +00:00
Howard Chu
625e30929c More matching rules 2005-10-17 12:25:36 +00:00
Howard Chu
c15a509f92 More schema tweaks 2005-10-17 12:19:26 +00:00
Howard Chu
3a47092d3f Change ModDN back to ModRDN. Legacy... 2005-10-17 11:40:20 +00:00
Howard Chu
0265f85fba Schema tweaks 2005-10-17 11:38:13 +00:00
Howard Chu
f46ffc3c6a Fix Bind/Unbind logging, align Search scopes with RFC2255 2005-10-17 08:32:29 +00:00
Howard Chu
6e2c36b03d Fix noop behavior, don't same TXN twice. Use consistent return code. 2005-10-17 08:09:28 +00:00
Kurt Zeilenga
5c125d19a9 Revise last commit 2005-10-16 20:38:48 +00:00
Kurt Zeilenga
964aa48c37 Fix TLS/SASL handling in new lightweight dispatcher 2005-10-16 20:33:01 +00:00
Kurt Zeilenga
24efc30873 Move slapd_set_read before return
(likely wake should be after... hmmm....)
2005-10-16 17:36:30 +00:00
Pierangelo Masarati
d277c5b3d6 silence SLAP_SEM_LOAD_CONTROL related warnings... 2005-10-16 08:58:06 +00:00
Howard Chu
c44210a8bf ITS#4088 proposed fix 2005-10-16 07:37:36 +00:00
Kurt Zeilenga
c961673d9e Add descr # to epoll_ctl failed error message 2005-10-16 06:41:55 +00:00
Kurt Zeilenga
533394d641 disable SLAP_SEM_LOAD_CONTROL by default, needs additional review/work
Misc. other cleanup
2005-10-16 00:17:58 +00:00
Howard Chu
37e58a73a4 Revert prev commit, use -g option to disable glue instead 2005-10-15 21:52:01 +00:00
Howard Chu
10a696bd15 ITS#4089 use slapcat -n XX to specify just the superior of a glued tree 2005-10-15 20:08:56 +00:00
Pierangelo Masarati
bd5706d8e5 complete fix of slapd-monitor log modify (ITS#4091) 2005-10-15 17:37:18 +00:00
Pierangelo Masarati
57df4bf9c2 fix log level modification via slapd-monitor (ITS#4091) 2005-10-15 15:43:53 +00:00
Pierangelo Masarati
a16521ed4e fix error message for invalid "uri" args 2005-10-15 12:33:04 +00:00
Kurt Zeilenga
9bc19c5232 Revised lightweight dispatcher -- writers moved into worker threads
Presently spawns operations in separate thread to ease clr_read/wake handling.
Seems to perform reasonable well...
2005-10-15 06:54:55 +00:00
Howard Chu
4f4d91d8a9 Fix fallback retries 2005-10-15 06:14:12 +00:00
Howard Chu
1872357e3b Trim down delta attr list 2005-10-15 05:37:10 +00:00
Howard Chu
f2f948ddf8 Fix delta deletes 2005-10-15 05:13:28 +00:00
Howard Chu
1bd689d5d0 Use generic filter for findbase 2005-10-15 05:13:05 +00:00
Howard Chu
8c8e6293f9 The rest of the reloadHint support... 2005-10-15 03:27:05 +00:00
Howard Chu
17a7ce8de5 Better delta syncrepl support, fallback to full refresh. 2005-10-15 03:26:31 +00:00
Howard Chu
711c702943 Send reloadHint TRUE by default 2005-10-15 00:43:47 +00:00
Howard Chu
d98dee3e19 Add option to enable using the reloadHint. 2.2 consumers never sent this
hint. The 2.3 consumer needs it for delta-syncrepl.
2005-10-15 00:31:22 +00:00
Howard Chu
df27731f66 Do some rough bounds checks on the age 2005-10-14 23:29:42 +00:00
Pierangelo Masarati
4744733638 don't copy o_ndn into lc_bound_ndn, otherwise we end up in a bind with DN but no password\! 2005-10-14 23:25:57 +00:00
Howard Chu
860bd2d6a8 Extend age buffer 2005-10-14 23:24:34 +00:00
Howard Chu
4277658ea6 Remove two-digit limitation on days in log purge interval 2005-10-14 23:18:12 +00:00
Kurt Zeilenga
577bfc477e More cleanup 2005-10-14 22:04:03 +00:00
Kurt Zeilenga
ce96e57298 cleanup 2005-10-14 21:46:44 +00:00
Kurt Zeilenga
40ff060f83 cleanup 2005-10-14 21:37:14 +00:00
Pierangelo Masarati
dfa28bfb41 bail out on invalid pid/args file(s) (ITS#4074); slaptest needs work yet 2005-10-14 21:21:27 +00:00
Kurt Zeilenga
2dfd312fa1 Move connectionless connection init to startup (may not be in the
optimal place yet) to simply event management.  Needs testing.
Place revent clear calls immediately upon handling of event
(before any work).
Misc. other cleanup
2005-10-14 20:48:01 +00:00
Kurt Zeilenga
e21bba89db cleanup 2005-10-14 18:47:32 +00:00
Hallvard Furuseth
0bf486b82e Remove unused variable (modtail in fe_op_modify()) 2005-10-14 13:01:14 +00:00
Hallvard Furuseth
78873370c8 constify berval arg to load_extop(), to match usage 2005-10-14 12:57:07 +00:00
Hallvard Furuseth
f21a6f7ef3 Add missing ";" in SLAP_SOCK_SET_INIT 2005-10-14 12:53:14 +00:00
Pierangelo Masarati
b90a496187 fix previous commit (modifyTimestamp didn't get appended to the list); add opattrs to back-monitor mods 2005-10-14 10:02:50 +00:00
Kurt Zeilenga
0b153841a6 Fix prototype 2005-10-14 05:44:28 +00:00
Pierangelo Masarati
b48ace2dfe more about ITS#4086: fix back-meta as well 2005-10-14 00:43:23 +00:00
Pierangelo Masarati
918405d154 note that "discover" is not supported yet 2005-10-14 00:20:56 +00:00
Pierangelo Masarati
72080136d1 more cleanup 2005-10-14 00:17:51 +00:00
Howard Chu
7eab94c4b5 Fix prev commit for test037 2005-10-14 00:05:43 +00:00
Pierangelo Masarati
f161b7f875 better fix to ITS#4086: treat mapping failures as undefined filter 2005-10-14 00:03:18 +00:00
Pierangelo Masarati
001e565577 temporarily fix ITS#4086 2005-10-13 22:43:46 +00:00
Pierangelo Masarati
ba8027b016 fix back-ldbm build 2005-10-13 22:20:52 +00:00
Howard Chu
7dcb68f6fa Move CSN invocations to backends 2005-10-13 11:58:44 +00:00
Kurt Zeilenga
4d0de8b3c5 cleanup 2005-10-13 04:33:01 +00:00
Kurt Zeilenga
5085d1f8ff cleanup 2005-10-13 02:08:14 +00:00
Kurt Zeilenga
6db7e605ee Align Operation buffers using LBER_ALIGNED_BUFFER 2005-10-12 23:17:28 +00:00
Howard Chu
e66b6188bb ITS#4078 fix buffer alignment 2005-10-12 17:34:06 +00:00
Kurt Zeilenga
2890a5d035 TLS is configured after listener creation 2005-10-12 16:58:22 +00:00
Howard Chu
1ea0c0dbda Remove obsolete csn variables 2005-10-12 07:59:51 +00:00
Howard Chu
f2930835ce ITS#4077. I wonder if we should have an ARG_OCTAL flag to preserve the
representation ... ?
2005-10-11 18:57:34 +00:00
Howard Chu
8b783dace6 Use ldap_unbind_ext, don't depend on ldap-int.h 2005-10-11 03:05:13 +00:00
Howard Chu
9aa064434c Fix writefds init on Windows 2005-10-11 02:56:56 +00:00
Howard Chu
44e9209629 Remove lint 2005-10-11 02:16:09 +00:00
Pierangelo Masarati
644d9000f9 fix ITS#4073 2005-10-10 14:54:14 +00:00
Howard Chu
4b75493252 Improve prev commit 2005-10-09 21:20:40 +00:00
Howard Chu
8204cbc212 ITS#4035 let underlying backend know about updated rootdn 2005-10-09 21:17:18 +00:00
Howard Chu
4f0c386c68 ITS#4072 prevent ldaps listeners when TLS is not configured 2005-10-09 20:04:49 +00:00
Howard Chu
f54bc26357 ITS#4072 ldap_pvt_tls_init_def_ctx() returns LDAP_NO_SUPPORT if not
sufficiently configured. Update slapd/slurpd to act appropriately.
2005-10-09 19:55:39 +00:00
Pierangelo Masarati
97614859be fix ITS#4071 2005-10-08 19:39:56 +00:00
Pierangelo Masarati
03db9632dd improve previous commit (ITS#4071) 2005-10-08 18:54:03 +00:00
Pierangelo Masarati
5420344f05 allow rwm to work with either the real or the virtual naming context equal to the empty DN 2005-10-08 10:56:10 +00:00
Howard Chu
851c65ac5b ITS#4068 fix queued UUIDs 2005-10-07 00:31:38 +00:00
Howard Chu
a79ae8da3e Better fix for req_pwdexop_s 2005-10-06 20:34:30 +00:00
Howard Chu
d973acec0d Silence valgrind complaint 2005-10-06 20:06:53 +00:00
Howard Chu
ccc1cb5fb3 Fix req_pwdexop definition 2005-10-06 20:04:12 +00:00
Kurt Zeilenga
b78c9dfa00 Add back proper bv_len initialization
Need to find and fix test010 properly.
2005-10-06 19:27:53 +00:00
Howard Chu
82998790bb Cleanup 2005-10-06 19:11:13 +00:00
Howard Chu
8050701f56 Plug memleak 2005-10-06 19:04:39 +00:00
Howard Chu
f14f6472e7 Plug memleaks 2005-10-06 18:45:53 +00:00
Howard Chu
0a41d1db7b ITS#4017 add TLSDHParamDir for Diffie-Hellman key parameters 2005-10-05 20:07:32 +00:00
Howard Chu
ebb23234ca Call normalizer directly, not rdnNormalize. 2005-10-05 15:51:34 +00:00
Howard Chu
2027e19e01 Fix rdn timestamp normalization 2005-10-05 08:59:59 +00:00
Howard Chu
f093f6788f ITS#4066 ignore writes that aren't under the unique_base 2005-10-05 06:18:56 +00:00
Pierangelo Masarati
0d76419984 add missing space (ITS#4061) 2005-10-04 10:02:54 +00:00
Howard Chu
0f69daacac Don't flush psearch queue in main search, let the qtask do it. 2005-10-04 02:29:25 +00:00
Howard Chu
59155d9029 Fix abandon checks, syncop use count. 2005-10-03 22:59:25 +00:00
Howard Chu
2233041bd0 Fix prev commit op initialization, runqueue startup latency 2005-10-03 04:49:35 +00:00
Howard Chu
da1a1f9133 ITS#4027 select_backend should ignore manageDSAit when glue is in use. 2005-10-03 03:12:32 +00:00
Howard Chu
7486ef93df Tweak prev commit, avoid rescheduling running qtask 2005-10-02 12:28:50 +00:00
Howard Chu
190d6e768d Fix runq scheduling 2005-10-02 12:26:02 +00:00
Howard Chu
52e8aaea3c Fix prev commit modrdn 2005-10-02 10:48:28 +00:00
Howard Chu
4d44d54144 Minimize base lookups 2005-10-02 05:01:45 +00:00
Howard Chu
47a055b59b Always queue psearch responses (ITS#3671 revisited) 2005-10-02 03:58:00 +00:00
Howard Chu
62f7c85be4 Add slap_overinfo oi_origdb field to point to original BackendDB 2005-10-02 01:23:09 +00:00
Pierangelo Masarati
ada7954667 deal with the case a pseudorootn is not defined 2005-10-01 18:31:14 +00:00
Pierangelo Masarati
01bb0fa1ea plug selected leaks resulting from ITS#4056 & ITS#4057 implementation; may need further cleanup and reworking to streamline a bit 2005-10-01 18:07:00 +00:00
Howard Chu
d878abf48f ITS#4049,4051 - verify oldPassword when provided. 2005-10-01 15:12:39 +00:00
Kurt Zeilenga
d72f862fa7 Removed initialization of old.bv_len and new.bv_len cures
the recent test010 failure!  hmmmm.....
2005-09-30 16:14:50 +00:00
Howard Chu
024c4bb13f ITS#4050 compare normalized DNs when detecting modrdn 2005-09-30 06:39:37 +00:00
Kurt Zeilenga
9449c5709e ITS#4021: add new {CLEARTEXT} kludge as bv_len=0 kludge no
longer works well.
2005-09-29 20:30:09 +00:00
Kurt Zeilenga
63e843d200 Remove lint 2005-09-29 20:03:04 +00:00
Hallvard Furuseth
a5ac474f2f Remove unused variable 2005-09-29 09:32:25 +00:00
Kurt Zeilenga
741029dc87 cannot ignore old password when setting sasl password 2005-09-29 08:05:38 +00:00
Kurt Zeilenga
68ae7408dc ITS#4049: oldPassword cannot be ignored, error for now
Add tests to confirm proper behavior
2005-09-29 08:00:33 +00:00
Kurt Zeilenga
e1029524b6 Refuse empty old and/or new passwords 2005-09-29 07:49:15 +00:00
Kurt Zeilenga
55b8685688 cleanup 2005-09-28 18:03:35 +00:00
Howard Chu
1769485868 Fix prev commit, reset parent == slap_entry_root 2005-09-28 16:08:01 +00:00
Howard Chu
98a13edc39 ITS#4047 fix nested overlay configuration 2005-09-28 08:30:14 +00:00
Howard Chu
20cb8f49f9 ITS#4025 add pretty/normal for pwdAttribute that recognizes descr's as
well as numeric OIDs
2005-09-27 16:15:59 +00:00
Howard Chu
12733ab92f ITS#3996 fix glue/syncprov interaction 2005-09-27 15:10:57 +00:00
Howard Chu
a0db9c1341 Fix dn2id_add/del parent cache updates 2005-09-27 14:11:10 +00:00
Kurt Zeilenga
d10832b0c8 entryUUID schema to use IANA (newly) assigned OIDs 2005-09-26 18:37:50 +00:00
Howard Chu
fc9bce707d Check log_ops before logging unbind and abandon 2005-09-26 09:49:03 +00:00
Howard Chu
052a4ae6c4 More hdb optimizing - cache subtree IDLs, not just onelevels 2005-09-26 07:30:36 +00:00
Hallvard Furuseth
05f5c7525b Fix snprintf() format 2005-09-26 04:39:51 +00:00
Howard Chu
86bd3651e1 ITS#4040 move initialization 2005-09-25 06:12:41 +00:00
Howard Chu
5697278574 ITS#4040 fix uniqueMemberMatch when value is zero-length 2005-09-25 06:11:35 +00:00
Howard Chu
9213019114 ITS#4039 2005-09-25 03:43:20 +00:00
Pierangelo Masarati
37f4e80929 hide unused member (will likely be removed) 2005-09-24 18:46:01 +00:00
Pierangelo Masarati
112be0118e cleanup states/timeout handling in back-ldap/meta; add connection pooling and defer of pseudoroot bind to back-meta 2005-09-24 18:39:26 +00:00
Pierangelo Masarati
e2c9c843e1 fix previous commit; cleanup few 64 bit issues 2005-09-24 17:09:19 +00:00
Howard Chu
bf7194aba9 ITS#3923 make perl_back_open symmetric with perl_back_close 2005-09-23 11:54:48 +00:00
Howard Chu
5fd0e53b15 ITS#4031 don't update syncCookie if it has invalid ctxcsn 2005-09-22 21:22:00 +00:00
Howard Chu
dd21d3a29f ITS#4030 fix alias deref for Finding, fix alias error code propagation. 2005-09-22 21:12:04 +00:00
Kurt Zeilenga
f3e13ec5f5 Don't use #ifdefs in the inside of a macro 2005-09-19 22:17:22 +00:00
Pierangelo Masarati
ae0b39e3cc use result of validation (ITS#4028) 2005-09-19 09:06:29 +00:00
Hallvard Furuseth
023d510766 Support POSIX 1003.1-2001 without XSI extensions (ITS #2667):
Do not use test -a/-o.  Use shell features like &&, || or case...esac.
Use grep instead of egrep (but not the not-yet-portable Posix variant grep -E).
Based on a patch from Paul Eggert.
2005-09-17 22:22:15 +00:00
Howard Chu
61d96fa17c Add dummy reference to librewrite to force it to link 2005-09-17 00:55:50 +00:00
Pierangelo Masarati
b79d4bdce5 issue additional useful warning messages; may eventually turn into errors? 2005-09-16 15:00:13 +00:00
Howard Chu
3a9814e725 Fix prev commit, BIG_ENDIAN was broken 2005-09-16 01:56:36 +00:00
Howard Chu
aa0cc7b835 More hdb tweaks, add radix sort code from mbackes@symas.com 2005-09-16 01:25:40 +00:00
Howard Chu
13154b25e3 Fix SWAP macro 2005-09-15 13:54:26 +00:00
Howard Chu
4a7f5e33bd More optimizing - try harder to avoid sorting 2005-09-15 08:29:58 +00:00
Howard Chu
20223a9ca5 Fix ISTACK space 2005-09-15 03:59:11 +00:00
Howard Chu
d269703322 Yet another idl_merge fix (test032 failure) 2005-09-15 03:49:52 +00:00
Howard Chu
6411c57028 Fix prev commit, use BDB_IDL_LAST() 2005-09-15 03:19:26 +00:00
Howard Chu
1c2e20527e Silence return val warnings in prev commit 2005-09-15 02:02:27 +00:00
Howard Chu
9b641006cb ITS#4029 Fix misplaced lines in prev commit 2005-09-15 01:22:22 +00:00
Howard Chu
37ad7614de Add syncdata keyword, to select different sync data formats. Defaults
to "default", can be set to "accesslog" or "changelog". changelog is
not fully implemented yet.
2005-09-14 15:27:20 +00:00
Howard Chu
285f841bd6 Add a "nopresent" keyword to skip the present phase; for backends that are
only used for logging (c.f. accesslog overlay) the present phase is useless.
2005-09-14 15:25:52 +00:00
Howard Chu
5e1ab5aba3 Add CSN management 2005-09-14 15:18:48 +00:00
Howard Chu
f1ffe0076f Zero out op2 2005-09-14 14:10:25 +00:00
Howard Chu
2babdaab9e Add flag for only logging successful operations 2005-09-14 09:11:03 +00:00
Howard Chu
9b1d798ad2 Change slap_ad_undef_remove() to slap_ad_undef_promote().
AttributeDescriptions must never be freed in a running slapd.
2005-09-14 06:17:59 +00:00
Howard Chu
aa3297aa36 More back-hdb search optimization 2005-09-13 07:55:01 +00:00
Hallvard Furuseth
a2a587c6ca Add missing comma between Debug() args 2005-09-13 03:35:53 +00:00
Howard Chu
9df4ae7d6b Fix prev commit 2005-09-12 05:52:55 +00:00
Howard Chu
ab2b541988 Tweak stack size in prev commit 2005-09-12 03:56:21 +00:00
Howard Chu
2dd87ed9e6 Use quicksort instead of heapsort for hdb_idl_sort 2005-09-12 03:54:52 +00:00
Pierangelo Masarati
9129a2f7ee silence warnings 2005-09-10 18:59:35 +00:00
Pierangelo Masarati
ceb9c15bdd put logging under Debug(); silence warnings; s/warnings/errors/ #ifdef'd 2005-09-10 18:42:33 +00:00
Pierangelo Masarati
fb3fc81c7e improved authz_backend detection for internal databases (ITS#4018) 2005-09-10 09:56:29 +00:00
Howard Chu
214e13eecc Tweak newsuperior error codes 2005-09-10 01:51:34 +00:00
Howard Chu
fc784ad8fd ITS#2757 remove isroot checks, simplify 2005-09-10 01:49:46 +00:00
Howard Chu
262c44772d ITS#2757 remove be_isroot checks, simplify... 2005-09-10 01:16:55 +00:00
Howard Chu
f1e05336f1 ITS#3979 restore old (RE21, RE22) search order 2005-09-09 11:43:13 +00:00
Howard Chu
3673cceb6c ITS#3979 only support tool entry points if root DB has them 2005-09-09 11:37:00 +00:00
Howard Chu
beaa0f2250 ITS#3979 better check for duplicate bi_open functions 2005-09-09 07:40:54 +00:00
Howard Chu
c8f977e1b7 ITS#3981 ch_realloc( addr, 0 ) frees addr, return NULL 2005-09-09 07:06:58 +00:00
Howard Chu
ba39e3fe00 ITS#3989 more fixes 2005-09-09 04:53:56 +00:00
Pierangelo Masarati
866148810e release resources (ITS#4016) 2005-09-09 02:37:38 +00:00
Howard Chu
d4c3093996 Silence valgrind warnings 2005-09-09 01:44:42 +00:00
Howard Chu
9944c9c461 ITS#4015 silence pointer/integer size warnings 2005-09-08 23:47:19 +00:00
Kurt Zeilenga
bb19302db6 cast pointer to long instead of int to hopefully avoid
truncation.  Change does at least silence warning.
2005-09-08 21:38:20 +00:00
Pierangelo Masarati
366ef40ceb plug one-time leaks 2005-09-08 20:46:48 +00:00
Pierangelo Masarati
1c2aef6050 fix format and signedness issues 2005-09-08 20:18:43 +00:00
Howard Chu
aa897eae90 ITS#4010 fixes complaint, larger problem remains 2005-09-08 15:28:36 +00:00
Pierangelo Masarati
3093f97767 fix messages in previous commit 2005-09-08 14:32:09 +00:00
Pierangelo Masarati
5f20374de1 reject registrations when back-monitor is not configured 2005-09-08 14:23:35 +00:00
Howard Chu
a59c109109 Check errcode from dn2entry before using ei 2005-09-08 11:14:12 +00:00
Howard Chu
d567be70eb ITS#3989 fix crash - don't access freed psearch records 2005-09-08 02:19:05 +00:00
Howard Chu
2ba90833c7 Misc Windows linking fixes 2005-09-07 10:27:55 +00:00
Howard Chu
c7fe31b06d ITS#4009 set X-ORDERED extension on olcReplica 2005-09-07 03:30:59 +00:00
Pierangelo Masarati
07fd8431c2 allow "proxied" attributeDescriptions in DN as well (more about ITS#3959) 2005-09-06 17:21:24 +00:00
Pierangelo Masarati
a1ff59f436 pretty the DN as well 2005-09-06 17:19:36 +00:00
Pierangelo Masarati
4687de2062 fix typo (ITS#4005) 2005-09-06 15:17:07 +00:00
Pierangelo Masarati
82af0c95f7 cleanup dynacl usage() 2005-09-06 14:26:53 +00:00
Pierangelo Masarati
42ae82332f few more fixes 2005-09-06 14:26:06 +00:00
Pierangelo Masarati
85e56eb653 don't lookup rootdn if the password is incorrect (ITS#4004) 2005-09-06 12:35:37 +00:00
Howard Chu
9ec2e2c690 ITS#3807 use a different tokenizer for parsing LDIF values into words. 2005-09-06 09:04:26 +00:00
Howard Chu
e0b42505c1 Add searchFilter var in searchDN session. Would have preferred to confine
this to the searchDN context. Please review.
2005-09-06 07:13:14 +00:00
Howard Chu
d89cfddcde ITS#4003 frontend->be_replogfile can legitimately be set. 2005-09-05 02:42:24 +00:00
Kurt Zeilenga
69dc0282b1 really fix commit before last 2005-09-05 01:47:27 +00:00
Howard Chu
258b31ccad Moved from back-bdb 2005-09-05 01:32:44 +00:00
Kurt Zeilenga
59a23d7656 Fix typo in last commit 2005-09-05 01:11:45 +00:00
Kurt Zeilenga
b707e1e38c Move uidNumber and gidNumber into slapd(8)
to ensure they are available for ldapi://.
2005-09-05 01:08:40 +00:00
Pierangelo Masarati
61e06b4ef2 all right, don't worry about free() by now 2005-09-04 23:54:30 +00:00
Howard Chu
92909f0682 ITS#3980 fix when master doesn't explicitly reset grace/lock attrs 2005-09-04 23:44:04 +00:00
Pierangelo Masarati
ec532ce885 disable pagedResults or reject 2005-09-04 20:08:35 +00:00
Pierangelo Masarati
35935f4178 silence warning 2005-09-04 20:07:17 +00:00
Pierangelo Masarati
596f21340e cleanup 2005-09-04 20:00:40 +00:00
Pierangelo Masarati
7fd7001fc2 fix old erroneous commit (ITS#4001) 2005-09-04 19:21:39 +00:00
Howard Chu
0eed18a0e8 Also compile for LDBM 2005-09-04 16:24:16 +00:00
Howard Chu
1e4d973616 ITS#3980, filter out some delete modifications on replicas if target
attrs don't exist
2005-09-04 16:22:30 +00:00
Howard Chu
f81ad346ff ITS#3978: Added alock calls; warns about inconsistency but continues
to start. Fails for concurrent access attempts, since ldbm does not
support any concurrency. (So slaptools are prevented from running when
slapd is already active.)
2005-09-04 15:48:44 +00:00
Howard Chu
464fc6b68a ITS#3978 move alock from back-bdb to slapd 2005-09-04 15:21:57 +00:00
Howard Chu
784554f1bb ITS#3802, #3999 skip wake_sds in epoll event loop 2005-09-04 15:04:09 +00:00
Hallvard Furuseth
00d898e7f3 Silence warnings 2005-09-03 17:03:36 +00:00
Howard Chu
36db408d0e Add missing return from rev 1.27 2005-09-02 21:27:49 +00:00
Howard Chu
f4637d60c2 per LDAPext discussion, delete pwdAccountLockedTime on password change 2005-09-02 20:38:05 +00:00
Howard Chu
f1561ac4b5 Bypass all add/modify checks on replicas, the master has done them already. 2005-09-02 20:23:32 +00:00
Howard Chu
fc8b2dda7c ITS#3989 fix ID used for syncprov_findbase 2005-09-02 10:08:44 +00:00
Howard Chu
d875ecb315 Remove #undef HAVE_EPOLL accidentally committed in rev 1.316 2005-09-01 23:21:46 +00:00
Howard Chu
7539786f01 Fix olcSubordinate OID clash 2005-09-01 12:19:08 +00:00
Howard Chu
8eed3a4bb5 ITS#3992 check bi_dbenv 2005-09-01 12:15:30 +00:00
Howard Chu
4a1eabf257 Moving glue overlay back into slapd core, returning to 2.2 config syntax 2005-09-01 11:45:04 +00:00
Hallvard Furuseth
6daa94dfe7 Fix check for supported operations: Needs be_id2entry_get, not be_entry_get 2005-08-31 23:25:50 +00:00
Hallvard Furuseth
4faa77f440 Reject slapadd -w if not supported (partial ITS#3979 fix) 2005-08-31 23:23:13 +00:00
Hallvard Furuseth
e0a8e693af Null backend support for slapadd and slapcat 2005-08-31 18:00:40 +00:00
Hallvard Furuseth
fc1514431c Cleanup: Rename struct null_info.bind_allowed to .ni_bind_allowed 2005-08-31 16:30:32 +00:00
Pierangelo Masarati
4ba83103d9 fix test before releasing resources (ITS#3990) 2005-08-31 15:11:25 +00:00
Howard Chu
be1216819c ITS#3979 only one glue overlay per tree is allowed 2005-08-31 11:47:18 +00:00
Pierangelo Masarati
a2ea1edb48 save target errors for later evaluation 2005-08-31 01:55:34 +00:00
Pierangelo Masarati
093994cfd5 further refine previous commit 2005-08-30 23:55:15 +00:00
Pierangelo Masarati
6ff4357427 fix previous commit 2005-08-30 21:21:32 +00:00
Pierangelo Masarati
a836a77e27 always init ACLs 2005-08-30 11:00:23 +00:00
Pierangelo Masarati
9baa6f4c99 don't let back-monitor appear __after__ a database that hides it; currently, only <suffix ""> :-( ; make error messages more descriptive 2005-08-30 10:38:11 +00:00
Pierangelo Masarati
b86467e0f8 cleanup previous commit (thanks to Hallvard) 2005-08-30 10:36:24 +00:00
Hallvard Furuseth
27831fcde5 Include "fd=.." in Statslog message "TLS established" 2005-08-29 23:34:42 +00:00
Howard Chu
3fc2e1388a ITS#3983 fix connection_client_stop, must reset sockbuf 2005-08-29 23:05:32 +00:00
Pierangelo Masarati
7cf72ec000 log UNDEFINED/PROXIED attributeDescription insertion 2005-08-29 10:49:20 +00:00
Pierangelo Masarati
bac1aea2a5 fix previous commit 2005-08-29 09:48:07 +00:00
Pierangelo Masarati
7a85e25402 prettify matchedDN 2005-08-28 14:50:41 +00:00
Howard Chu
ba881c5e6f In ordered_value_sort, allow zero-length ordered values.
In check_vals, log msg when ordered_value_sort fails.
2005-08-28 10:23:10 +00:00
Howard Chu
f8a97897ad More for ITS#3937, pick up pre-set ldap_syslog values. 2005-08-28 07:15:11 +00:00
Howard Chu
055c1abbdc ITS#3937 add config_syslog var to track state of loglevel directive,
copy to ldap_syslog when in SLAP_SERVER_MODE
2005-08-28 07:11:10 +00:00
Howard Chu
ba268441bc ITS#3937 tone down informational debug msgs 2005-08-28 07:02:53 +00:00
Howard Chu
975de9aa5b Consolidate a few more init calls into slap_init(). Fixes ITS#3962,
unintentional changed default of TLSVerifyClient.
2005-08-28 03:25:16 +00:00
Pierangelo Masarati
39998dfe8d prettify matchedDN; fix memory handling 2005-08-27 19:21:43 +00:00
Pierangelo Masarati
97600bf23c prettify matchedDN; return response code 2005-08-27 19:20:31 +00:00
Howard Chu
b265c37c9b Additional log msg for config tree processing failures 2005-08-27 10:51:08 +00:00
Howard Chu
29731c1850 Partially revert rev 1.31, must detect send_search errors to propagate
errors up when reading config DB.
2005-08-27 10:15:22 +00:00
Howard Chu
a5739b28b3 More for ITS#3900 - olcDefaultSearchBase doesn't belong in root entry 2005-08-27 09:40:06 +00:00
Howard Chu
528acf7504 Finish control implementation 2005-08-27 01:21:51 +00:00
Howard Chu
12beb27e46 Fix typos in error messages 2005-08-27 01:18:47 +00:00
Hallvard Furuseth
f17ffeb925 Rename label "leave" to "done".
Tru64 5.1 alpha's <pthread.h> turns "leave" into an exception handling keyword.
2005-08-26 22:23:27 +00:00
Hallvard Furuseth
a1a9507295 Remove unused variable 2005-08-26 21:42:48 +00:00
Pierangelo Masarati
8e3adc2428 fix uninitialized, signedness and other issues (ITS#3854) 2005-08-26 16:52:51 +00:00
Pierangelo Masarati
421f09435d refine last commit (let "proxied" attrs be registered in between the request and the response...); silence misc signedness warnings 2005-08-26 14:43:15 +00:00
Luke Howard
06600b9a1d fix slapi_sdn_isempty() logic 2005-08-26 10:46:56 +00:00
Howard Chu
e641222b10 More for ITS#3854 2005-08-26 03:35:42 +00:00
Howard Chu
7e92728db9 Fix another leaked environment. 2005-08-26 02:35:32 +00:00
Hallvard Furuseth
45d60c21dd slapi_rdn_set_<sdn/rdn>: Void functions, so return nothing - not even void. 2005-08-26 02:26:50 +00:00
Howard Chu
6a4839bd23 Windows mod compatibility 2005-08-26 02:21:07 +00:00
Howard Chu
4cc7efdadc Revert ITS#3577 patch, breaks Windows build and not needed in RE23. 2005-08-26 02:20:45 +00:00
Howard Chu
5a03f7611f Fix for Windows mod compatibility, imported symbols cannot be used as
constant initializers.
2005-08-26 02:17:13 +00:00
Howard Chu
d7122627fa Leave pwdPolicySubEntry user-modifiable for now 2005-08-26 00:19:08 +00:00
Pierangelo Masarati
6cb8b14435 allow undefined attrs to be "proxied" (ITS#3959) 2005-08-25 21:14:26 +00:00
Kurt Zeilenga
f07015dad2 Update build tools based upon OPENLDAP_AC work 2005-08-25 20:09:26 +00:00
Pierangelo Masarati
afaf426231 need stricter sanity checks... 2005-08-25 08:57:08 +00:00
Pierangelo Masarati
b90daf83f9 honor onerr on bind 2005-08-25 08:55:55 +00:00
Howard Chu
f6be095299 Don't do anything if this is a syncrepl response. 2005-08-25 06:56:09 +00:00
Howard Chu
143a1cdae1 Must close env before removing it. 2005-08-25 03:00:29 +00:00
Howard Chu
5903ebc1b5 Config fixes 2005-08-24 08:32:03 +00:00
Luke Howard
a99305da41 Allow slapi_sdn_get_parent() to work if only normalized DN is available 2005-08-24 05:11:58 +00:00
Howard Chu
fc1c7d9987 Fix typo in numeric-descend 2005-08-24 02:26:55 +00:00
Howard Chu
c9c1ee10b3 Add LDAP_CONTROL_VALSORT 2005-08-24 02:07:43 +00:00
Howard Chu
6b63e25bc2 Check for numeric syntaxes 2005-08-24 01:52:05 +00:00
Howard Chu
7dde9e0b33 Tweak prev commit, use BER_BVZERO 2005-08-24 01:36:16 +00:00
Howard Chu
c947cfd66a Fix uninit'd var, check for single-valued attrs 2005-08-24 01:34:49 +00:00
Pierangelo Masarati
c33124e698 make sure a_nvals are as many as a_vals (helps tracking other issues...) 2005-08-23 23:56:47 +00:00
Pierangelo Masarati
ac1488b50d workaround ITS#3965; if anybody has a better solution... 2005-08-23 22:54:07 +00:00
Howard Chu
ef220ac1ef Updated for draft 09, allow MANAGE for operational attrs. 2005-08-23 19:37:16 +00:00
Pierangelo Masarati
40c0d3bfa3 harmonize back-ldbm and back-bdb handling of searchBase disclose access; fixes ITS#3964, ITS#3963 still open 2005-08-23 17:38:50 +00:00