Commit Graph

9152 Commits

Author SHA1 Message Date
Howard Chu
df54b1a244 In connections_shutdown - check for Uninitialized struct first, since
attempting to lock an unint'd mutex may crash on some platforms. And
there is no chance for an unint'd conn to get init'd while shutdown
is occurring, so the unprotected check of struct state is safe.
2006-12-21 06:06:32 +00:00
Howard Chu
5747896ba0 ITS#4780 plug leak 2006-12-20 05:41:14 +00:00
Pierangelo Masarati
4483e79906 further fix of ITS#4782 2006-12-19 22:11:33 +00:00
Pierangelo Masarati
6752a27c0e (almost) blind fixes to ITS#4782 2006-12-19 21:59:23 +00:00
Howard Chu
08b209ffa9 ITS#4782 quick fix, never send result from proxy authz check. 2006-12-19 20:37:38 +00:00
Howard Chu
7d9361e498 Fix: don't modify original filter in filter_map_rewrite 2006-12-19 19:47:01 +00:00
Howard Chu
8c90df8314 Fix cleanup for extended ops 2006-12-19 01:14:35 +00:00
Howard Chu
8274bc75e0 Fix rev 1.121/1.122 2006-12-18 22:42:46 +00:00
Howard Chu
01c38dd6ea ITS#4458 re-encode passwd request 2006-12-18 22:30:47 +00:00
Howard Chu
39c3efdd7b Pass extended ops thru as well 2006-12-18 22:29:45 +00:00
Howard Chu
8b457119ac Use a specific sr_type for intermediate Glue results 2006-12-18 19:46:40 +00:00
Howard Chu
44dfc63877 Fake intermediate Results to prevent premature cleanup 2006-12-18 03:10:04 +00:00
Howard Chu
da7a4a0708 Fix prev commit 2006-12-18 02:35:32 +00:00
Pierangelo Masarati
f52bb3d2c7 catch double free 2006-12-18 01:29:07 +00:00
Pierangelo Masarati
7bcbd40344 catch invalid read (i == -1) 2006-12-18 01:28:43 +00:00
Howard Chu
23423cd086 Fix callback handling 2006-12-18 00:27:38 +00:00
Howard Chu
ccf7b0fb04 Remove redundant search cleanup 2006-12-18 00:02:00 +00:00
Pierangelo Masarati
4e11af075f - add support for "use-temporary-conn" much like back-ldap
- fix various connection creation/setup concurrency issues
- use shared connection when always idasserting (similar to ITS#4781)
- reduce the impact of schema mapping when not used (tnx to gprof)
- fix temporary/tainted connection leak in abnormal conditions
2006-12-17 23:52:23 +00:00
Howard Chu
28793246e6 ITS#4638 restore params for Compare and Modify 2006-12-17 23:49:42 +00:00
Howard Chu
1e849ec14d ITS#4638 restore original parameters on op completion
(this is preliminary, more work remains)
2006-12-17 22:57:45 +00:00
Pierangelo Masarati
96152e2a3f fix another typo 2006-12-17 22:48:17 +00:00
Pierangelo Masarati
68fd83f2fd further fix previous commit 2006-12-17 22:21:41 +00:00
Pierangelo Masarati
ef0261e84c cleanup and document ITS#4781 commit 2006-12-17 22:20:02 +00:00
Pierangelo Masarati
3e427ad75a support a separate cached connection for binds when using (liberal) idassert flagged with "override" (ITS#4781) 2006-12-17 22:11:40 +00:00
Pierangelo Masarati
8830e0628e more portable fix to ITS#4756 2006-12-17 22:03:03 +00:00
Pierangelo Masarati
298d439d59 add support for auditContext (schema differs a bit from <draft-chu-ldap-logschema>, expired) 2006-12-16 14:55:47 +00:00
Quanah Gibson-Mount
0523f0e3a7 cleanup 2006-12-16 03:33:27 +00:00
Pierangelo Masarati
15d601e7bc refine previous commit 2006-12-15 02:10:22 +00:00
Pierangelo Masarati
917fbf427a make slap_sasl_open() comply with URL notation for IPv6 addresses 2006-12-15 02:01:58 +00:00
Pierangelo Masarati
5e3d7a55dc rewrite chased DN according to referral's (ITS#4776) 2006-12-15 02:00:24 +00:00
Pierangelo Masarati
97e6225cc9 implement full IPv6 support in ACLs; use URL notation (as suggested by Howard) to disambiguate parsing (ITS#4756) 2006-12-15 01:11:11 +00:00
Pierangelo Masarati
d29d83a80e protect assertion behind mutex (test should be atomic anyway...) 2006-12-14 19:22:00 +00:00
Howard Chu
4d9d4e2538 Fix connections_shutdown() 2006-12-14 02:12:39 +00:00
Howard Chu
1f35a953a1 Remainder of fix for ITS#4615 - stop processing overlay stack at glue
boundary
2006-12-13 03:03:47 +00:00
Howard Chu
69c4495bc2 ITS#4768 more be_add fallout 2006-12-12 21:00:12 +00:00
Howard Chu
871201e0d6 Fix prev commit 2006-12-12 20:04:44 +00:00
Howard Chu
499c9369e1 ITS#4777 fix modlist delete 2006-12-12 19:39:28 +00:00
Kurt Zeilenga
2761b06c58 ITS#4775: blind fix for buffer overflow condition in dead KrbIV code
(KrbIV code likely should be removed)
2006-12-12 14:18:54 +00:00
Kurt Zeilenga
80d74dc2cd Monitor attributes should have dSAOperation usage,
not directoryOperation usage.  Update test000 to
request return of only @monitor attributes.
2006-12-08 02:30:11 +00:00
Pierangelo Masarati
9fdb9b6e02 give cleanup another chance to free the temporary callback (ITS#4771) 2006-12-07 19:44:04 +00:00
Pierangelo Masarati
0b29856b16 don't use conditionals in macro arguments (ITS#4769) 2006-12-06 11:39:07 +00:00
Howard Chu
77ed3423b9 ITS#4767 fix bdb_add / translucent interaction 2006-12-04 22:06:58 +00:00
Pierangelo Masarati
c89d0db64f fix deadlock in case of bind error; propagate error as appropriate 2006-12-02 17:09:20 +00:00
Pierangelo Masarati
41c4afb331 improve error message 2006-12-02 16:17:01 +00:00
Pierangelo Masarati
e73ce756cc fix DN (and berval'ued items requiring) normalization in bindconf_parse (ITS#4766) 2006-12-02 16:13:25 +00:00
Pierangelo Masarati
19dabd2fa8 complain if instantiated outside of a database definition 2006-12-02 10:42:42 +00:00
Pierangelo Masarati
78af5454d2 use case consistent with RFCs (ITS#4764) 2006-12-02 10:30:29 +00:00
Howard Chu
c8a000cb7b ITS#4765 init slap_daemon.sd_actives 2006-12-01 15:02:14 +00:00
Howard Chu
43f0177a08 Fix prev commit, attrs_dup left a_desc uninit'd 2006-12-01 15:00:10 +00:00
Howard Chu
eb47d50da7 Tweak bei_state so cache_lru_add doesn't ever try to free just-added
entries. This allows us to use the frontend's entry directly instead
of having to entry_dup it before adding to the cache.
2006-12-01 14:48:38 +00:00
Howard Chu
b79d63516d Rewrite attrs_dup with attrs_alloc.
Add new entry_dup_bv that dups an entry in a single malloc. Leave it
unused for now; faster but consumes more heap.
2006-11-30 06:03:56 +00:00
Howard Chu
2a9afa55a7 Avoid unnecessary calls to oc_bvfind 2006-11-27 19:59:59 +00:00
Howard Chu
3711183610 Skip checkpoint call if size was not specified - defer time-based
checkpoints to the runq job
2006-11-27 19:54:04 +00:00
Howard Chu
ee9623ad0f Use quicksort in slap_mods_check for finding duplicates.
Currently enabled, preserving original order of input. See ifdefs to
alter the behavior: SLAP_MODS_CHECK_QUICKSORT, PRESERVE_ORDER
2006-11-25 10:58:45 +00:00
Pierangelo Masarati
0981516abf fix ITS#4760 differently 2006-11-24 13:02:26 +00:00
Pierangelo Masarati
de254abb27 destroy cached groups after identity change (ITS#4760) 2006-11-24 11:43:47 +00:00
Pierangelo Masarati
14ac05436a fix defaults in "group" in parsing (ITS#4761) 2006-11-24 11:29:05 +00:00
Pierangelo Masarati
09abc9f8ae fix leak in case of retry 2006-11-24 01:44:11 +00:00
Pierangelo Masarati
8326ac21b1 add "report" to "onerr" modes: continue a search in case one target returns an error, and only propagate the error at the end 2006-11-23 23:50:36 +00:00
Pierangelo Masarati
a06fc9cb02 fix backward compatibility issues in ACI; more debug logging (ITS#4759) 2006-11-23 23:29:45 +00:00
Howard Chu
574769395a ITS#4600 #if out redundant checks. will delete them later. 2006-11-23 11:07:03 +00:00
Pierangelo Masarati
14e1feed1f fix leak when 'rebind-as-user' is set (and client searches without prior bind) 2006-11-18 18:02:46 +00:00
Howard Chu
dfafda4128 Better tracking of system schema, refresh cn=schema after moduleloads 2006-11-17 22:52:20 +00:00
Howard Chu
701c39ed83 Tone down enum_tree warning 2006-11-17 22:51:04 +00:00
Howard Chu
f0f7324e0e Keep hardcoded schema together in lists 2006-11-17 20:11:11 +00:00
Howard Chu
28bd54a06d ITS#4755 add rid to syncrepl debug msgs 2006-11-17 02:11:57 +00:00
Howard Chu
b711426a99 Fix prev commit, reset DB pointer 2006-11-16 14:27:49 +00:00
Howard Chu
7cfa3ae34a Use runq to defer creation of log root entry; allows the log DB to come
after the main DB in the configuration. Allows logging cn=config.
2006-11-16 14:12:09 +00:00
Howard Chu
ee0026ec1e Don't bother setting up threads if there are no indexed attrs (unlikely...) 2006-11-15 01:20:34 +00:00
Howard Chu
4b6a3e8b6d Convert schema parsers to ConfigArgs so they can pass errors back to clients 2006-11-15 01:18:37 +00:00
Ralf Haferkamp
cdb9b2e2aa Add calls to PERL_SET_CONTEXT, as the active thread might not be the one
that created the PerlInterpreter object (ITS#4751)
2006-11-14 15:18:50 +00:00
Howard Chu
510c2b881e ITS#4746 additional leaks 2006-11-13 02:57:05 +00:00
Howard Chu
c9da788f78 ITS#4746 plug leaks 2006-11-13 02:44:45 +00:00
Howard Chu
bd95f8ab1c ITS#4738 provisional fix, still needs confirmation 2006-11-13 00:24:59 +00:00
Howard Chu
c6bf6672aa Add valx arg to config_parse_add - indicate which value in the current
operation is executing (as opposed to c->valx which indicates which
value in the target is being changed)
2006-11-12 02:22:23 +00:00
Howard Chu
48fce3d119 ITS#4742 cleanup config error reporting 2006-11-12 02:15:49 +00:00
Howard Chu
7a92d4af1f Short-circuit the mapping search if more than 1 entry is found 2006-11-12 00:54:37 +00:00
Howard Chu
4df4d4f46c Tweak prev commit, use LDAP_UNAVAILABLE to force early termination 2006-11-11 23:38:01 +00:00
Howard Chu
161574b00d ITS#4744 authzTo/authzFrom patterns are supposed to allow multiple targets.
Partially revert rev 1.126.
2006-11-11 22:55:09 +00:00
Howard Chu
b42d93f24f ITS#3755 silence strict-aliasing warnings 2006-11-10 10:39:54 +00:00
Howard Chu
47793aa3c9 Fix typo in prev commit 2006-11-09 06:47:47 +00:00
Howard Chu
64a2dbf9d4 ITS#4741 fix error check from external password quality module 2006-11-09 04:06:37 +00:00
Howard Chu
6ac62a7573 Fix - failed Binds could leave a closing connection open. 2006-11-09 01:42:21 +00:00
Howard Chu
d3dc069a62 ITS#4704 use an old CSN while purging log. 2006-11-07 02:12:29 +00:00
Pierangelo Masarati
efb04832bd rework compare
fix several minor issues with using dangling pointers and uninitialized data
fix caching of privileged connections
fix issues with unresponsive target failures during search
2006-11-05 12:05:47 +00:00
Pierangelo Masarati
6f1d78b3ce s/fprintf/Debug/; improve logging 2006-11-05 09:24:51 +00:00
Pierangelo Masarati
2f861c56a6 cleanup variables scope; re-sort conditions 2006-11-05 09:24:01 +00:00
Pierangelo Masarati
c148b2381e improve previous commit (ITS#4729) 2006-11-03 08:35:51 +00:00
Pierangelo Masarati
3a2277cdf8 fix dynlist dynamic build (ITS#4729) 2006-11-03 00:29:19 +00:00
Howard Chu
1b1a0ebf18 Tweak prev commit:
Preserve delete/replace indication from original request
2006-11-02 19:26:04 +00:00
Howard Chu
730d8e5bd3 ITS#4728 mod/Replace can have no values also 2006-11-02 18:57:55 +00:00
Pierangelo Masarati
71bcd4a4b6 s/ldap_int_discard/ldap_pvt_discard/ 2006-10-28 18:13:12 +00:00
Pierangelo Masarati
07abb0eb3a fix concurrency issue when binding before a search; rework and cleanup data structures (remove unused members) 2006-10-28 16:20:59 +00:00
Pierangelo Masarati
45156c6d7a need ldap-int.h for ldap_int_discard() declaration (ITS#4717) 2006-10-28 16:19:53 +00:00
Kurt Zeilenga
dbaf7c5c25 More ldapbis cleanup 2006-10-28 04:47:58 +00:00
Kurt Zeilenga
99b954e2c3 LDAPBIS cleanup 2006-10-28 03:53:02 +00:00
Kurt Zeilenga
672f8ef3f3 RFC 4511 calls for unavailableCriticalExtension to returned when
a server is unwilling to make use of a known critical control.
2006-10-28 03:52:53 +00:00
Pierangelo Masarati
051cbd3990 missing CVS header 2006-10-26 22:48:34 +00:00
Howard Chu
44475373db Fix prev commit again (ITS#4722) 2006-10-26 22:10:12 +00:00
Pierangelo Masarati
ca3451504c fix building without threads (don't publish any thread-related monitor info...) 2006-10-26 21:44:10 +00:00
Howard Chu
b009b1820e ITS#4720 release csn mutex before checkpointing. 2006-10-26 15:34:40 +00:00
Pierangelo Masarati
6416d83372 add ldap_int_discard(); use it in proxies (ITS#4717) 2006-10-22 20:31:41 +00:00
Pierangelo Masarati
0aebe8af08 rework timeout strategy a little bit 2006-10-21 18:57:27 +00:00
Kurt Zeilenga
857e74bbed Remove extraneous SLAP_RELAX macro 2006-10-21 03:37:35 +00:00
Howard Chu
9a3138cb55 Fix typo in prev commit 2006-10-17 19:45:55 +00:00
Howard Chu
eb16636abe Tweak prev commit, add more notes (re ITS#4667) 2006-10-17 19:37:10 +00:00
Howard Chu
354e90a0d9 From rev 1.373, releasing the mutex means connection_close() may get called
from another thread. Drop the assert, just return instead.
2006-10-17 19:31:42 +00:00
Pierangelo Masarati
40a893a07e temporarily change umask only if required 2006-10-15 18:28:22 +00:00
Pierangelo Masarati
8567ce8eed fix previous commit 2006-10-15 18:24:30 +00:00
Pierangelo Masarati
b6525c14d9 missing decl 2006-10-15 18:03:25 +00:00
Pierangelo Masarati
c0be820648 fix format; silence warning 2006-10-15 18:01:27 +00:00
Pierangelo Masarati
cbf05fd777 log messages related to blocking failures at "none" level as well, so they make it through slaptest 2006-10-15 15:03:02 +00:00
Pierangelo Masarati
59e60483fa create IPC sockets with wide-open permissions (0222 might suffice; ITS#4709) 2006-10-14 17:35:50 +00:00
Pierangelo Masarati
f449ee6500 cleanup and streamline response handling 2006-10-14 17:12:05 +00:00
Pierangelo Masarati
968da1cb14 add LDAP_OPT_DIAGNOSTIC_MESSAGE; replace deprecated option names 2006-10-14 17:04:17 +00:00
Pierangelo Masarati
b1a2be99c6 don't mix return codes (ITS#4711) 2006-10-14 09:26:22 +00:00
Pierangelo Masarati
fb2d3926ce only abort update if failed pre/post read control is critical: the only thing RFC 4527 says about failure is that in case of failure of the read, no control is appended to the result message; maybe no failure should ever occur (please review) 2006-10-14 01:08:41 +00:00
Pierangelo Masarati
117caa9aeb read entry should allow special attributes in request (*, +, 1.1) 2006-10-14 00:59:55 +00:00
Pierangelo Masarati
07f61475c7 read entry needs o_bd for ACLs 2006-10-14 00:59:22 +00:00
Howard Chu
6f13331f4f Drop extraneous test from copy/paste (1.200) (coverity) 2006-10-08 00:37:18 +00:00
Howard Chu
65f7c1a50d Fix uninit (coverity) 2006-10-08 00:31:08 +00:00
Howard Chu
acdddee3ab Fix uninit'd cb (coverity) 2006-10-08 00:26:32 +00:00
Pierangelo Masarati
f8d1a61866 more on clarification of special proxy identities and resilience to connection failure 2006-10-07 18:07:56 +00:00
Pierangelo Masarati
eb29c7c37b reword comment 2006-10-07 13:12:16 +00:00
Howard Chu
b14e6e00b5 ITS#4695 same fix for delta-sync 2006-10-06 01:57:50 +00:00
Howard Chu
4e9c39d626 ITS#4695 fix modrdn newSup 2006-10-05 03:56:23 +00:00
Kurt Zeilenga
d39809f1ab Incorporate a bit of text from RFC 4524, just to make a point regarding
ITS#4693.
2006-10-03 21:23:02 +00:00
Howard Chu
e9ecaa5d81 ITS#4692 entries without pwdChangedTime attribute have non-expiring pw 2006-10-03 09:25:54 +00:00
Pierangelo Masarati
5714f8565f fix rebind with idassert when a connection expires; also, fix override 2006-09-30 01:11:19 +00:00
Pierangelo Masarati
576646abb1 DB_BUFFER_SMALL is BDB 4.4 only 2006-09-27 12:34:00 +00:00
Ralf Haferkamp
e1f068f712 Check for the correct return code of cursor->c_get() (DB_BUFFER_SMALL) 2006-09-27 10:51:06 +00:00
Pierangelo Masarati
b769f44619 fix ITS#4686 (retry with idassert) 2006-09-26 15:12:07 +00:00
Pierangelo Masarati
0e9983ff2b fix ITS#4686 (retry with idassert) 2006-09-26 14:51:47 +00:00
Pierangelo Masarati
067d6904c2 don't know exactly the reason, but here without this back-hdb suddenly starts crashings all times (since bdb_monitor_* stuff) 2006-09-26 08:43:01 +00:00
Pierangelo Masarati
8f90eb97ec use right, although empty, function in bdb_db_destroy() 2006-09-25 23:45:29 +00:00
Pierangelo Masarati
3133b0a704 not sure, but I believe back-hdb needs monitor.c as well... 2006-09-25 23:44:50 +00:00
Pierangelo Masarati
c4a0d94883 monitor max file descriptor number 2006-09-25 23:44:17 +00:00
Howard Chu
393e6e5ec0 Tweak prev commit, avoid referencing syncop when resetting qtask 2006-09-21 10:12:42 +00:00
Howard Chu
c1fad2d603 ITS#4658 propagate errors from syncprov_sendresp; drop qtask on errors.
Note: need a way to close the connection too.
2006-09-21 09:42:40 +00:00
Howard Chu
d6d31af4f0 send_search_reference should propagate errors 2006-09-21 09:28:49 +00:00
Howard Chu
db082f4b1d Fix prev commit 2006-09-20 20:22:59 +00:00
Howard Chu
f63f46f0b1 Use a single malloc for entry_decode instead of two - partially decode
the entry to get nvals first, so the size can be computed.
2006-09-20 02:43:47 +00:00
Pierangelo Masarati
cbc238721a typo in previous commit... 2006-09-17 22:24:41 +00:00
Pierangelo Masarati
036289f9c4 support for Solaris' /dev/poll (need to manually define SLAP_X_DEVPOLL; needs work yet) 2006-09-17 22:17:34 +00:00
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