Commit graph

9358 commits

Author SHA1 Message Date
Pierangelo Masarati
dd4d074068 reorganize select interface (ready for /dev/poll) 2006-09-17 22:09:50 +00:00
Pierangelo Masarati
c0c089f4a4 make sure we don't interfere with frontend's entry when the suffix is empty (test027) 2006-09-17 16:45:24 +00:00
Pierangelo Masarati
7fd11ad679 minor cleanup 2006-09-17 16:44:40 +00:00
Kurt Zeilenga
7c68de27c8 Check opattrs add result 2006-09-16 17:20:29 +00:00
Kurt Zeilenga
2c4b2b5566 return structuralObjectClass errors
(likely need to be applied to other backends)
2006-09-16 11:48:52 +00:00
Pierangelo Masarati
2b242dee14 private database inherits monitoring from underlying one 2006-09-15 00:23:14 +00:00
Pierangelo Masarati
c92571680d also work with pcache 2006-09-15 00:16:55 +00:00
Pierangelo Masarati
f34d418ced more good looking error messages 2006-09-15 00:16:35 +00:00
Pierangelo Masarati
4add034d5d destroy exactly what needs to 2006-09-14 23:53:23 +00:00
Pierangelo Masarati
6fd9090a0d fix one-time leak 2006-09-14 22:50:07 +00:00
Howard Chu
f1457a8ce8 Additional fix for ITS#4673 2006-09-14 22:38:45 +00:00
Pierangelo Masarati
524a7bc27a by now, don't bail out if monitoring cannot be set up 2006-09-14 22:26:37 +00:00
Howard Chu
7fd2e65386 Fix invalid attributes in translucent_modify 2006-09-14 21:11:26 +00:00
Pierangelo Masarati
5bb325054e fix back-ldap monitoring 2006-09-14 19:56:34 +00:00
Pierangelo Masarati
40cabdc0bc handle errors 2006-09-14 19:55:52 +00:00
Pierangelo Masarati
67f3fd8078 monitor __ALL__ thread parameters 2006-09-14 18:55:02 +00:00
Pierangelo Masarati
107036a946 fix (temporarily) uninit'ed var 2006-09-14 14:58:00 +00:00
Howard Chu
242274d038 Remove obsolete SLAP_FILTER_DN definitions 2006-09-14 09:29:29 +00:00
Pierangelo Masarati
028a8af7df comment monitoring by now 2006-09-14 09:06:17 +00:00
Howard Chu
e260fd1c2e MSVC compatiblity 2006-09-14 08:06:08 +00:00
Howard Chu
3f4e196beb Portability cleanups 2006-09-14 07:29:46 +00:00
Howard Chu
57c329a3af ITS#4606 errno is not per-thread on WIN32, always use WSAGet/SetLastError
(with notable exceptions: ignore tests for EINTR which winsock never sets)
2006-09-14 06:35:34 +00:00
Howard Chu
8c939e1905 ITS#4565 catch errors from slap_sasl_init / backend_init 2006-09-14 04:52:08 +00:00
Pierangelo Masarati
a87da913cd further cleanup 2006-09-14 01:07:18 +00:00
Pierangelo Masarati
6e18cdb5fd add basic monitoring support to back-ldap/slapo-chain (slapo-chain needs work) 2006-09-14 01:05:48 +00:00
Pierangelo Masarati
b890f60e36 minor cleanup 2006-09-14 01:05:02 +00:00
Pierangelo Masarati
1f257bf5ed URIs need to be between double quotes 2006-09-14 01:02:28 +00:00
Howard Chu
8e9651a598 Tweak ordered index check in check_vals 2006-09-14 00:31:18 +00:00
Howard Chu
18aac0e55e Cleanup prev commit 2006-09-14 00:14:27 +00:00
Howard Chu
543ae473c5 Forgot the OC delete handler 2006-09-14 00:09:46 +00:00
Howard Chu
9f054b648b Support dynamic add/delete of attributeTypes and objectClasses 2006-09-14 00:06:04 +00:00
Howard Chu
8e928dbb0b Use register_at / register_oc 2006-09-13 13:38:24 +00:00
Howard Chu
e04275ca04 Use register_at / register_oc 2006-09-13 13:26:56 +00:00
Howard Chu
ef271979a8 Use register_at / register_oc helpers 2006-09-13 13:05:19 +00:00
Howard Chu
5342ce61dd Add register_at / register_oc helpers. 2006-09-13 12:48:45 +00:00
Howard Chu
2bfe79fe88 Add BackendInfo.bi_extra for backend custom APIs
Use bi_extra for back-monitor entry points. Backends should never
directly reference each other's symbols.
2006-09-13 11:38:51 +00:00
Howard Chu
dd74acbf74 Fix ITS#4672, clear errno before calling STRTOL 2006-09-13 05:34:38 +00:00
Howard Chu
eaf976d56c Fix typo from 1.667 2006-09-13 05:32:42 +00:00
Pierangelo Masarati
6300e449d8 leave monitor calls in place, hide contents; in the long run, enable monitor and build as static by default 2006-09-12 07:53:19 +00:00
Howard Chu
7cd64d384b Use #ifdef SLAPD_MONITOR for monitor APIs 2006-09-12 02:59:28 +00:00
Pierangelo Masarati
55b5685425 ldap_back_dobind_int() may need to free a connection 2006-09-11 22:45:19 +00:00
Howard Chu
3e50687bf7 In connection_next, sockets may not be contiguous on Unix if syslog etc are
active. Just search to the end of the table, tracking the max isn't worth
the lock overhead.
2006-09-11 21:19:38 +00:00
Pierangelo Masarati
1ab4c624ed rearrange error handling 2006-09-11 21:04:25 +00:00
Pierangelo Masarati
8eb455e7b2 add sb_version to slap_bindconf;
rework slap_client_connect() and slap_discover_feature() accordingly
2006-09-11 00:52:43 +00:00
Pierangelo Masarati
5c9eb73df7 make sure we got the right control... 2006-09-11 00:06:03 +00:00
Howard Chu
c6ed29dc3c Fix uninit'd *cb (Coverity scan) 2006-09-09 22:15:45 +00:00
Pierangelo Masarati
0e13519191 ld may legitimately be NULL if another operation freed it because of a failure while binding 2006-09-09 17:01:28 +00:00
Pierangelo Masarati
c826725b7a don't bother about unregistering stuff during shutdown 2006-09-09 16:25:32 +00:00
Pierangelo Masarati
8eab487020 further improve monitoring setup and cleanup 2006-09-09 16:24:35 +00:00
Pierangelo Masarati
2dac2e27b5 - use STRLENOF, looks cleaner
- in case a value is incorrectly empty (technically, it's null because
  that's how it's returned by the stringification function), make enough
  room to add the error string "(null)"
- in case a value is legitimately empty (see above), use it accordingly;
  for example, a filter "(entryDN=)" is valid, so it should be possible
  to stringify it like that.
