Commit Graph

8807 Commits

Author SHA1 Message Date
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