Howard Chu
8cf9982912
Portability cleanups
2006-09-14 07:58:02 +00:00
Howard Chu
3f4e196beb
Portability cleanups
2006-09-14 07:29:46 +00:00
Howard Chu
811a90d5e1
Fix prev commit
2006-09-14 06:47:14 +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
8585b7d6bb
ITS#4606 fix sys_errlist detection on WIN32 / MSVC
2006-09-14 05:02:41 +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
028e7c46ca
document the syntax of the ldap.conf(5) file
2006-09-12 21:02:30 +00:00
Pierangelo Masarati
4481502313
use a more reasonable max line length (ITS#4669)
2006-09-12 20:41:37 +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
Howard Chu
9351c57c28
Fix xref broken by sasl.sdf 1.30
2006-09-12 00:16:52 +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
9aae5fda23
rename functions/macros (no impact, they're currently unused)
2006-09-09 16:16:27 +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
4efbb9960c
point to slapd(8) for details on "-d"
2006-09-08 18:26:57 +00:00
Pierangelo Masarati
eb30ec43e8
re-enable "-d '?'" as a means to list what loglevels are available (ITS#4666)
2006-09-08 18:26:20 +00:00