2006-09-09 16:23:02 +00:00
Pierangelo Masarati
fdddeb1d8f minor cleanup 2006-09-09 16:20:11 +00:00
Pierangelo Masarati
4bbffd1d98 more cleanup; add the frontend to the set of monitored databases; handle exceptional cases a bit more smoothly 2006-09-09 02:35:58 +00:00
Pierangelo Masarati
67dd808730 fix entry unlock in case of unhandled scope (ITS#4668) 2006-09-09 00:10:43 +00:00
Pierangelo Masarati
ad4ba42524 support "subordinate" scope 2006-09-09 00:00:44 +00:00
Howard Chu
f82ee25ec1 ITS#4667 in connection_closing, release c_mutex to allow waiters
to clear out.
2006-09-08 23:31:53 +00:00
Howard Chu
da6a4bcd3e ITS#4667 fix assert in connection_next() for PENDING connections 2006-09-08 23:30:31 +00:00
Pierangelo Masarati
4350ce5189 cleanup names 2006-09-08 22:10:49 +00:00
Pierangelo Masarati
0e385af975 - need to be able to set new subsystems when appending entire entries;
- in case we appended an entry to a yet unknown parent, we don't know
  the full DN, so unregistering needs to be possible based on the
  available data;
- complete unregister calls so that not-yet-registered stuff can be
  removed from limbo
2006-09-08 22:02:32 +00:00
Pierangelo Masarati
16043971ef some overlay (rwm?) might set those values 2006-09-08 21:19:47 +00:00
Pierangelo Masarati
a9c4b54f1b really really minor cleanup 2006-09-08 21:19:05 +00:00
Pierangelo Masarati
edd99f13f4 defer handling of loglevel listing, to let modules register custom subsystems (ITS#4666). Note: in case of any error in between, logging could not occur 2006-09-08 20:49:00 +00:00
Pierangelo Masarati
d5bb38f7e5 complain if "-T" is not the first option 2006-09-08 18:25:34 +00:00
Pierangelo Masarati
c3f9d68027 re-enable "-d '?'" as a means to list what loglevels are available (ITS#4666) 2006-09-08 18:10:53 +00:00
Pierangelo Masarati
b60990780f custom monitoring can be enabled/disabled via config 2006-09-06 23:08:57 +00:00
Pierangelo Masarati
4d55aeb57c cleanup subsystems monitoring OID handling 2006-09-06 16:06:49 +00:00
Pierangelo Masarati
df730d8538 check return values (failing when filter invalid) 2006-09-06 15:12:36 +00:00
Pierangelo Masarati
103485bf99 fix use with back-hdb 2006-09-06 15:11:54 +00:00
Pierangelo Masarati
1fc5e8e057 cleanup monitoring resources 2006-09-06 12:07:03 +00:00
Pierangelo Masarati
127ac65c44 implement support for unregistering registered stuff 2006-09-06 12:06:42 +00:00
Pierangelo Masarati
829685e218 improve previous commit 2006-09-06 12:05:38 +00:00
Pierangelo Masarati
6ce47650c9 - objectClass is now AUXILIARY (modifies existing object...)
- moved directory path publication from back-monitor/database.c
- added cleanup handler
- minor cleanup
2006-09-06 09:10:46 +00:00
Pierangelo Masarati
1f201f2cb4 remove dependencies on back-{b,h}db 2006-09-06 09:09:03 +00:00
Pierangelo Masarati
70624690c3 add attr_normalize*() helper (please holler if I missed any obvious alternative) 2006-09-06 09:06:50 +00:00
Howard Chu
9c2c30f541 Return current entry/IDL cache counts 2006-09-06 03:37:13 +00:00
Pierangelo Masarati
c67913ce1c don't get mad if monitor database is not configured 2006-09-06 02:14:32 +00:00
Pierangelo Masarati
ae1481ba62 minor cleanup; plug couple of one-time leaks 2006-09-06 02:06:45 +00:00
Pierangelo Masarati
55f24ce8f6 - setup framework for monitoring of back-bdb/back-hdb stuff in their
database entry in cn=monitor
- improve support for custom attribute/callback registration
  in back-monitor
- design API for registered antry/attr/callback removal in back-monitor

HEADS UP: now back-bdb requires back-monitor to be present, either static
or dynamically loaded __before__ back-bdb/back-hdb is initialized.
This works for sure if both back-bdb & back-monitor are static or dynamic
(provided back-monitor.la is loaded before back_bdb.la); it is not clear
what happens if back-bdb is static and back-monitor is dynamic.  In case,
either make back-bdb monitoring conditional, or hardwire back-monitor
much like back-config and back-ldif.
2006-09-06 01:54:54 +00:00
Pierangelo Masarati
e1b83c881c better handling of randomness 2006-09-04 08:40:40 +00:00
Pierangelo Masarati
3b3070d223 cleanup handling of sleeps 2006-09-04 08:36:16 +00:00
Pierangelo Masarati
84d6a04c91 improve timeout support (ITS#4157, ITS#4663) 2006-09-04 08:26:09 +00:00
Pierangelo Masarati
150a4f106c improve timeout support (ITS#4157, ITS#4663); manpage cleanup 2006-09-04 08:24:05 +00:00
Pierangelo Masarati
35f8b9c9f5 release authz resources at shutdown 2006-09-04 07:20:59 +00:00
Pierangelo Masarati
0d2e2772d5 move req2op selection into a helper 2006-09-04 07:17:34 +00:00
Pierangelo Masarati
8129f7e2f2 fix arg format; better trace logging... 2006-09-03 11:14:37 +00:00
Pierangelo Masarati
906ff0d51a don't abandon binds in progress; rather unbind (ITS#4663).
Better logging for tracing
2006-09-03 11:04:27 +00:00
Pierangelo Masarati
00c2498543 back-ldap should only touch the connection timestamp when activity actually occurred (i.e. ldap_result() returned a positive value), otherwise if "the network cable is removed after the connection is established" ldap_result() keeps returning 0 forever... 2006-09-03 11:02:15 +00:00
Pierangelo Masarati
3a83c813df use preallocated entries? (otherwise bdb_add and others leak...) 2006-09-03 10:58:13 +00:00
Pierangelo Masarati
d95b88da21 plug slapo-ppolicy related leaks (ITS#4665) 2006-09-03 10:53:38 +00:00
Pierangelo Masarati
7c64c28ad5 plug leaks in search filter (and cleanup code; ITS#4664) 2006-09-03 10:45:07 +00:00
Pierangelo Masarati
faa13725e6 remove unnecessary assertion; add test for pending ops 2006-09-01 10:41:54 +00:00
Pierangelo Masarati
cb3248f173 cleanup 2006-09-01 10:01:36 +00:00
Pierangelo Masarati
9e8725a3cc add an assertion to track ITS#4659; minor cleanup 2006-09-01 10:00:50 +00:00
Pierangelo Masarati
f797bc49a7 minor cleanup 2006-08-31 17:34:01 +00:00
Pierangelo Masarati
8a71ac3740 don't leak identity 2006-08-31 16:21:54 +00:00
Pierangelo Masarati
417ad40596 destroy socket set (man page for epoll_create(2) states that close(2) must be called on the returned filedes) 2006-08-31 13:51:25 +00:00
Pierangelo Masarati
420ed24c79 pick declaration of ch_strdup() 2006-08-30 22:45:26 +00:00
Pierangelo Masarati
afdae4272a don't run useless (and likely to fail) checks, if possible 2006-08-30 21:05:05 +00:00
Pierangelo Masarati
e172835b55 fix pre-allocated entry/attribute handling 2006-08-29 17:09:08 +00:00
Pierangelo Masarati
c57782ad66 fix pre-allocated entry/attribute handling 2006-08-29 16:07:39 +00:00
Kurt Zeilenga
7c5baf493a more cleanup 2006-08-29 07:28:22 +00:00
Howard Chu
c9562fa8fb Hide config schema if !LDAP_DEVEL 2006-08-29 02:02:12 +00:00
Howard Chu
78172aa0cf Entry/Attribute struct caching, to minimize malloc fragmentation
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Howard Chu
8ae4cbe643 Must use ch_strdup, not strdup 2006-08-29 01:36:52 +00:00
Howard Chu
f4da18e7e4 TLS ctx is already cleaned up 2006-08-29 01:34:55 +00:00
Howard Chu
cf47d33459 Only set c_sasl_bindop on actual SASL binds 2006-08-29 01:19:34 +00:00
Pierangelo Masarati
7cffbbad26 append global access rules also when be != NULL in backend_startup() (ITS#4654) 2006-08-28 13:31:16 +00:00
Pierangelo Masarati
5d3121902f Add single-password constraint; NOTE from ppolicy.c:
/* FIXME: there's no easy way to ensure
 * that add does not cause multiple
 * userPassword values; one way (that
 * would be consistent with the single
 * password constraint) would be to turn
 * add into replace); another would be
 * to disallow add.
 *
 * Let's check at least that a single value
 * is being added
 */
2006-08-28 12:44:39 +00:00
Quanah Gibson-Mount
761b0a239d ITS#4358, thanks to Kevine Zerbib 2006-08-28 01:07:25 +00:00
Quanah Gibson-Mount
80073aefa3 Fix comment style. 2006-08-28 01:05:32 +00:00
Quanah Gibson-Mount
3ee11b1c2a Fix delete type modifys where no value is given to be deleted. (ITS#2612)
Thanks to Alister Winfield for the patch.
2006-08-28 01:01:32 +00:00
Quanah Gibson-Mount
88ce76f24e fix e_private value, goes along with memory leak fix to accesslog.c 2006-08-26 23:20:00 +00:00
Pierangelo Masarati
b898d35647 reduce code duplication 2006-08-26 17:55:56 +00:00
Pierangelo Masarati
9da24acb53 disable X-ORDERED 'VALUES' naming attributes by now 2006-08-26 17:28:07 +00:00
Pierangelo Masarati
828d55be4d invalidate idle connection if a candidate target does not respond for the duration of time limit... 2006-08-26 15:24:49 +00:00
Kurt Zeilenga
d35d3b2026 Use LINE_MAX instead of BUFSIZ. Per POSIX, LINE_MAX should be at least 2K.
For ITS#4651
2006-08-25 20:05:14 +00:00
Howard Chu
ca262ee8e6 Fix test045, test048 use acl-bind credentials on retry if they were set. 2006-08-25 02:16:57 +00:00
Kurt Zeilenga
d3e288dffe s/managedit/relax/
#unifdef -DSLAP_RELAX
2006-08-22 23:31:46 +00:00
Kurt Zeilenga
3d667a4705 remove dontusecopy ifdefs 2006-08-22 20:57:33 +00:00
Kurt Zeilenga
49708e1bd5 Basic donUseCopy implementation 2006-08-22 20:29:14 +00:00
Kurt Zeilenga
a1eb25c595 Initial dontUseCopy implementation
Needs to be extended to compare
2006-08-22 20:24:36 +00:00
Kurt Zeilenga
97fa3f1efd More LDAP_DEVEL cleanup
Rename ManageDIT to Relax
2006-08-22 00:45:16 +00:00
Howard Chu
ae5c3db555 More config leaks 2006-08-21 04:25:54 +00:00
Howard Chu
282c00c349 Plug config leak 2006-08-21 04:11:29 +00:00
Howard Chu
d7be822a2a Fix prev commit 2006-08-19 06:27:11 +00:00
Kurt Zeilenga
9695d292ef LDAP_DEVEL cleanup 2006-08-19 05:47:05 +00:00
Howard Chu
69fa2d9f93 Move ber_sockbuf_free() to slapd_remove() to avoid using AC_SOCKET_INVALID 2006-08-18 23:54:24 +00:00
Pierangelo Masarati
e4d24ecce8 don't leave dangling conns in the AVL tree 2006-08-18 17:11:41 +00:00
Pierangelo Masarati
5b317f5b85 the conn may not be bound yet even if the bound DN is set... 2006-08-18 15:22:26 +00:00
Pierangelo Masarati
f5c308bdb6 more thread monitoring reworking; connection_pool_max may change via back-config 2006-08-18 10:26:03 +00:00
Pierangelo Masarati
2947c098ce oi_list might be null if overlay initialization failed for any reason 2006-08-18 10:12:21 +00:00
Kurt Zeilenga
3e89a4ff82 LDAP_DEVEL cleanup 2006-08-18 06:29:46 +00:00
Howard Chu
ad1f0a3239 Fix null pointer reference (coverity scan) and freed pointer reference 2006-08-18 01:37:21 +00:00
Howard Chu
2e3e7ed14f Fix prev commit 2006-08-18 01:17:44 +00:00
Pierangelo Masarati
9c52a2c4ff give slapd a chance to play callback cleanup handlers when a search operation is abandoned (ITS#4645) 2006-08-17 19:47:25 +00:00
Kurt Zeilenga
73ec336a89 Add note about setting effectiveness. 2006-08-17 19:33:48 +00:00
Pierangelo Masarati
ea3ffdd135 don't core if out value is NULL (log error instead; in partial fulfilment of ITS#4644) 2006-08-17 17:37:46 +00:00
Pierangelo Masarati
a05a8972b2 fix previous commit 2006-08-17 16:32:11 +00:00
Pierangelo Masarati
9327af55ca add tasklist monitoring; review runqueue monitoring 2006-08-17 16:10:47 +00:00
Pierangelo Masarati
c458df6441 add bverb_to_mask() API 2006-08-17 16:10:17 +00:00
Howard Chu
098153c5bb Move socket close into slapd_remove, don't close until after socket
is removed from daemon control.
2006-08-17 00:44:38 +00:00
Howard Chu
ccd1273cfe TS#4622 deletes in psearch didn't always propagate 2006-08-15 21:41:14 +00:00
Kurt Zeilenga
d9720d50dd Some LDAP_DEVEL cleanup 2006-08-15 19:36:54 +00:00
Howard Chu
44d3972dd7 ITS#4622 if any present list was sent, must send refreshPresent 2006-08-15 12:37:59 +00:00
Howard Chu
55aa8af4be ITS#4622 make sure queued psearch responses get played after refresh
phase completes. Ignore empty sessionlog
2006-08-15 09:28:25 +00:00
Howard Chu
789c76b4ce Delete curcsn arg to slap_get_commit_csn, redundant with op->o_csn 2006-08-15 09:25:42 +00:00
Howard Chu
7036e2bb89 Delete curcsn arg to slap_get_commit_csn, redundant with op->o_csn 2006-08-15 08:51:49 +00:00
Howard Chu
4629002ec4 Additional shutdown check 2006-08-15 00:04:29 +00:00
Howard Chu
651bc9e40e Don't purge log entries if a shutdown was requested 2006-08-15 00:02:57 +00:00
Kurt Zeilenga
4ba9bc1c2d Use LDAP_OTHER to indicate internal error 2006-08-12 21:46:29 +00:00
Howard Chu
11a0ea514a Tone down default ppolicy msg 2006-08-07 23:33:03 +00:00
Howard Chu
9f75c6a43d ITS#4634 always init pp->ad 2006-08-07 22:40:51 +00:00
Pierangelo Masarati
bd8e1bb522 make log messages more esplicative 2006-08-05 16:34:19 +00:00
Pierangelo Masarati
b1faecd35c process callbacks first; they are supposed to remove modifications they successfully handled, so that regular modify function can complain if any unhandled modification remains 2006-08-05 15:51:13 +00:00
Pierangelo Masarati
bbdc0bcd00 fix logging 2006-08-05 12:33:53 +00:00
Pierangelo Masarati
cc84163f30 factor connection code out of syncrepl 2006-08-04 19:20:59 +00:00
Pierangelo Masarati
4f395ab4ff fix uri rewriting 2006-08-03 01:15:41 +00:00
Quanah Gibson-Mount
da1e743491 Minor typo fix (maintaned -> maintained) 2006-08-01 01:27:02 +00:00
Howard Chu
b915969d29 ITS#4589 slap_get_commit_csn occasionally returns a curcsn that points
to already-freed memory. That bug still needs to be tracked down. This
patch deletes curcsn and just uses op->o_csn, which did not exist when
this code was originally written.
2006-07-28 02:40:38 +00:00
Howard Chu
5757065736 ITS#4622
syncrepl: don't save contextCSN on incoming context entry
  syncprov: delete contextCSN on checkpoint if ctxcsn is empty
2006-07-27 10:44:22 +00:00
Howard Chu
acea44af02 ITS#4622 additional fix 2006-07-26 21:36:44 +00:00
Howard Chu
04d7e356a7 ITS#4534, don't update the context cookie with the delete syncID set
cookie, that's only an intermediate value.
ITS#4622, don't update the context cookie until all the nonpresent
deletes are finished.
2006-07-26 21:23:21 +00:00
Howard Chu
00addd5d68 ITS#4613 - fail to start if lastmod is off 2006-07-24 00:32:27 +00:00
Howard Chu
2a2115d70c Fix prev commit, update kid counters too 2006-07-19 00:06:57 +00:00
Howard Chu
0340a1f1bf ITS#4616 fix cache_modrdn bei_state management 2006-07-18 10:22:48 +00:00
Howard Chu
4ccf65d9bc ITS#4614 - complain if glue/subordinate are attempted on the same backend
cleanup overlay list if overlay db_init fails.
2006-07-15 00:18:44 +00:00
Howard Chu
6d601637c7 Resurrect special refint modifiersName 2006-07-14 22:19:00 +00:00
Howard Chu
89697d3a93 Each refint op needs a unique timestamp, must perform searches as rootdn 2006-07-14 01:55:57 +00:00
Howard Chu
d145f84e9f s/HPcfgOv/OLcfgOv/ 2006-07-12 07:05:09 +00:00
Howard Chu
2e241a457c ITS#4609, dynamic config support from Neil Dunbar 2006-07-12 02:14:22 +00:00
Howard Chu
bab03f6d5c Additional purge changes for rev 1.120, don't keep the current thread
busy unnecessarily
2006-07-12 01:55:21 +00:00
Howard Chu
9a35796594 RE23 seems to still need these ACL states 2006-07-09 22:23:14 +00:00
Howard Chu
86f1f7e047 Cleanup unused fields from prev commit 2006-07-09 21:32:16 +00:00
Howard Chu
25c4b164a4 ITS#4253 fix value-dependent ACL caching - just record the ACL we'll start
looking for, don't cache anything else.
2006-07-09 20:51:00 +00:00
Howard Chu
c94c10a3b8 ITS#4587 fix for uniquemember/NameAndOptionalUID syntax 2006-07-09 10:21:42 +00:00
Pierangelo Masarati
fb11017d64 refine previous commit 2006-07-08 15:04:50 +00:00
Pierangelo Masarati
d16c9aacd7 count candidate unavailable (quarantined) targets 2006-07-08 12:42:09 +00:00
Pierangelo Masarati
36898bbb76 don't sigsegv if has_ldapinfo_dn_ru is erroneously defined; return a (more) meaningful error 2006-07-08 11:47:23 +00:00
Howard Chu
a7870943f7 Fix TLS CTX ref counting 2006-07-02 22:38:01 +00:00
Howard Chu
23a6aa373b ITS#4596 control can be critical 2006-07-02 02:50:13 +00:00
Pierangelo Masarati
fcab1dd1bc handle computed filters the best it can (ITS#4604) 2006-07-01 19:00:27 +00:00
Pierangelo Masarati
5dcb4828d7 use bound credentials, if any 2006-07-01 16:45:07 +00:00
Ralf Haferkamp
e1d1d32402 Do "selfwrite" check independent of other <who> clauses (ITS#4587) 2006-06-27 15:26:08 +00:00
Howard Chu
a2dd092291 Fix rootDN check 2006-06-26 13:00:29 +00:00
Pierangelo Masarati
34af916e3f fix response sending while rebinding (ITS#4597) 2006-06-24 16:58:49 +00:00
Howard Chu
87d9353b12 Dynamic config 2006-06-24 01:35:35 +00:00
Kurt Zeilenga
423a93019f Misc RFC reference updates 2006-06-21 07:09:39 +00:00
Howard Chu
a79bc61e63 Fix SEGV when ldapadd'ing new schema entries. This functionality needs work. 2006-06-18 02:51:58 +00:00
Howard Chu
a9b0a78248 ITS#4595 additional fix - don't allow age/cycle times of zero. 2006-06-17 13:09:14 +00:00
Pierangelo Masarati
aec9afc4e3 move retry into response handling (fix ITS#4594; partially addresses ITS#4591 as well) 2006-06-17 12:37:45 +00:00
Howard Chu
77dce50110 Omit logpurge attr if no purge time was configured 2006-06-17 01:28:50 +00:00
Howard Chu
bc8550e3c2 Additional ONELEVEL fix 2006-06-16 21:58:40 +00:00
Howard Chu
decba67ee9 ITS#4589 fix slap_compose_sync_cookie 2006-06-15 23:54:51 +00:00
Pierangelo Masarati
a5b520477c more cleanup for previous commit 2006-06-15 23:43:09 +00:00
Pierangelo Masarati
3ebb40c4dd port identity assertion to back-meta; share as much code as possible with back-ldap; misc cleanup 2006-06-15 23:12:38 +00:00
Howard Chu
4976b9436d Require rootDN to be present on logDB 2006-06-15 00:02:35 +00:00
Pierangelo Masarati
c0d95f08c1 record value-dependent state for acl_mask_dn() (ITS#4587) 2006-06-14 18:33:02 +00:00
Pierangelo Masarati
103392b9a3 fix scheme recognition (ITS#4575) 2006-06-13 19:45:11 +00:00
Pierangelo Masarati
4a071da8c2 refine previous commit 2006-06-13 10:03:44 +00:00
Pierangelo Masarati
f6e4f20254 test for ITS#4587; another bit of fix for that 2006-06-13 08:53:34 +00:00
Howard Chu
adba963c32 ITS#4587, selfwrite should apply to more than just USERS acl's 2006-06-13 03:19:07 +00:00
Pierangelo Masarati
ed0d8d0a94 fix "require" inheritance and handling of "none" (ITS#4574) 2006-06-13 00:16:45 +00:00
Pierangelo Masarati
439cd9be74 clean orm_modlist before each mod 2006-06-12 22:56:30 +00:00
Pierangelo Masarati
ea6c83481b add return-error support to searches 2006-06-12 22:27:52 +00:00
Pierangelo Masarati
0f8f25cf1a add support for recursive referrals (with simple loop detection) to slapo-chain (ITS#4070); add simple support for returning the error code instead of the original referral (ITS#4570) 2006-06-12 22:09:43 +00:00
Pierangelo Masarati
7e275fdc2c address ITS#4586 2006-06-12 15:52:23 +00:00
Howard Chu
1a86d4f663 Use separate task for refint operations - avoids re-entrancy issue,
prevents delay of client, removes dependency on slap_replog knowledge
2006-06-12 14:06:00 +00:00
Luke Howard
88b499b93d s/ber_tag_t/int where appropriate
Note about possible ITS#4158 breakage for SLAPI_CONN_DN
2006-06-12 08:40:39 +00:00
Luke Howard
e752b0b9af Don't call search rewriter plugins for internal operations 2006-06-11 10:10:32 +00:00
Luke Howard
0e5ff3dbd0 Add internal bind/unbind/search/compare/abandon plugin types 2006-06-11 09:54:15 +00:00
Luke Howard
60b25fb095 Add internal bind/unbind/search/compare/abandon plugin types 2006-06-11 09:47:54 +00:00
Luke Howard
7ca0a72a3a fix previous commit 2006-06-11 08:29:07 +00:00
Luke Howard
71827d002d Add SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE for exposing o_no_subordinate_glue 2006-06-11 06:50:53 +00:00
Luke Howard
1ebfd26ca3 Fix broken referral handling in slapi_send_ldap_result() 2006-06-11 06:49:58 +00:00
Pierangelo Masarati
20542a045f fix previous commit 2006-06-10 19:47:31 +00:00
Pierangelo Masarati
33d79d1541 fix error mapping 2006-06-10 18:11:52 +00:00
Pierangelo Masarati
bed74c02cc improve logging 2006-06-10 17:41:55 +00:00
Pierangelo Masarati
ca0184c309 centralize and cleanup bind response handling 2006-06-10 16:33:55 +00:00
Pierangelo Masarati
31a004840d cleanup identity assertion; ready for porting to back-meta 2006-06-10 16:33:26 +00:00
Pierangelo Masarati
6bd9aa3755 remove unnecessary locks and resource cleanup 2006-06-10 15:30:24 +00:00
Luke Howard
a75a4f4eff Honour o_no_subordinate_glue
Don't pollute o_req_ndn after resetting (hyc please review)
2006-06-10 12:31:22 +00:00
Luke Howard
7c9c559019 add o_no_subordinate_glue member to operation 2006-06-10 12:30:00 +00:00
Luke Howard
dfe20afd84 Fix glue_back_select() behaviour so that it actually does select the most
specific backend for the DN (this was broken in the case that subordinate
and subsubordinate backends were glued)
2006-06-10 10:31:17 +00:00
Luke Howard
60b9c90fad Fix typo when comparing local sock name 2006-06-10 07:37:06 +00:00
Pierangelo Masarati
50c6a95a62 make sure heavy concurrency doesn't cause quarantine loops 2006-06-10 01:08:45 +00:00
Howard Chu
25e12b07b3 fix leak in prev commit 2006-06-09 20:26:36 +00:00
Luke Howard
2941bd8a9e Handle unknown attributes in SLAPI_SEARCH_ATTRS 2006-06-09 15:54:59 +00:00
Luke Howard
ea45b5b322 fix previous commit 2006-06-09 15:52:44 +00:00
Luke Howard
f4c5bddd9c Ignore unknown attributes in slapi_send_ldap_search_entry()
(mirrors code in slapi_pblock.c)
2006-06-09 15:42:33 +00:00
Pierangelo Masarati
942ca17669 cleanup resource release 2006-06-08 23:41:02 +00:00
Howard Chu
5934d696eb ITS#4582 complain if no rootDN was set when configuring syncrepl 2006-06-08 11:54:10 +00:00
Howard Chu
f15e31b9a9 ITS#4580 make sure port number is preserved in replica info 2006-06-08 11:37:14 +00:00
Pierangelo Masarati
5466628e81 more about previous commit 2006-06-07 23:36:38 +00:00
Pierangelo Masarati
740f196548 rework quarantine locking and so 2006-06-07 23:25:38 +00:00
Pierangelo Masarati
53175f7ba6 more concurrency cleanup 2006-06-07 21:54:37 +00:00
Pierangelo Masarati
9aecc6c7e0 cleanup 2006-06-07 14:48:10 +00:00
Howard Chu
0657ee85f5 Fix db_init 2006-06-05 22:31:17 +00:00
Howard Chu
16448bf347 Fix prev commit 2006-06-05 21:26:23 +00:00
Howard Chu
e1b17653d6 Fix ITS#4576 reset restrict after successful pw mod 2006-06-05 20:13:40 +00:00
Pierangelo Masarati
63d5a939b3 refine (and fix) back-meta handling of search initialization (ITS#4519) 2006-06-02 17:30:15 +00:00
Pierangelo Masarati
a2b7fd279f cleanup 2006-06-02 15:43:47 +00:00
Howard Chu
70512edd5a ITS#4572 don't unlock non-existent locks 2006-06-01 02:03:10 +00:00
Pierangelo Masarati
9b7dc0aa36 trap an issue that occurred in odd conditions 2006-05-31 14:37:05 +00:00
Pierangelo Masarati
759638db20 misc cleanup 2006-05-31 14:11:07 +00:00
Howard Chu
35f6ef6fd6 Cleanup prev commit 2006-05-31 01:52:32 +00:00
Howard Chu
54231dd13f Only log realdn if it's non-empty 2006-05-31 01:45:39 +00:00
Howard Chu
f4a188bf38 Cleanup config cruft 2006-05-30 12:16:34 +00:00
Howard Chu
bec0b4ef89 Add dynamic config support for auditlog and ppolicy 2006-05-30 11:49:16 +00:00
Howard Chu
1fb33c0e9f Fix ARG_OFFSET to work with overlays 2006-05-30 11:34:36 +00:00
Pierangelo Masarati
186813daed rearrange quarantine handling during proxyAuthz bind; bind anonymously if no bindmethod is defined 2006-05-30 01:20:32 +00:00
Pierangelo Masarati
85c9a7b4c5 further cleanop of previous commits 2006-05-30 00:40:39 +00:00
Pierangelo Masarati
f5fcd2c169 cleanup previous commit 2006-05-30 00:12:23 +00:00
Pierangelo Masarati
5854464be2 allow pretty time form in quarantine string 2006-05-29 23:36:12 +00:00
Pierangelo Masarati
a6406de871 make room for plugins that deal with quarantine end 2006-05-29 21:43:20 +00:00
Howard Chu
78809a70c5 Fix modrdn with back-ldap 2006-05-29 07:24:21 +00:00
Howard Chu
d2b27b156e Add "hidden" database config, allow hidden DBs with redundant suffixes 2006-05-29 06:03:43 +00:00
Howard Chu
59ca2d198f ITS#4555 add "-j" option to jump to line of LDIF file before processing.
Fixed line number in error messages to give the line number of the beginning
of the offending entry.
2006-05-29 02:41:06 +00:00
Pierangelo Masarati
795841b5a4 implement proxy quarantine (ITS#4569) 2006-05-27 19:54:27 +00:00
Pierangelo Masarati
1d24564f9d fix DN-valued (and likely others not handled in the switch) attrs duplication (occcurred with olcDbSuffix during attrs_dup(); please check) 2006-05-27 19:14:39 +00:00
Howard Chu
62437022ab ITS#4567 use unique timestamps for ops for cascading delta-sync 2006-05-27 10:26:15 +00:00
Howard Chu
e3bea86205 ITS#4562 - don't assume syncprov_op_response only runs in overlay context;
under a glue setup it may be get a real DB, don't corrupt the DB struct.
2006-05-26 12:08:15 +00:00
Pierangelo Masarati
1efd2ef101 (almost blind) fix potential strchr() read-past-end of berval 2006-05-26 00:07:55 +00:00
Pierangelo Masarati
5f58c733cc enable NOOP (ITS#4563; seems to work now) 2006-05-25 22:45:45 +00:00
Pierangelo Masarati
d1824b14ae fix NOOP return code (ITS#4563; I'll check and confirm it later; NOOP support might be broken) 2006-05-25 16:58:41 +00:00
Hallvard Furuseth
ce44bdbc37 Constify slapd_slp_attrs (assigned a const char* in main.c:slapd_opt_slp()) 2006-05-25 16:32:43 +00:00
Hallvard Furuseth
f9f0b243d6 warning cleanup 2006-05-25 16:15:49 +00:00
Hallvard Furuseth
8c1210cb78 Format fixes: %p takes void*, not struct* whose representation may differ.
Warning cleanup.
2006-05-25 16:14:41 +00:00
Hallvard Furuseth
453d3c0710 Format fixes: Debug() arg#2 must be format.
Warning cleanup: Move format strings, let gcc recognize them. Unused var.
2006-05-25 16:11:24 +00:00
Hallvard Furuseth
2c3a06321a 2006-05-25 15:59:21 +00:00
Howard Chu
6f08468e2f Fix concurrency issues 2006-05-25 05:08:04 +00:00
Howard Chu
1ed9fff84c Fix uninit'd var 2006-05-25 01:05:29 +00:00
Pierangelo Masarati
cff53d4867 allow tools to syslog 2006-05-24 17:57:13 +00:00
Pierangelo Masarati
810a8f0d06 sigh, the test was renamed ages ago 2006-05-24 01:50:57 +00:00
Howard Chu
5e50d2e2e4 Fix prev commit, LE/GE searches advanced in wrong direction.
Terminate EQ/SUBSTR query searches sooner.
2006-05-23 02:53:54 +00:00
Pierangelo Masarati
f26bef66c6 cleanup 2006-05-20 15:49:18 +00:00
Pierangelo Masarati
e5c173691d add cancel strategies (ITS#4560) 2006-05-20 14:29:01 +00:00
Howard Chu
fa2425005a More cleanup 2006-05-20 05:05:13 +00:00
Howard Chu
b83ef38c51 cleanup debug msg 2006-05-20 05:03:35 +00:00
Pierangelo Masarati
80dfb95241 fix previous commit 2006-05-19 23:33:15 +00:00
Howard Chu
9de3d9c277 Fix idletimeout deadlock 2006-05-19 22:47:33 +00:00
Pierangelo Masarati
16661063d0 silence warnings 2006-05-19 22:37:52 +00:00
Pierangelo Masarati
29af5f93ee fix limits unparse 2006-05-19 22:34:04 +00:00
Howard Chu
fde6482629 Cleanup (revert ITS#4472, etc.) 2006-05-19 15:51:09 +00:00
Howard Chu
e6475734fa ITS#4549, rewritten query_containment etc... 2006-05-19 15:25:33 +00:00
Howard Chu
4cc18ee8d4 ITS#4549 kludge, get tavl_ routines referenced 2006-05-19 15:24:56 +00:00
Howard Chu
f0adb769ad Cleanup query attrs 2006-05-19 09:15:42 +00:00
Howard Chu
8eace69ddb Cleanup template searching 2006-05-19 08:07:59 +00:00
Pierangelo Masarati
fcbc1f484d fix referrals return for ops other than search (ITS#4557); use slab memory for temporaries in returning referrals 2006-05-18 22:28:22 +00:00
Howard Chu
9e50b2d0a1 ITS#4552 just rely on ACLs when adding entries under the suffix. 2006-05-18 01:18:48 +00:00
Pierangelo Masarati
9b388e5328 fix cleanup concurrency 2006-05-17 01:34:46 +00:00
Howard Chu
58099cc045 coverity cleanup 2006-05-16 22:16:27 +00:00
Howard Chu
1135d19f16 ITS#4466 fix typo, uninit'd var 2006-05-16 22:16:13 +00:00
Howard Chu
bb11c81178 ITS#4550 don't overwrite remote server's err msg 2006-05-16 21:45:31 +00:00
Howard Chu
5f3bc1f7ec Fix ITS#4450, don't overwrite remote server's rs->sr_text 2006-05-16 21:30:10 +00:00
Pierangelo Masarati
073f14ceac lc_bound_ndn is occasionally saved to keep track of who bound; don't use it to bind unless credentials are present as well 2006-05-16 02:56:59 +00:00
Howard Chu
33a3448964 Cleanup - no more SLAP_MULTI_CONN_ARRAY 2006-05-16 01:22:47 +00:00
Pierangelo Masarati
9c9b6f7353 idassert: setup rebind stuff when binding for proxyAuthz, so that referral chasing tries to rebind with the correct identity (partially address ITS#3526) 2006-05-16 01:10:51 +00:00
Pierangelo Masarati
b0c304f759 fix referral rewriting (ITS#4548) 2006-05-16 00:57:46 +00:00
Pierangelo Masarati
3b7084c170 reset the conn field in the cached connection if the bound DN is privileged (ITS#4547) 2006-05-15 01:42:05 +00:00
Pierangelo Masarati
1c16fa382a line up back-meta to ITS#4546 2006-05-14 18:10:23 +00:00
Pierangelo Masarati
26d1fc8c48 more cleanup of previous commits 2006-05-14 18:09:56 +00:00
Pierangelo Masarati
f87e6270d4 improve previous commit 2006-05-14 17:53:40 +00:00
Pierangelo Masarati
0c2c3ea7e1 typo in previous commit 2006-05-14 17:34:18 +00:00
Pierangelo Masarati
0c33c17bb5 "single-conn" forces flushing of existing conns during rebind on same conn (ITS#4546) 2006-05-14 17:32:15 +00:00
Pierangelo Masarati
6910b36df8 more checks 2006-05-14 16:29:49 +00:00
Pierangelo Masarati
3393b15594 cleanup resource release 2006-05-14 15:11:53 +00:00
Pierangelo Masarati
092aade428 cleanup 2006-05-14 15:11:23 +00:00
Howard Chu
813b95941e Fixed version of rev 1.361 2006-05-14 03:37:17 +00:00
Howard Chu
0b79eab474 Cleanup epoll read / error behavior 2006-05-14 00:26:33 +00:00
Howard Chu
1cf58aba1c Revert prev commit, spoke too soon, close race condition came back. 2006-05-13 12:35:12 +00:00
Howard Chu
d74a230229 Simplify connection mutexes 2006-05-13 11:50:00 +00:00
Pierangelo Masarati
93b88e0bbf make sure realloc'd memory is reset 2006-05-13 02:06:10 +00:00
Pierangelo Masarati
87ba3eb8b0 refine previous commits (don't leave bindings around) 2006-05-12 19:25:31 +00:00
Pierangelo Masarati
c1c8c05c1b first round at adding passwd exop support to slapo-rwm (ITS#4458) 2006-05-12 15:38:58 +00:00
Ralf Haferkamp
4d46b8b747 Additional fix for ITS#4522. The "dn=" ist not optional. 2006-05-12 11:48:57 +00:00
Howard Chu
d921fcb0c9 ITS#4531 temporarily go back to using quick sort instead of radix sort 2006-05-11 20:05:53 +00:00
Kurt Zeilenga
6651d19320 cleanup 2006-05-11 18:55:50 +00:00
Howard Chu
d8aabb008f ITS#4537 placate braindead compiler 2006-05-11 18:04:26 +00:00
Ralf Haferkamp
cf1304147d Add Pre- and Postread Control to the supported controls (ITS#4538) 2006-05-11 16:45:33 +00:00
Pierangelo Masarati
914bf9926f add "-n" to omit trailing newline 2006-05-11 14:36:20 +00:00
Howard Chu
a0ee28698c ITS#4516 clear restricted status if other Binds have succeeded 2006-05-11 13:39:44 +00:00
Howard Chu
837e9466b8 ITS#4534 propagate CSN for delete syncID sets 2006-05-11 10:46:44 +00:00
Howard Chu
6e751774c4 Fix for !LDAP_SYSLOG 2006-05-11 04:43:17 +00:00
Howard Chu
ad7d644437 Omit trailing newline from generated password, so it may be directed
to a file and used by commandline tools
2006-05-11 03:09:40 +00:00
Howard Chu
b8b8ca1814 Rearrange, ARGS_TYPES should not be bitmasks 2006-05-11 02:13:03 +00:00
Howard Chu
4bf6f8e348 ITS#4535 set default cn=config access to NONE 2006-05-11 00:40:34 +00:00
Pierangelo Masarati
7cc29d2547 allow slappasswd to generate cleartext secret 2006-05-11 00:12:54 +00:00
Pierangelo Masarati
fbbb8a5d93 fix ITS#4522; imply "+0" when no access is given 2006-05-10 22:25:06 +00:00
Pierangelo Masarati
d79fd46f33 don't allow "none" as access level 2006-05-10 22:23:24 +00:00
Howard Chu
f38bf4b362 plug leaks 2006-05-10 13:03:42 +00:00
Howard Chu
ed25c75d60 plug leak 2006-05-10 12:53:36 +00:00
Howard Chu
cc260ed6a0 coverity cleanup 2006-05-10 12:36:49 +00:00
Ralf Haferkamp
b8bf18f36b ITS#4532: check *pre/postread_ctrl before freeing 2006-05-10 09:07:37 +00:00
Pierangelo Masarati
42ab45aed2 fix warning message 2006-05-09 20:32:25 +00:00
Howard Chu
ab7e975159 check for NULLs from ber_mem funcs 2006-05-09 11:09:04 +00:00
Howard Chu
6b4de96679 plug leak 2006-05-09 10:52:22 +00:00
Howard Chu
0a43acc732 coverity cleanup 2006-05-09 10:41:05 +00:00
Howard Chu
912ff2798b Fix tlimit munging 2006-05-09 00:01:35 +00:00
Howard Chu
aed92f35c1 refine prev commit 2006-05-08 13:12:12 +00:00
Howard Chu
f7115e761c Fix strchrlen running past end of berval 2006-05-08 12:43:01 +00:00
Howard Chu
b41f2cad74 Fix dynacl tgrant/tdeny initialization 2006-05-08 09:06:37 +00:00
Luke Howard
87051a2a4a ITS#4525 2006-05-08 08:58:33 +00:00
Pierangelo Masarati
c2369771f8 cleanup 2006-05-06 17:22:59 +00:00
Pierangelo Masarati
373ded8d24 add URI list resorting feature (ITS#4524) 2006-05-06 16:15:25 +00:00
Pierangelo Masarati
af5b506e37 fix previous commit 2006-05-06 11:53:54 +00:00
Pierangelo Masarati
401b211d98 touch idle-timeout HAVE_TLS odds; silence warning #ifndef HAVE_TLS 2006-05-06 10:50:13 +00:00
Pierangelo Masarati
470fda7744 cleanup version parsing 2006-05-06 10:42:29 +00:00
Pierangelo Masarati
2110880be1 refine previous commit 2006-05-06 03:16:45 +00:00
Pierangelo Masarati
a9b7f3612b parallelize dobind/search (ITS#4519) 2006-05-06 02:25:53 +00:00
Pierangelo Masarati
b5eb214d79 fix "host=", broken by rev 1.446 of servers/slapd/config.c 2006-05-05 23:53:14 +00:00
Pierangelo Masarati
23c766bbfd make sure NULL pointers are not dereferenced 2006-05-04 22:07:35 +00:00
Pierangelo Masarati
9447b9fff4 gracefully handle server down while initiating a search (ITS#4518) 2006-05-04 08:37:31 +00:00
Howard Chu
a30fa88ad3 Apply logoldattr / reqOld to modRDN requests as well 2006-05-03 21:29:56 +00:00
Pierangelo Masarati
45b378c753 don't muck with freed memory (spotted by valgrind) 2006-05-03 18:54:04 +00:00
Howard Chu
2a5ecbccaa Remove some more yield() calls 2006-05-03 07:41:12 +00:00
Howard Chu
6fcc7b9b21 Hide starttls keyword if no TLS 2006-05-03 03:12:16 +00:00
Howard Chu
966c47e5b4 Detect TLS config changes 2006-05-03 02:48:23 +00:00
Howard Chu
d0b796f897 ITS#4515 add missing equality rules 2006-05-02 21:07:49 +00:00
Pierangelo Masarati
af1f87b96d ldap_pvt_runqueue_next_sched() may return a pointer to data that's freed by task run earlier (ITS#4517) 2006-05-02 20:32:37 +00:00
Howard Chu
608c85a9f0 ITS#4423, fix sessionlog lower bound in playlog 2006-05-02 05:08:59 +00:00
Howard Chu
a8f8dfe747 Use ldap_pvt_thread_pool_tid() 2006-05-02 00:58:05 +00:00
Howard Chu
c58f16d9b5 FIx rev 1.207, ACL parsing 2006-05-01 23:36:38 +00:00
Pierangelo Masarati
3b5d411af2 fix idassert "override" 2006-05-01 22:54:07 +00:00
Pierangelo Masarati
f9f8623f6e fix automated static build 2006-05-01 14:53:19 +00:00
Howard Chu
d8595b7c6e ITS#4463 add constraint overlay 2006-04-29 10:03:36 +00:00
Howard Chu
442a3f1fde searchbase is a required config parameter, log missing params. 2006-04-29 09:24:14 +00:00
Howard Chu
b1534d0ea9 Kludge to allow reading undefined attrs in DNs at startup 2006-04-29 02:15:53 +00:00
Howard Chu
1f6bb31d9d Honor ACLs, don't just require root any more 2006-04-29 01:26:07 +00:00
Howard Chu
f5558876c0 Log a comment with realdn if different from authzDN 2006-04-28 23:37:35 +00:00
Howard Chu
d38dd74818 Fix adding ACLs to specific DBs vs global/frontend 2006-04-28 23:01:59 +00:00
Howard Chu
e1ec64aaee rmutex_lock etc.: caller supplies thread id 2006-04-28 21:39:38 +00:00
Howard Chu
15ba27d5c1 Add logoldattr keyword for attributes that should always have their old
value logged in a Modify request (that matches the logold filter)
2006-04-28 20:40:43 +00:00
Howard Chu
9207979a86 Use recursive mutex to avoid deadlocks 2006-04-28 20:13:34 +00:00
Luke Howard
51a65afb86 SLAPI_PLUGIN_{PRE,POST}_RESULT_FN should also be called for
REP_SASL and REP_EXTENDED in addition to REP_RESULT -- the
distinction is not present in FDS
2006-04-28 08:39:29 +00:00
Howard Chu
716df7c62c ITS#4512 fix bogus Debug messages in rev 1.48 2006-04-28 06:22:48 +00:00
Howard Chu
eda2b46dd2 Revert 1.96, restore 1.91 functionality 2006-04-28 06:07:05 +00:00
Howard Chu
590bc6a7fa More logging for ITS#4423 2006-04-28 03:06:47 +00:00
Howard Chu
3879cac787 Fix slapadd of config tree, broken by ITS#4194 2006-04-27 23:52:53 +00:00
Howard Chu
f3ee4f5d30 Fix rev 1.52, frontendDB uses index {-1}. 2006-04-27 23:21:39 +00:00
Howard Chu
32712f4c26 Fix prev commit 2006-04-27 22:47:20 +00:00
Kurt Zeilenga
153e81817f ITS#4414: SLP attributes support from Peter Marschall 2006-04-27 19:36:40 +00:00
Hallvard Furuseth
2f04f61dc7 Support rootdn 2006-04-27 16:12:59 +00:00
Hallvard Furuseth
a242808f7e cleanup (unused variable) 2006-04-27 16:05:41 +00:00
Howard Chu
fd20e683df Add logging for ITS#4423 2006-04-27 09:18:43 +00:00
Howard Chu
e97673df67 ITS#4500 use rdwr lock instead of mutex 2006-04-27 07:52:12 +00:00
Howard Chu
2cd781eae3 Cleanup close 2006-04-27 02:29:13 +00:00
Howard Chu
8b06446b10 back-config support, cleanup init/destroy 2006-04-27 02:28:07 +00:00
Howard Chu
328470c114 OIDs for more overlays 2006-04-27 02:13:21 +00:00
Howard Chu
7cd5dddd4c back-config support. from Matthew Backes @ Symas.com and
Karsten Kuenne @ rentec.com (ITS#4506)
2006-04-27 02:12:34 +00:00
Howard Chu
d62fd3fd5a Cleanup prev commit 2006-04-27 00:27:43 +00:00
Howard Chu
6af9770996 Tweak mutexes 2006-04-27 00:19:32 +00:00
Howard Chu
4f1e154c12 Implement reqOld support 2006-04-27 00:01:20 +00:00
Howard Chu
bac546adb0 Fix prev commit 2006-04-26 10:26:46 +00:00
Howard Chu
0836354d1e Fix ITS#4505 2006-04-26 09:12:40 +00:00
Pierangelo Masarati
02b3af0900 check existence of newSuperior 2006-04-25 21:11:44 +00:00
Pierangelo Masarati
54f7d5aef3 allow empty modlist 2006-04-25 19:51:38 +00:00
Pierangelo Masarati
95b29919a3 more ITS#4503 cleanup 2006-04-25 19:30:48 +00:00
Pierangelo Masarati
004b69d070 callbacks must return valid error codes (ITS#4499) 2006-04-25 19:07:34 +00:00
Howard Chu
94c3bc332d Fix log_age_parse days parsing 2006-04-25 10:24:54 +00:00
Hallvard Furuseth
61d71d95b9 Cast isspace() arg to unsigned char. (Update to previous change.) 2006-04-24 20:32:23 +00:00
Howard Chu
478ae2346e PPOLICY_ERROR is primitive, not constructed 2006-04-22 00:23:44 +00:00
Howard Chu
449188fb73 Fix EXPIRE/GRACE tags in control value 2006-04-21 23:45:29 +00:00
Pierangelo Masarati
4d894c7d24 don't idassert if proxyAuthz == boundDN (ITS#4497) 2006-04-21 21:07:31 +00:00
Howard Chu
c636f654a4 Make be_shadow_update more specific for syncrepl ops, since mirrormode
lets normal users write to a syncrepl database
2006-04-20 22:20:25 +00:00
Pierangelo Masarati
19c5f261e5 re-fix ITS#4495 working around atoi() limitations 2006-04-19 23:57:02 +00:00
Hallvard Furuseth
5181a522c1 Revert rev 1.276, which broke back-shell "RESULT\ncode: <value>\n" (ITS#4495) 2006-04-19 22:03:13 +00:00
Hallvard Furuseth
1c51987f87 #define Statslog() also when --disable-debug (disappeared in rev 1.754) 2006-04-16 16:01:09 +00:00
Pierangelo Masarati
e01743193d more coverity issues 2006-04-14 00:17:27 +00:00
Howard Chu
edb1c663fc Fix translucent modify 2006-04-13 23:00:11 +00:00
Hallvard Furuseth
7948cb0bfd init_module() typo: Log() -> Log2() 2006-04-13 22:24:23 +00:00
Hallvard Furuseth
d60b89c148 meta_back_db_config: lutil_atou(version,) -> lutil_atoi 2006-04-13 22:23:03 +00:00
Hallvard Furuseth
7a19d8855d Remove useless assert: unsigned lc->lc_refcnt >= 0 2006-04-13 22:20:55 +00:00
Hallvard Furuseth
6567412f54 schema_destroy(): Handle failed slap_schema_init() 2006-04-13 22:19:19 +00:00
Hallvard Furuseth
c044d32262 slap_loglevel_get() prototype 2006-04-13 22:16:17 +00:00
Howard Chu
f5b815b1b3 ITS#4489 fix slap_tls_ld cleanup 2006-04-13 21:49:25 +00:00
Pierangelo Masarati
bd8514fb1e address protocol version issues (ITS#4488) 2006-04-13 16:20:00 +00:00
Pierangelo Masarati
423a2c73f4 fix *entry_get() behavior 2006-04-13 16:09:06 +00:00
Pierangelo Masarati
a2a9298080 cleanup 2006-04-13 14:46:16 +00:00
Pierangelo Masarati
ec849bd981 no TLS no party 2006-04-13 12:09:34 +00:00
Pierangelo Masarati
c08f05f0c0 group SlapReply search flags 2006-04-12 14:02:15 +00:00
Kurt Zeilenga
eb9a3c1876 unifdef -DSLAP_ACL_HONOR_DISCLOSE
unifdef -DSLAP_ACL_HONOR_MANAGE
unifdef -DSLAP_OVERLAY_ACCESS
unifdef -DSLAP_ORDERED_PRETTYNORM
unifdef -DSLAP_AUTHZ_SYNTAX
Move LDAP_COLLECTIVE_ATTRIBUTES, LDAP_COMP_MATCH, and LDAP_SYNC_TIMESTAMP
back behind LDAP_DEVEL (as these either too experimental or not yet
implemented).
2006-04-12 05:53:26 +00:00
Kurt Zeilenga
444ec670e3 really fix it 2006-04-11 22:27:41 +00:00
Kurt Zeilenga
809331582b Fix bad edit - like cause of ITS#4484 2006-04-11 22:26:52 +00:00
Kurt Zeilenga
cc2ad31bba remove more LDBM cruft 2006-04-11 18:56:11 +00:00
Kurt Zeilenga
2e2d036490 remove LDAP_DEVEL around lightweight dispatcher code
(presently in 2.4)
2006-04-11 18:34:09 +00:00
Pierangelo Masarati
dfc8e7f6b8 better fix for ITS#4483 2006-04-09 22:29:42 +00:00
Pierangelo Masarati
666e0677ca re-fix previous commit 2006-04-08 15:59:59 +00:00
Pierangelo Masarati
3d13b08a44 fix network-timeout commit 2006-04-08 14:45:45 +00:00
Pierangelo Masarati
cc8109db06 fix previous commit 2006-04-08 14:45:19 +00:00
Pierangelo Masarati
0500576056 add support for old proxyAuthz encoding; allow to workaround buggy implementations of the new version (now RFC4370) 2006-04-08 11:12:30 +00:00
Kurt Zeilenga
037d513aee Move LDBM to the attic 2006-04-08 04:24:48 +00:00
Kurt Zeilenga
c48338233e s/LDBM/BDB/ 2006-04-08 04:24:12 +00:00
Kurt Zeilenga
fd2d6bcca3 s/ldbm/hdb/ 2006-04-08 04:21:03 +00:00
Pierangelo Masarati
6a293c65b3 line up network-timeout with back-meta 2006-04-07 09:08:37 +00:00
Howard Chu
c1019fbfbd More for ITS#4323 fix 2006-04-07 04:17:44 +00:00
Howard Chu
4c754ec249 Fix typo 2006-04-07 03:08:43 +00:00
Howard Chu
c6d0edc3b7 Use TLS context stuff in syncrepl 2006-04-07 02:57:39 +00:00
Howard Chu
7a5d12cc51 Add TLS options to bindconf struct 2006-04-07 01:49:19 +00:00
Pierangelo Masarati
8c1b8d3f7b actually, if a connection is already in the AVL tree, use it if not binding; otherwise use a tainted one; taint connections that must be freed when refcnt goes to zero 2006-04-07 01:28:56 +00:00
Howard Chu
76bf5d4c76 Use new TLS SSL_CTX support 2006-04-07 01:25:46 +00:00
Pierangelo Masarati
0f1023b6c7 pedantic cleanup 2006-04-06 23:55:09 +00:00
Pierangelo Masarati
267486bfad fix ITS#4479 2006-04-06 23:48:55 +00:00
Kurt Zeilenga
8fb8b17c04 Code which doesn't hanlding allocation failure should use
ch_ routines, not SLAP_ macros
2006-04-06 21:44:05 +00:00
Kurt Zeilenga
1b9d68d6ba cleanup 2006-04-06 21:29:38 +00:00
Pierangelo Masarati
b03d8abcde don't leak if realloc fails (ITS#4477) 2006-04-06 19:13:41 +00:00
Pierangelo Masarati
c6ab0790d1 don't leak if realloc fails (ITS#4477); s/new/newptr/ 2006-04-06 19:07:48 +00:00
Hallvard Furuseth
a070e6c05f Avoid sprintf buffer overrun if huge hostname 2006-04-06 09:28:19 +00:00
Howard Chu
daec2febfb ITS#4476 revert connection_write processing back into main thread 2006-04-06 04:34:37 +00:00
Hallvard Furuseth
b4586b2f84 Fix for the previous ITS#4323 fix: for(expr;...) -> for(i=expr;...) 2006-04-05 14:15:34 +00:00
Howard Chu
c76eb501ab Revert cache-purge task, go back to purging inline 2006-04-05 07:17:11 +00:00
Howard Chu
0ad714d61e Additional fix for ITS#4323, must propagate search result controls 2006-04-05 07:03:25 +00:00
Kurt Zeilenga
45d0479d37 Reverse last commit. Wrong tree. 2006-04-05 00:40:53 +00:00
Kurt Zeilenga
31d64d4642 No LogTest in re23 2006-04-05 00:39:46 +00:00
Howard Chu
2bf9afd828 ITS#4323 allow lower overlays to work on master database 2006-04-05 00:27:16 +00:00
Hallvard Furuseth
eca5f7bf2d ITS#4472: Make t_rwlock a lock pointer instead of a lock, and malloc/free it.
That way, realloc(qm->templates...) won't move the ldap_pvt_thread_rdwr_t data.
2006-04-04 23:12:58 +00:00
Howard Chu
04dae5a020 ITS#4442 just log refint failures, client only cares about main request 2006-04-04 22:16:24 +00:00
Pierangelo Masarati
674c98fa7d honor stop on error 2006-04-04 19:48:22 +00:00
Pierangelo Masarati
e21f57cf05 complete previous commit (protect binds) 2006-04-04 18:45:59 +00:00
Pierangelo Masarati
543396c804 make sure only on bind at a time occurs; release resources only when appropriate 2006-04-04 17:41:50 +00:00
Pierangelo Masarati
2e9f2995ec only wait if no entry was returned 2006-04-04 17:41:13 +00:00
Howard Chu
3bfe4a7f77 plug leaks 2006-04-04 10:58:08 +00:00
Howard Chu
abb01fa437 cleanup 2006-04-04 10:47:42 +00:00
Howard Chu
fc61aab12b plug leak 2006-04-04 10:31:01 +00:00
Howard Chu
6a50826676 plug leaks 2006-04-04 10:27:28 +00:00
Howard Chu
548270776d Plug leak 2006-04-04 10:12:55 +00:00
Howard Chu
272211fbcd Same as ITS#4464, don't call cache_return_entry with NULL entry 2006-04-04 09:56:34 +00:00
Pierangelo Masarati
79df3e9c3c don't add unnecessary message 2006-04-03 22:06:12 +00:00
Pierangelo Masarati
14cbf4bc3e make sure an invalid connection is always released as appropriate 2006-04-03 21:56:30 +00:00
Pierangelo Masarati
aecfb85793 immediately return sizelimitExceeded if appropriate 2006-04-03 21:14:14 +00:00
Pierangelo Masarati
070c9d9f07 make sure rs->sr_err is fine 2006-04-03 00:33:34 +00:00
Pierangelo Masarati
c853ba1f0e more on recovery (ITS#4429) 2006-04-03 00:32:59 +00:00
Hallvard Furuseth
19a0d82937 Init & destroy so.s_mutex around syncprov_findbase() call in syncprov_op_search 2006-04-02 23:49:57 +00:00
Hallvard Furuseth
b2f79aa42e Initialize and destroy lc_lai.lai_mutex 2006-04-02 23:47:13 +00:00
Howard Chu
c63d1f04f8 plug leaks 2006-04-02 21:16:06 +00:00
Hallvard Furuseth
da0c0360e4 Warnings: Unused vars. funcptr=0, not =NULL. if(b=...) -> if((b=...) != NULL). 2006-04-02 19:54:24 +00:00
Hallvard Furuseth
c2f210a128 Return a value (0) from auditlog_db_close() and auditlog_db_destroy() 2006-04-02 16:40:39 +00:00
Hallvard Furuseth
909f5e6ae9 Cast %ld format arg to long 2006-04-02 16:38:46 +00:00
Hallvard Furuseth
b90c3d6fd3 Add missing snprintf args in debug output 2006-04-02 16:37:52 +00:00
Hallvard Furuseth
6c772f2057 assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL). 2006-04-01 23:52:42 +00:00
Hallvard Furuseth
581c1ff6c7 Cast ctype.h char arguments to unsigned char 2006-04-01 23:44:42 +00:00
Hallvard Furuseth
7ead463927 Remove suspicious whitespace from makefile 2006-04-01 23:29:41 +00:00
Pierangelo Masarati
44a75a03c0 allow overlays to inject an abandon without returning SLAPD_ABANDON 2006-04-01 18:59:26 +00:00
Pierangelo Masarati
46cb141185 seems to fix the equivalent of ITS#4429 in back-meta; had to give up per-target conn-ttl and idle-timeout 2006-04-01 18:56:39 +00:00
Pierangelo Masarati
e21ec88c88 fix previous commit (ITS#4465) 2006-04-01 15:31:35 +00:00
Pierangelo Masarati
3aac54f089 fix bound check (ITS#4449) 2006-04-01 15:22:13 +00:00
Pierangelo Masarati
fc89650cce add a cleanup handler for binds (ITS#4465) 2006-04-01 15:21:00 +00:00
Pierangelo Masarati
7cba7d0b39 don't use uninitialized mutexes 2006-03-31 23:07:48 +00:00
Pierangelo Masarati
2f366c3a52 initialize the connection_pool in server mode only 2006-03-31 23:04:13 +00:00
Howard Chu
c002351982 cleanup 2006-03-31 22:24:39 +00:00
Howard Chu
65079f768e Cleanup NULL check 2006-03-31 22:05:01 +00:00
Howard Chu
8c990ff2e9 plug leaks 2006-03-31 21:59:39 +00:00
Kurt Zeilenga
28191d7642 don't call cache_return_entry_rw with e of NULL 2006-03-31 21:03:51 +00:00
Howard Chu
c41a151d1e Cleanup 2006-03-31 12:53:32 +00:00
Howard Chu
0af1940f3f plug leaks 2006-03-31 12:20:04 +00:00
Howard Chu
90c8a53db4 plug leaks 2006-03-31 11:15:26 +00:00
Howard Chu
8cbd5ecc13 Cleanup 2006-03-31 10:45:23 +00:00
Howard Chu
bb9d5b1100 Plug leaks, fix coverity errors 2006-03-31 09:33:46 +00:00
Pierangelo Masarati
ac8c1f2a26 fix multiple response messages; add overall sleep time 2006-03-30 23:49:51 +00:00
Kurt Zeilenga
5487575086 Add link to FAQ entry on BDB tuning 2006-03-30 17:56:56 +00:00
Pierangelo Masarati
02966c3d1c fix handling of expired connections (ITS#4429; need to look at back-meta as well) 2006-03-29 01:26:42 +00:00
Pierangelo Masarati
bacd1f170f leave existing controls in place if proxyAuthz is not required by idassert (ITS#4457) 2006-03-28 21:45:54 +00:00
Pierangelo Masarati
e673b4d9ad propagate pretty DN (ITS#4456) 2006-03-28 19:20:01 +00:00
Pierangelo Masarati
0a465343fb cleanup 2006-03-27 00:31:38 +00:00
Pierangelo Masarati
51e1ab59cd streamline handling of simple bind by global overlays (ITS#4454) 2006-03-26 23:03:43 +00:00
Pierangelo Masarati
1418b2c5b1 fix previous commit: actually free the connection in case of failed bind 2006-03-25 01:12:27 +00:00
Pierangelo Masarati
fd5208c18f destroy bind connection after failed bind (ITS#4428) 2006-03-25 00:33:42 +00:00
Pierangelo Masarati
00073c8cac fix operational attrs return with chain overlay (ITS#4431); misc cleanup 2006-03-24 22:49:51 +00:00
Pierangelo Masarati
3160c03dab cleanup previous commit 2006-03-23 23:01:14 +00:00
Pierangelo Masarati
3437406a0b honor "chase-referrals no" (ITS#4447) 2006-03-23 21:01:19 +00:00
Pierangelo Masarati
324431062b refuse illegal values for "threads" (ITS#4433) 2006-03-20 12:12:28 +00:00
Pierangelo Masarati
9019ea74ee fix leak 2006-03-19 23:26:12 +00:00
Luke Howard
486721d531 Fix build if LDAP_X_TXN is undefined 2006-03-10 02:44:32 +00:00
Kurt Zeilenga
ffee887d71 Update certificate schema to use IANA assigned OIDs 2006-03-08 20:07:25 +00:00
Kurt Zeilenga
71511a0569 more txn infrastructure 2006-03-08 05:54:10 +00:00
Howard Chu
afa10c3486 Add "subord" alias for subordinate scope 2006-03-07 22:39:09 +00:00
Kurt Zeilenga
815c178edc control/TXN cleanup 2006-03-07 22:05:57 +00:00
Kurt Zeilenga
4a87798893 Remove developer's assert 2006-03-07 21:48:25 +00:00
Kurt Zeilenga
8788a2af36 Disallow pre/post reads in transactions (haven't yet specified
protocol mechanism to return update response controls).
2006-03-07 20:31:46 +00:00
Howard Chu
e30be8748a Fix prev commit 2006-03-07 12:55:27 +00:00
Howard Chu
2c7f300619 FIx olcMirrorMode keyword 2006-03-07 12:48:46 +00:00
Kurt Zeilenga
247536744e Some more txn infrastructure 2006-03-07 08:07:21 +00:00
Kurt Zeilenga
662051cd16 cleanup 2006-03-07 07:19:15 +00:00
Kurt Zeilenga
fad69dbef8 Additional TXN changes 2006-03-07 02:21:27 +00:00
Kurt Zeilenga
8ac8d70a55 TXN protocol element parsers (without any backend support)
Misc cleanup
2006-03-07 00:48:14 +00:00
Pierangelo Masarati
3861c47316 queue implicit binds (ITS#4409) 2006-03-03 16:27:00 +00:00
Kurt Zeilenga
4c64b8626d Add support for GSER-encoded certificateExactAsssertion values 2006-03-03 04:54:49 +00:00
Pierangelo Masarati
a3f4f0b2db map result codes as required (ITS#4419) 2006-03-02 00:35:12 +00:00
Luke Howard
fa1f4d3c38 slapi_ch_bvdup() should be implemented in terms of ber_dupbv() 2006-03-01 16:29:31 +00:00
Howard Chu
df91c3ef33 ITS#4372 add auditlog to build 2006-02-27 11:20:08 +00:00
Howard Chu
7b5528d68b ITS#4417 backglue must pass intermediate responses transparently.
syncprov must prevent send_ldap_result from being called for an
in-progress persistent search.
2006-02-27 09:20:55 +00:00
Luke Howard
cd18c6cb4d Fix slapi_valueset_count() for no value case 2006-02-27 05:21:11 +00:00
Luke Howard
8c674299bf Fix memory smasher in slapi_valueset_free() 2006-02-27 03:44:40 +00:00
Luke Howard
8a3e5eb1b8 Add SLAPI_OPERATION_MSGID
Add SLAPI_IS_INTERNAL_OPERATION
2006-02-20 09:30:28 +00:00
Pierangelo Masarati
41f963644c be conservative in reading subtree-exclude 2006-02-16 23:37:42 +00:00
Ralf Haferkamp
df7757b1fb fixed last commit 2006-02-16 13:22:37 +00:00
Ralf Haferkamp
1195d6946b Error out if creating the back-config entries fails when converting from
config file to config backend. [ITS: #4407]
2006-02-16 11:16:22 +00:00
Howard Chu
e18a6ab7f9 ITS#4406 don't cache attrsonly results 2006-02-16 08:16:49 +00:00
Kurt Zeilenga
0532ecfccd No longer hide cancel. 2006-02-16 05:05:52 +00:00
Kurt Zeilenga
8c8ea049cb Macro cleanup 2006-02-16 05:01:29 +00:00
Pierangelo Masarati
af0d2b1d2a add support for "subtree-exclude" 2006-02-16 01:26:39 +00:00
Pierangelo Masarati
fa72882808 fix error message 2006-02-16 01:10:45 +00:00
Luke Howard
ec023f9777 remove c_pb, it is no longer needed 2006-02-16 00:14:38 +00:00
Kurt Zeilenga
377aa0be68 ITS#4404: fix typo in ValuesReturnFilter control OID, add
temporary server-side support for old OID.
2006-02-15 21:30:35 +00:00
Ralf Haferkamp
93d5e01390 some more debug logging 2006-02-15 17:25:45 +00:00
Howard Chu
937bc5bbb7 Fix ITS#4401 teardown persistent clients when unconfiguring 2006-02-15 07:38:17 +00:00
Kurt Zeilenga
cbc11c9233 unifdef -DLDAP_NULL_IS_NULL 2006-02-14 23:18:12 +00:00
Luke Howard
727a16ca55 Remove SLAPI references 2006-02-14 09:21:30 +00:00
Luke Howard
dab5803a59 Use bi_db_{open,close} to run SLAPI start/close plugins 2006-02-14 09:20:50 +00:00
Kurt Zeilenga
3db579c414 Fixed misuse of matched entry 2006-02-13 21:35:58 +00:00
Luke Howard
bfaf2a805f Add sequential modify overlay to supported overlays 2006-02-13 02:24:26 +00:00
Kurt Zeilenga
3f7241826a fix typos 2006-02-12 07:03:12 +00:00
Pierangelo Masarati
53c40fac27 rework connection handling on multiple binds with the same connection 2006-02-11 17:40:28 +00:00
Howard Chu
a5eef48123 Fix ITS#4395, check for non-read/write epoll events 2006-02-10 18:27:50 +00:00
Kurt Zeilenga
d2d1eb786b Improved bignum detection/use 2006-02-10 08:21:02 +00:00
Luke Howard
4954adb7c1 formatting cleanup 2006-02-10 07:40:23 +00:00
Howard Chu
0cc7ed6d55 ITS#4394 fix segfault 2006-02-10 00:31:17 +00:00
Howard Chu
bf81549c88 Prefer long long to BIGNUM or GMP 2006-02-09 07:48:19 +00:00
Howard Chu
9eca89acc8 Improve prev commit 2006-02-09 07:02:40 +00:00
Howard Chu
6344d36df0 Same as ITS#4385, must wake listener after submitting job to runqueue 2006-02-09 06:53:49 +00:00
Howard Chu
88c3a5a5b6 Add debug message when deleting nonpresent entries 2006-02-08 21:24:43 +00:00
Luca Scamoni
d4ad06e788 s/olcMultiMaster/olcMirrorMode 2006-02-08 10:16:20 +00:00
Howard Chu
e183b5d093 s/multimaster/mirrormode/ we don't want folks confusing this with real
multimaster.
2006-02-08 05:48:41 +00:00
Pierangelo Masarati
6275c6ecdc make sure no invalid candidate gets used (had a core for i == META_TARGET_MULTIPLE) 2006-02-07 18:51:47 +00:00
Howard Chu
a4d161cff6 More unifdef SLAPD_MULTIMASTER cleanup 2006-02-07 01:05:57 +00:00
Pierangelo Masarati
f4c578cb31 delete all conns cached for a single client->proxy connection (partially addresses ITS#4387) 2006-02-06 21:39:56 +00:00
Howard Chu
83c259a207 Cleanup prev commit 2006-02-06 20:39:25 +00:00
Howard Chu
0e6aa53cd1 Unifdef SLAPD_MULTIMASTER, use config setting instead 2006-02-06 04:45:12 +00:00
Howard Chu
fe3b6d0071 ITS#4384 rework entryCSN handling, retrieve from incoming request
if it was provided. Always check and graduate, regardless of shadow status.
2006-02-05 01:09:48 +00:00
Howard Chu
f96e6378d6 filter2bv can't de-normalize UUIDs, must do it explicitly for back-ldap
in test045
2006-02-05 01:05:38 +00:00
Pierangelo Masarati
f0d6ac3e0b debug cleanup 2006-02-04 15:50:22 +00:00
Howard Chu
ec7e2af34a delete now redundant memsets 2006-02-03 19:37:12 +00:00
Pierangelo Masarati
140bc77e50 (blind) fix to ITS#4386 (uninitialized var) 2006-02-03 18:06:00 +00:00
Kurt Zeilenga
4bf9eb2365 fix comments 2006-02-03 04:10:29 +00:00
Pierangelo Masarati
9fd59d812d format error message as LDIF (do not assume the error messages do not contain fancy chars; ITS#4382) 2006-02-02 21:01:29 +00:00
Howard Chu
71d439aba7 Use "pcache" dynamic debug level 2006-02-02 08:31:15 +00:00
Howard Chu
0ef7742328 Reparse unknown debug flags after config is read to allow use
of dynamically registered debug levels
2006-02-02 08:30:56 +00:00
Howard Chu
57c25cbd68 Fix negative caching again, be sure it's really from zero entries returned 2006-02-02 02:52:54 +00:00
Pierangelo Masarati
54aefe30f7 implement proxy long-lived connection TTL 2006-02-01 23:10:12 +00:00
Pierangelo Masarati
0e2b26986e do not assume the matching rule synta has a validate handler (ITS#4380) 2006-02-01 21:53:58 +00:00
Howard Chu
f50316f141 Use LDAP_DEBUG_CACHE instead of TRACE. Delete remove_mutex. 2006-02-01 19:31:35 +00:00
Howard Chu
297d12c808 ITS#4376 add missing parameters in config_generic_wrapper 2006-01-28 08:26:21 +00:00
Howard Chu
bedac8bd60 Fix negative caching, only do it on Success 2006-01-27 22:55:28 +00:00
Kurt Zeilenga
a3fce95ffc Add note about contrib/slapd-modules 2006-01-25 22:12:16 +00:00
Howard Chu
a970038b0c ITS#4373, fix prev commit 2006-01-25 19:06:16 +00:00
Luke Howard
667d3c1a37 fix typo 2006-01-25 14:12:51 +00:00
Howard Chu
3d3ba13f92 ITS#4369 add log messages for delta syncrepl ops 2006-01-25 01:47:48 +00:00
Howard Chu
bebfc49d71 ITS#4370 always init slap_daemon mutexes 2006-01-25 01:36:18 +00:00
Kurt Zeilenga
f5b9ff7940 unifdef -DSLAPD_CONF_UNKNOWN_BAILOUT -DSLAPD_CONF_UNKNOWN_IGNORED=""
-DSLAPD_DEBUG_CONFIG_ERROR=LDAP_DEBUG_ANY
2006-01-24 04:40:01 +00:00
Howard Chu
fdc89d2604 ITS#4365 reset frs.sr_nentries before searching in syncprov_playlog 2006-01-23 22:23:00 +00:00
Luke Howard
0c0abfe917 slapi_filter_dup() can now use filter_dup() 2006-01-23 21:23:36 +00:00
Howard Chu
51c5916149 ITS#4364 add filter_dup, don't use str2filter to dup filters. 2006-01-23 20:53:52 +00:00
Howard Chu
3407467ca2 ITS#4361, 4362 fix autorecovery logic, add ALOCK_NOSAVE flag to record
txn/non-txn status of the environment.
2006-01-22 13:51:33 +00:00
Howard Chu
bf0692d5ba ITS#4360 must init c_minfree 2006-01-22 05:11:23 +00:00
Pierangelo Masarati
44abcdfa2f fix previous commit 2006-01-21 16:08:01 +00:00
Pierangelo Masarati
5360a5dc21 cleanup 2006-01-21 10:42:21 +00:00
Pierangelo Masarati
42bf993798 on't use freed memory; streamline parse error reporting 2006-01-21 10:41:41 +00:00
Howard Chu
2b0bccc74c ITS#4357 Solaris occasionally returns ENOSYS when selecting on a descriptor
in the midst of closing. Instead of special casing EBADF, ENOSYS, and
WSAENOTSOCK, just count if any error occurs two or more times in a row,
and log if so. Don't treat any error as fatal unless it occurs many times
in a row (SLAPD_EBADF_LIMIT).
2006-01-20 08:13:54 +00:00
Pierangelo Masarati
05088318df need normalized timestamp as well, although this is a SINGLE-VALUE attr 2006-01-19 23:20:45 +00:00
Howard Chu
c2b660f3d7 ITS#4355 timestamps must be normalized 2006-01-19 22:16:23 +00:00
Luke Howard
f341270a46 Permissive support for LDAP_MOD_INCREMENT -- treat absence of attribute
as if attribute existed with a value of 0
2006-01-19 22:06:24 +00:00
Howard Chu
4361a942ab Add ability to cache negative results and specify negative TTL on templates 2006-01-18 02:59:06 +00:00