Commit Graph

223 Commits

Author SHA1 Message Date
Pierangelo Masarati
7fd11ad679 minor cleanup 2006-09-17 16:44:40 +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
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
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
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
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
Pierangelo Masarati
5dcb4828d7 use bound credentials, if any 2006-07-01 16:45:07 +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
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
Pierangelo Masarati
740f196548 rework quarantine locking and so 2006-06-07 23:25:38 +00:00
Pierangelo Masarati
9aecc6c7e0 cleanup 2006-06-07 14:48:10 +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
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
Pierangelo Masarati
795841b5a4 implement proxy quarantine (ITS#4569) 2006-05-27 19:54:27 +00:00
Pierangelo Masarati
e5c173691d add cancel strategies (ITS#4560) 2006-05-20 14:29:01 +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
87ba3eb8b0 refine previous commits (don't leave bindings around) 2006-05-12 19:25:31 +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
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
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
Pierangelo Masarati
0f1023b6c7 pedantic cleanup 2006-04-06 23:55:09 +00:00
Pierangelo Masarati
674c98fa7d honor stop on error 2006-04-04 19:48:22 +00:00
Pierangelo Masarati
2e9f2995ec only wait if no entry was returned 2006-04-04 17:41:13 +00:00
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
Kurt Zeilenga
cbc11c9233 unifdef -DLDAP_NULL_IS_NULL 2006-02-14 23:18:12 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Pierangelo Masarati
fcda57e90f use macros instead of numbers... 2005-12-13 20:11:26 +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
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
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
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
cedb88c373 eat up values of removed attrs 2005-11-01 13:42:51 +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
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
a1ff59f436 pretty the DN as well 2005-09-06 17:19:36 +00:00
Pierangelo Masarati
a2ea1edb48 save target errors for later evaluation 2005-08-31 01:55:34 +00:00
Pierangelo Masarati
39998dfe8d prettify matchedDN; fix memory handling 2005-08-27 19:21:43 +00:00
Pierangelo Masarati
6cb8b14435 allow undefined attrs to be "proxied" (ITS#3959) 2005-08-25 21:14: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
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
754a059951 fix concurrency issues 2005-07-04 22:41:54 +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
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
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
4d9750afb5 honor T-F filters (ITS#3706) and lots of cleanup 2005-05-04 23:57:55 +00:00
Pierangelo Masarati
58a358e7b2 more cleanup in handling timeouts in ldap_result() 2005-04-26 21:48:43 +00:00
Pierangelo Masarati
06eef0c78d reset candidates when intentionally abandoning; consistently handle referrals 2005-04-25 23:54:51 +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
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
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
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
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
5427af1f62 don't play with controls at bind; rather use the ldap_*_ext API 2005-01-26 09:52:12 +00:00
Pierangelo Masarati
521100db56 fix ITS#3498; some cleanup 2005-01-20 17:44:53 +00:00
Pierangelo Masarati
8d14165274 fix ITS#3464 2005-01-08 10:59:32 +00:00
Pierangelo Masarati
5422345e55 major namespace cleanup & minor fixes 2005-01-08 09:20:54 +00:00
Kurt Zeilenga
dc0eacd40b Happy New Year! 2005-01-01 20:49:32 +00:00
Pierangelo Masarati
ba6ac023ad works now 2004-12-30 17:45:07 +00:00
Pierangelo Masarati
7198e9e4b9 fix typos leading to memory issues 2004-12-23 10:43:58 +00:00
Pierangelo Masarati
018526ff14 fix spurius noSuchObject when base=suffix 2004-11-12 12:51:16 +00:00
Pierangelo Masarati
761f287943 multiple precision with BIGNUM/gmp/ulong 2004-09-26 22:58:47 +00:00
Kurt Zeilenga
d611a4b49a unifdef -UNEW_LOGGING 2004-09-04 04:54:28 +00:00
Pierangelo Masarati
00f1c085cf move call to frontend API 2004-08-24 09:29:11 +00:00
Pierangelo Masarati
9f6f5491fe slightly rework user/operational attributes handling (including fixing a bug in the logic of the previous change to backend_operational()); cleanup; more improvements to slapo-rwm and back-relay 2004-07-25 23:16:40 +00:00
Pierangelo Masarati
40e42fcd11 res is already freed by ldap_parse_reference() (ITS#3190) 2004-06-17 18:27:51 +00:00
Pierangelo Masarati
4c685bfd1e clarify no limits in (internal) searches 2004-06-12 17:32:20 +00:00
Pierangelo Masarati
d40e5a365a fix DN_SEPARATOR() and clarify its use 2004-05-07 09:03:05 +00:00
Pierangelo Masarati
b34cf02488 more on fixing escaped semicolon in normalized DN 2004-05-07 02:18:08 +00:00
Kurt Zeilenga
44725e7303 use BER_BVNULL 2004-04-07 04:11:43 +00:00
Pierangelo Masarati
4e71b85481 exploit new frontend API 2 protocol error mapping 2004-04-05 17:32:59 +00:00