Commit Graph

444 Commits

Author SHA1 Message Date
Pierangelo Masarati
aecfb85793 immediately return sizelimitExceeded if appropriate 2006-04-03 21:14:14 +00:00
Pierangelo Masarati
c853ba1f0e more on recovery (ITS#4429) 2006-04-03 00:32:59 +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
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
a3f4f0b2db map result codes as required (ITS#4419) 2006-03-02 00:35:12 +00:00
Pierangelo Masarati
41f963644c be conservative in reading subtree-exclude 2006-02-16 23:37:42 +00:00
Pierangelo Masarati
af0d2b1d2a add support for "subtree-exclude" 2006-02-16 01:26:39 +00:00
Kurt Zeilenga
cbc11c9233 unifdef -DLDAP_NULL_IS_NULL 2006-02-14 23:18:12 +00:00
Pierangelo Masarati
53c40fac27 rework connection handling on multiple binds with the same connection 2006-02-11 17:40:28 +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
Pierangelo Masarati
54aefe30f7 implement proxy long-lived connection TTL 2006-02-01 23:10:12 +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
Pierangelo Masarati
d168b49464 make back-meta conform with man page 2006-01-14 15:28:28 +00:00
Pierangelo Masarati
9795721f7a improve back-meta retry capabilities (ITS#4328) 2006-01-11 19:33:44 +00:00
Pierangelo Masarati
543c588772 don't send error with back-meta 2006-01-09 15:13:29 +00:00
Pierangelo Masarati
6995603a3d refine fix to ITS#4315; apply it to back-meta as well 2006-01-09 14:20:37 +00:00
Pierangelo Masarati
090945b89e allow proxying of dynamic objects (irrespective of the support provided to dynamic objects); but back-meta does not support extended ops yet... 2006-01-06 17:08:06 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Pierangelo Masarati
8d4418b044 fix handling of bind-timeout 2005-12-21 17:28:27 +00:00
Pierangelo Masarati
8346de462b silence warning 2005-12-20 20:36:05 +00:00
Pierangelo Masarati
fcda57e90f use macros instead of numbers... 2005-12-13 20:11:26 +00:00
Pierangelo Masarati
bd975514de add (and document) customizable bind-timeout 2005-12-12 15:57:58 +00:00
Pierangelo Masarati
361a97108b minor cleanup 2005-12-12 14:33:34 +00:00
Pierangelo Masarati
e113e18bb6 more about sizelimit disclose issue in back-meta (ITS#4213) 2005-12-11 23:39:09 +00:00
Pierangelo Masarati
1b42fde372 implement (per-target) per-conn proxy-side idle-timeout (ITS#4115); revitalize (per-target) network-timeout in back-meta; fix issue with connection initialization error in ldap_back_retry(); cleanup configuration of back-ldap 2005-12-07 17:35:02 +00:00
Pierangelo Masarati
5f8f4554ff cleanup 2005-12-05 15:21:49 +00:00
Kurt Zeilenga
48cb85865d Remove some unnecessary #ifdefs 2005-11-26 07:38:18 +00:00
Pierangelo Masarati
b3c8a976ec use LDAP_SIZELIMIT_EXCEEDED; rework the return values of slap_send_search_entry(); silence a few warnings 2005-11-25 22:17:24 +00:00
Pierangelo Masarati
ea83f6a669 check sizelimit in frontend (ITS#4213) 2005-11-25 00:28:33 +00:00
Pierangelo Masarati
ce367bcc25 use friendly form for timeouts 2005-11-24 21:21:27 +00:00
Pierangelo Masarati
d34fffcaf9 use lutil_ato*() whenever appropriate 2005-11-24 01:10:05 +00:00
Pierangelo Masarati
0fd295a321 first round of number/time parsing fixes 2005-11-23 17:29:16 +00:00
Pierangelo Masarati
e83f0f900b set the berval length\! (ITS#4196) 2005-11-22 12:13:07 +00:00
Pierangelo Masarati
133a673e65 don't return matchedDN in the case described in ITS#4195 2005-11-22 11:13:14 +00:00
Pierangelo Masarati
4852bf8a58 don't care about empty matched/text #ifdef LDAP_NULL_IS_NULL 2005-11-20 01:59:26 +00:00
Pierangelo Masarati
7fa4b159bf fix dangling resources issue in slapd-ldap; completely rework slapo-chain to fix the resource leak/concurrency issue; add support for multiple well-known URIs to set credentials for, and deal with unknown URIs anonymously; similar reworking and cleanup for slapd-meta 2005-11-19 15:00:50 +00:00
Pierangelo Masarati
af23be3675 silence warnings... 2005-11-14 21:47:17 +00:00
Pierangelo Masarati
1145840994 remove from AVL before freeing... 2005-11-09 03:28:55 +00:00
Pierangelo Masarati
4cab386d13 backport write operation timeouts from back-meta to back-ldap; minor cleanup & silence warnings 2005-11-06 23:29:10 +00:00
Pierangelo Masarati
852e4e3109 allow per-target retry in searches; taint invalid connections; don't massage the pseudorootdn (ITS#4150) 2005-11-05 14:44:43 +00:00
Pierangelo Masarati
acb17be789 fix size/time limit (ITS#4145) 2005-11-04 12:42:39 +00:00
Pierangelo Masarati
0207dcd3f9 import leak plug from slapo-rwm 2005-11-03 15:20:33 +00:00
Pierangelo Masarati
ac6b3e1415 don't leak massaged referral DN 2005-11-03 14:06:26 +00:00
Pierangelo Masarati
3cb2bc0c56 various cleanup 2005-11-01 16:36:17 +00:00
Pierangelo Masarati
cedb88c373 eat up values of removed attrs 2005-11-01 13:42:51 +00:00
Pierangelo Masarati
d3f33d8139 better fix: in case of error during bind, just bail out (very conservative, though) 2005-11-01 11:00:55 +00:00
Pierangelo Masarati
e60d7c7f24 fix incorrect bind error (ITS#4129) 2005-11-01 09:47:30 +00:00
Pierangelo Masarati
67397c46be do not return success; frontend already does (ITS#4122) 2005-10-29 12:49:57 +00:00
Pierangelo Masarati
cfa2eefe3c fix previous commit 2005-10-25 14:50:05 +00:00
Pierangelo Masarati
8a5a1ab39f fix handling of invalid DN-valued attrs (ITS#4107) 2005-10-24 20:22:08 +00:00
Pierangelo Masarati
a16521ed4e fix error message for invalid "uri" args 2005-10-15 12:33:04 +00:00
Pierangelo Masarati
b48ace2dfe more about ITS#4086: fix back-meta as well 2005-10-14 00:43:23 +00:00
Pierangelo Masarati
644d9000f9 fix ITS#4073 2005-10-10 14:54:14 +00:00
Pierangelo Masarati
97614859be fix ITS#4071 2005-10-08 19:39:56 +00:00
Pierangelo Masarati
ada7954667 deal with the case a pseudorootn is not defined 2005-10-01 18:31:14 +00:00
Pierangelo Masarati
01bb0fa1ea plug selected leaks resulting from ITS#4056 & ITS#4057 implementation; may need further cleanup and reworking to streamline a bit 2005-10-01 18:07:00 +00:00
Hallvard Furuseth
05f5c7525b Fix snprintf() format 2005-09-26 04:39:51 +00:00
Pierangelo Masarati
112be0118e cleanup states/timeout handling in back-ldap/meta; add connection pooling and defer of pseudoroot bind to back-meta 2005-09-24 18:39:26 +00:00
Pierangelo Masarati
e2c9c843e1 fix previous commit; cleanup few 64 bit issues 2005-09-24 17:09:19 +00:00
Pierangelo Masarati
ae0b39e3cc use result of validation (ITS#4028) 2005-09-19 09:06:29 +00:00
Pierangelo Masarati
9129a2f7ee silence warnings 2005-09-10 18:59:35 +00:00
Pierangelo Masarati
a1ff59f436 pretty the DN as well 2005-09-06 17:19:36 +00:00
Pierangelo Masarati
85e56eb653 don't lookup rootdn if the password is incorrect (ITS#4004) 2005-09-06 12:35:37 +00:00
Pierangelo Masarati
4ba83103d9 fix test before releasing resources (ITS#3990) 2005-08-31 15:11:25 +00:00
Pierangelo Masarati
a2ea1edb48 save target errors for later evaluation 2005-08-31 01:55:34 +00:00
Pierangelo Masarati
093994cfd5 further refine previous commit 2005-08-30 23:55:15 +00:00
Pierangelo Masarati
6ff4357427 fix previous commit 2005-08-30 21:21:32 +00:00
Pierangelo Masarati
b86467e0f8 cleanup previous commit (thanks to Hallvard) 2005-08-30 10:36:24 +00:00
Pierangelo Masarati
7a85e25402 prettify matchedDN 2005-08-28 14:50:41 +00:00
Pierangelo Masarati
39998dfe8d prettify matchedDN; fix memory handling 2005-08-27 19:21:43 +00:00
Howard Chu
4cc7efdadc Revert ITS#3577 patch, breaks Windows build and not needed in RE23. 2005-08-26 02:20:45 +00:00
Pierangelo Masarati
6cb8b14435 allow undefined attrs to be "proxied" (ITS#3959) 2005-08-25 21:14:26 +00:00
Pierangelo Masarati
b90daf83f9 honor onerr on bind 2005-08-25 08:55:55 +00:00
Pierangelo Masarati
075220dd7e need some minimal timeout otherwise strange issues occur 2005-08-22 18:14:41 +00:00
Pierangelo Masarati
ec1042b19e allow a minimal timeout in compares 2005-08-22 09:42:26 +00:00
Pierangelo Masarati
e5d302e84f normalize/pretty attributes when possible 2005-08-20 11:31:07 +00:00
Pierangelo Masarati
9c02a32b7c more about matchedDN in back-meta (ITS#3944) 2005-08-18 14:55:28 +00:00
Pierangelo Masarati
11211d0dae strip entryDN from search entries; frontend will reattach it :( 2005-08-18 11:26:29 +00:00
Pierangelo Masarati
557f5eb2ca allow noUserMod attrs write proxying when manageDIT is set (still to work in frontend for add) 2005-08-17 19:40:02 +00:00
Pierangelo Masarati
99ea177e05 implement overlapping targets enhancement (ITS#3711) 2005-08-17 08:34:49 +00:00
Pierangelo Masarati
76f52279ef fix "matched" return and return code (ITS#3944) 2005-08-17 08:25:48 +00:00
Pierangelo Masarati
24befe380c fix resources release issue 2005-08-17 08:25:10 +00:00
Pierangelo Masarati
c4ab7b1af2 in some cases, back-meta needs to propagate pseudo-root identity even if it's not the authorizing backend 2005-08-17 08:19:37 +00:00
Pierangelo Masarati
8fdfe1fcd0 plug yet another one-time leak 2005-08-07 16:45:13 +00:00
Pierangelo Masarati
fa27310d77 use trylock only where necessary 2005-08-07 00:35:11 +00:00
Pierangelo Masarati
fe2492309a improve messages 2005-07-21 08:54:04 +00:00
Pierangelo Masarati
ac590d6b55 fix previous commit 2005-07-19 18:03:06 +00:00
Pierangelo Masarati
c5c0c3e4f5 fix previous commit (ITS#3871) 2005-07-19 14:25:10 +00:00
Pierangelo Masarati
882f43bf01 more about rewrite leaks 2005-07-19 14:24:26 +00:00
Pierangelo Masarati
efe74fbae0 fix yet another leak 2005-07-19 11:16:24 +00:00
Pierangelo Masarati
54a0c02c3d implement per-target, per-operation timeouts 2005-07-19 00:43:38 +00:00
Hallvard Furuseth
81ecb0b153 assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL). 2005-07-18 06:22:33 +00:00
Pierangelo Masarati
03b6a692aa trim (long ago) unused files 2005-07-16 16:06:34 +00:00
Pierangelo Masarati
5cb994ad36 fix memory leak (ITS#3862) 2005-07-15 01:08:34 +00:00
Hallvard Furuseth
d6cc947561 Silence "unused <something>" warnings 2005-07-14 19:52:08 +00:00
Pierangelo Masarati
754a059951 fix concurrency issues 2005-07-04 22:41:54 +00:00
Pierangelo Masarati
9146b262ad fix potential deadlock; first round of refcnt for connections 2005-07-03 23:28:35 +00:00
Pierangelo Masarati
ba0f3112c4 add "matchedDN" field when appropriate 2005-06-28 23:22:48 +00:00
Pierangelo Masarati
297c7933b1 add "onerr" flag 2005-06-25 15:13:44 +00:00
Pierangelo Masarati
b836fc3ea2 first round of provisions for back-config 2005-06-19 22:41:12 +00:00
Pierangelo Masarati
595d41b421 cleanup 2005-06-18 18:57:46 +00:00
Pierangelo Masarati
7fdcd2ec60 fix ITS#3785: do our best to deal with invalid filters... 2005-06-16 19:19:11 +00:00
Pierangelo Masarati
e12c4ca230 preemptive time limit check in proxy backends 2005-06-13 19:14:40 +00:00
Pierangelo Masarati
be53e82650 fix entry DN free 2005-05-21 14:53:05 +00:00
Pierangelo Masarati
46387a12a9 fix sizelimit interaction with glue overlay (ITS#3724) 2005-05-13 13:10:33 +00:00
Pierangelo Masarati
96773427db don't bother about slap_dummy_bv 2005-05-13 09:06:28 +00:00
Pierangelo Masarati
c4cfe03619 fix sizelimit bug (ITS#3720) 2005-05-12 22:37:56 +00:00
Howard Chu
376537f3d7 ITS#3577 Make librewrite shared - > liblrewrite.la 2005-05-11 10:18:27 +00:00
Pierangelo Masarati
1c8a9fdbeb remove cruft 2005-05-11 08:41:35 +00:00
Pierangelo Masarati
f9e17b539a remove obsolete tests 2005-05-11 08:39:39 +00:00
Pierangelo Masarati
e6e80d00f1 don't leave consts around 2005-05-07 10:52:05 +00:00
Pierangelo Masarati
d23243a507 more on strict config parsing (ITS#3705) 2005-05-06 16:42:03 +00:00
Pierangelo Masarati
5ad7133202 add support for "subordinate" scope 2005-05-06 10:21:00 +00:00
Pierangelo Masarati
a215fdea66 a bit more reworking and streamline; the change to the LAST_CONN test seems to eliminate the last LDAP_BUSY problems on the only machine that was showing it yet; please test 2005-05-05 17:34:11 +00:00
Pierangelo Masarati
f0122ce3fc move discover function to frontend 2005-05-05 00:22:43 +00:00
Pierangelo Masarati
4d9750afb5 honor T-F filters (ITS#3706) and lots of cleanup 2005-05-04 23:57:55 +00:00
Pierangelo Masarati
642b788fb2 fix printing a NULL value (ITS#3698) 2005-05-03 23:42:28 +00:00
Pierangelo Masarati
137e46059c don't return client API error if the server is down... 2005-04-30 17:54:35 +00:00
Pierangelo Masarati
58a358e7b2 more cleanup in handling timeouts in ldap_result() 2005-04-26 21:48:43 +00:00
Pierangelo Masarati
bb21f09d1f use safe(r) default 2005-04-26 20:10:15 +00:00
Pierangelo Masarati
6076695eb8 handle the null lud_dn case... 2005-04-26 10:34:37 +00:00
Pierangelo Masarati
6b035aac3e work around the last issue: some times the result times out while the other party is not willing to send any response; give it a second chance 2005-04-26 10:02:19 +00:00
Pierangelo Masarati
06eef0c78d reset candidates when intentionally abandoning; consistently handle referrals 2005-04-25 23:54:51 +00:00
Pierangelo Masarati
fa49a73fc4 fix retry; add per-target configurable number of retries; addresses ITS#3672, ITS#3676 & ITS#3680 2005-04-25 18:56:56 +00:00
Pierangelo Masarati
41aad6e27f more on error handling reworking; should address ITS#3672 and ITS#3676 2005-04-22 21:43:52 +00:00
Pierangelo Masarati
4ecdb6285d cleanup 2005-04-22 17:30:59 +00:00
Pierangelo Masarati
eda6c5abcb remove unnecessary call 2005-04-22 12:59:30 +00:00
Pierangelo Masarati
95d3db5d25 fix previous commit 2005-04-21 22:22:43 +00:00
Pierangelo Masarati
08a6909f73 add basic support for retry; protect internal bind behind mutexes; rework search, review candidate selection; minor cleanup. Passes concurrency test036 2005-04-21 03:17:31 +00:00
Pierangelo Masarati
c3fd851a59 slightly reduce malloc overhead; minor cleanup 2005-04-20 18:52:10 +00:00
Pierangelo Masarati
410638fda1 fix memory leak (ITS#3669) 2005-04-19 14:31:07 +00:00
Pierangelo Masarati
623615e2f1 protect macro 2005-04-16 03:13:37 +00:00
Pierangelo Masarati
c1b5e84e2d a) implement a new candidate selection procedure, based on target naming
context checking and multiple match resolution via an internal search
b) move the candidate listing in a persistent per-thread buffer
c) fix bind procedure
d) minor cleanup

(a) and (b) should address ITS#2935; (b) and (c) should address ITS#3171

A test is also added
2005-04-16 02:25:41 +00:00
Pierangelo Masarati
d7a5355176 enable tls-related code only if available; import fix for asynchronous starttls from back-ldap 2005-02-27 17:20:04 +00:00
Howard Chu
ee42df4cea Always return SLAPD_ABANDON in response to op->o_abandon being set. 2005-02-18 00:37:40 +00:00
Pierangelo Masarati
e50092878d temporarily revert to synchronous start tls 2005-02-05 17:33:22 +00:00
Pierangelo Masarati
73ca57cfef import selected improvements from back-ldap: use asynchronous Start TLS exop; allow propagating TLS if used in the original connection; minor cleanup 2005-02-05 15:55:27 +00:00
Pierangelo Masarati
e3a19bfa32 import referral chaing options from back-ldap 2005-02-05 11:33:32 +00:00
Pierangelo Masarati
5427af1f62 don't play with controls at bind; rather use the ldap_*_ext API 2005-01-26 09:52:12 +00:00
Pierangelo Masarati
947f87441e don't play with controls at bind 2005-01-26 09:45:23 +00:00
Pierangelo Masarati
74896472de don't add the trailing '??base' to URIs 2005-01-26 09:29:22 +00:00
Pierangelo Masarati
c6b6d2a5ec StartTLS (ITS#3507) + chain overlay fixes and improvements 2005-01-24 09:38:11 +00:00
Pierangelo Masarati
ae0f47b063 improve parsing of acl-authcDN/acl-passwd 2005-01-22 18:48:03 +00:00
Pierangelo Masarati
b116bb3814 fix ITS#3499 (may need further testing) 2005-01-20 22:44:54 +00:00
Pierangelo Masarati
332438c3aa fix ITS#3499 2005-01-20 19:28:01 +00:00
Pierangelo Masarati
0057b66f87 improve previous commit; implement missing objectClass mapping feature 2005-01-20 18:39:51 +00:00
Pierangelo Masarati
521100db56 fix ITS#3498; some cleanup 2005-01-20 17:44:53 +00:00
Pierangelo Masarati
69fbd2e66e propagate opattrs if shadow update 2005-01-13 18:43:59 +00:00
Pierangelo Masarati
8d14165274 fix ITS#3464 2005-01-08 10:59:32 +00:00