Commit Graph

10770 Commits

Author SHA1 Message Date
Pierangelo Masarati
b7a9a4a65f add support for TCP buffer configuration (ITS#6234) 2009-08-17 22:53:15 +00:00
Pierangelo Masarati
613b00065a use UINT where appropriate (silence warnings) 2009-08-17 22:48:34 +00:00
Howard Chu
c670264951 For refresh_purge, only delete entry if ours is the last queryid on it.
Otherwise just remove our queryid.
2009-08-17 22:24:26 +00:00
Howard Chu
8cd909db3f Plug leaks in prev commit 2009-08-17 14:38:28 +00:00
Howard Chu
cd0681c4e1 ITS#6152 restart consistency checker when going back online
reset refcnt when refreshing a query
2009-08-17 13:24:33 +00:00
Howard Chu
deb1fb6eb6 Fix refresh_merge, using mods from wrong entry 2009-08-17 13:11:05 +00:00
Howard Chu
73c46fa598 Cleanup prev commit 2009-08-17 12:51:44 +00:00
Howard Chu
a5cfab44d7 ITS#6152 preliminary refresh support, untested 2009-08-17 12:02:48 +00:00
Howard Chu
0132ea425d ITS#6152 add syncrepl_diff_entry() 2009-08-17 11:58:47 +00:00
Howard Chu
a975c61451 More for #6220, don't timeout idle connections when writetimeout is
set and idletimeout is not.
2009-08-17 11:28:25 +00:00
Howard Chu
31084affa6 ITS#6251 framework for TTR. refresh not yet implemented. 2009-08-17 03:03:50 +00:00
Howard Chu
7ad21d7dfd Fix typo in prev commit 2009-08-17 02:22:28 +00:00
Howard Chu
88c6cfa814 Deprecate previous config keywords. Add ttr parsing (no functionality yet) 2009-08-16 23:26:34 +00:00
Howard Chu
f918243a2f ITS#6256 from Jonathan Clarke 2009-08-15 14:05:47 +00:00
Pierangelo Masarati
dc12e58d38 allow to look-ahead entry DN without decoding the whole entry 2009-08-14 15:33:09 +00:00
Pierangelo Masarati
8ecfb077bf harmonize API: source to dest right to left 2009-08-14 14:18:04 +00:00
Pierangelo Masarati
bb3e14ddba honor requested attrs (ITS#6254), including operational 2009-08-14 01:18:23 +00:00
Pierangelo Masarati
f283f7ad47 improve previous commit; make sure returned entries match filter (ITS#6255); defer sizelimit exceeded detection 2009-08-14 00:49:48 +00:00
Pierangelo Masarati
b6cf5ca896 make sure filter is applied to final entry (ITS#6255) 2009-08-14 00:14:35 +00:00
Pierangelo Masarati
bea861dda5 honor sizelimit when filter needs to be split between local and remote (ITS#6253) 2009-08-14 00:03:10 +00:00
Pierangelo Masarati
60627ddf93 eliminate code duplication 2009-08-13 21:24:32 +00:00
Pierangelo Masarati
2d1d2f3008 remove misleading comment 2009-08-13 21:00:04 +00:00
Pierangelo Masarati
9f80d80dbd expose subordinate databases; add a link to the superior DN 2009-08-13 20:58:20 +00:00
Pierangelo Masarati
efabe1d279 honor per-target tls/chase referrals/rebind as user (ITS#6190) 2009-08-13 19:30:37 +00:00
Pierangelo Masarati
9ebc168a8a log in case of failure (FIXME: should those logs be at ANY level?) 2009-08-04 23:45:42 +00:00
Pierangelo Masarati
1f33edc08e use back-config if supported 2009-08-04 23:27:52 +00:00
Howard Chu
9bd09d7b0e Fully parse undefined substring filters so they can be logged 2009-08-04 22:41:59 +00:00
Pierangelo Masarati
3e2ac1f6c0 improve previous commit 2009-08-04 14:26:40 +00:00
Pierangelo Masarati
38fa7e0621 be liberal in accepting CL (ITS#6241) 2009-08-04 14:14:17 +00:00
Howard Chu
50688c960c In slap_mods_check, always compare ordering index first 2009-08-04 02:42:20 +00:00
Pierangelo Masarati
f2e1b78391 silence warnings; misc cleanup; test refresh as non-allowed user 2009-08-03 22:49:30 +00:00
Pierangelo Masarati
20371c3eae note about OpenSSL being more liberal than OpenLDAP when there is garbage past the end of a certificateList 2009-08-03 14:07:49 +00:00
Pierangelo Masarati
e153f41e90 add entry_dup_to(); use it to address ITS#6172 (thanks to Michael Karcher) 2009-08-03 13:18:05 +00:00
Pierangelo Masarati
5139241ade blind fix to ITS#6163 2009-08-03 13:08:22 +00:00
Pierangelo Masarati
a1ed732822 count query answerability; allow configuration of private database 2009-08-02 22:00:01 +00:00
Howard Chu
dd88fdbcc3 ITS#6152 add olcProxyCacheOffline for manually toggling cache expiration,
assume some external process will tell us when network is on/offline
2009-08-02 01:20:03 +00:00
Howard Chu
076c1d23cf Fix attributeCertificateValidate 2009-08-01 01:11:15 +00:00
Howard Chu
e8d95fa072 Fix certificateListValidate parsing of CRL extensions 2009-08-01 00:39:41 +00:00
Hallvard Furuseth
ef0163c198 Fix last commit: C90 rejects declaration after code 2009-07-30 15:34:42 +00:00
Howard Chu
8a0284cf04 ITS#5946 always allow mirrormode to be set to FALSE 2009-07-29 09:21:50 +00:00
Howard Chu
bf69b8e065 ITS#5942 consolidate server URL match to config_check_my_url().
In syncrepl, assume consumer pointing to same server but different
searchbase is OK otherwise ignore config.
2009-07-29 09:04:39 +00:00
Howard Chu
850e4ae0d3 Use distribution hints in searches 2009-07-29 00:58:46 +00:00
Howard Chu
016c518652 ITS#6230 fix typos 2009-07-27 18:54:56 +00:00
Howard Chu
82e95f8091 Change AttributeName.an_oc_exclude to an_oc_flags, avoid multiple
futile searches for OC matches.
2009-07-26 00:14:15 +00:00
Howard Chu
25a06ddd43 ITS#6228 fix typo 2009-07-25 23:37:24 +00:00
Howard Chu
474991afdf ITS#6222 dncachesize defaults to 0 == unlimited 2009-07-25 07:13:50 +00:00
Howard Chu
46feff08ca ITS#6222 need to support unsigned long args too 2009-07-25 06:47:00 +00:00
Howard Chu
addb1320a4 More cleanup 2009-07-25 00:09:56 +00:00
Howard Chu
48ffbcce3c Minor cleanup 2009-07-25 00:06:46 +00:00
Pierangelo Masarati
e9f1452624 test whether the current entry matches the current uri filter (ITS#6077); also, don't leak DN when adding a base fails 2009-07-24 22:00:53 +00:00
Howard Chu
e08e89d6a7 ITS#6214 use the main thread's context so cleanup can occur 2009-07-22 04:39:57 +00:00
Howard Chu
553f0f2ffd ITS#6220 don't check write timeouts when global_writetimeout isn't set 2009-07-21 02:04:46 +00:00
Pierangelo Masarati
40f785f62a check the value of the olcSubordinate attribute 2009-07-16 15:41:05 +00:00
Pierangelo Masarati
7a553ddae8 subordinate needs a suffix (ITS#6216) 2009-07-16 15:28:22 +00:00
Howard Chu
d45c01c008 External vars need to be wrapped for Windows 2009-07-14 00:52:45 +00:00
Howard Chu
5f211a7dcc Fix handling for empty results 2009-07-13 15:22:46 +00:00
Howard Chu
eab5b9570a Fix result when no VLV match 2009-07-13 15:15:27 +00:00
Howard Chu
783dc77df7 Minor cleanup 2009-07-13 15:00:19 +00:00
Howard Chu
aa316f10fe Add sssvlv config 2009-07-13 14:20:31 +00:00
Howard Chu
2ca1c1d916 Add sssvlv to build system 2009-07-13 13:35:30 +00:00
Howard Chu
789dad4d00 ITS#6203 fix startup 2009-07-13 13:24:12 +00:00
Howard Chu
c401792c20 Fix prev commit 2009-07-13 13:14:07 +00:00
Howard Chu
2e4da3f9ee More VLV stuff 2009-07-13 12:40:35 +00:00
Howard Chu
d0bbd6d510 vlv implemented, untested 2009-07-13 10:59:09 +00:00
Howard Chu
dbc0fdba58 csnOrderingMatch should have a normalizer 2009-07-13 09:39:39 +00:00
Howard Chu
f11b45063d Undef SLAP_CONTROL_X_SORTEDRESULTS, use sssvlv overlay now.
Will unifdef all relevant code later...
2009-07-13 08:43:06 +00:00
Howard Chu
5fbd344280 Server Side Sorting (also with PagedResults). VLV still in progress. 2009-07-13 08:39:22 +00:00
Howard Chu
dc86747a4d Fix typo in 1.250 fake sorted results control 2009-07-13 02:42:38 +00:00
Howard Chu
cc6dc57746 ITS#6195 must normalize cookies before comparing them 2009-07-08 00:55:27 +00:00
Hallvard Furuseth
d3e7717473 ITS#6101, did not always (re)set rs->sr_sasldata before send_ldap_sasl() 2009-07-07 22:31:35 +00:00
Howard Chu
72e319bd02 ITS#5892 return -1 from ldif_read_record on error 2009-07-07 22:30:55 +00:00
Hallvard Furuseth
5b98495d5c ITS#6101, reset rs->sr_rspdata in send_ldap_disconnect() 2009-07-07 22:30:28 +00:00
Howard Chu
4939a382c1 ITS#5892 make sure ldif error messages are displayed 2009-07-07 21:51:27 +00:00
Hallvard Furuseth
b74b7c232d ITS#6101: Move sru_search first in union SlapReply.sr_un, for initialization. 2009-07-07 21:11:39 +00:00
Hallvard Furuseth
461a2135fb Silence warning. Also avoids pointless umask(0) when umask already is 0. 2009-07-06 23:19:52 +00:00
Howard Chu
e6173ac9c2 ITS#5836 more for 1.432, writetimeout wasn't taking effect if
idletimeout wasn't also set. Also, timeout check would keep getting
pushed back if multiple writers were waiting.
2009-07-06 21:02:28 +00:00
Ralf Haferkamp
d430fa0346 error out when adding multiple olcIndex values for the same attribute (ITS#6196) 2009-07-03 14:29:40 +00:00
Howard Chu
c29b1a53b2 More for 1.124 - forwarded updates need Relax control since state attrs
are no-user-mod.
2009-07-01 07:39:22 +00:00
Howard Chu
1ca5fe851f ITS#5836, #6089 fix c_writers counting 2009-07-01 03:01:08 +00:00
Howard Chu
8a0b05bfeb ITS#6084 handle pwdAccountLockedTime values set into the future (i.e.,
lame way of setting an expiration date.)
2009-06-30 12:12:53 +00:00
Howard Chu
98ebf1950e Fix prev commit 2009-06-30 11:54:45 +00:00
Howard Chu
b50f9c7aa9 ITS#6082 return checker module's error message to client 2009-06-30 11:51:13 +00:00
Howard Chu
68246fb76d Fix check_password with {cleartext} passwords 2009-06-30 11:24:11 +00:00
Howard Chu
1f07d843f1 ITS#6168 actually use pwdLockout setting 2009-06-30 11:04:16 +00:00
Howard Chu
972176a1e0 Add ppolicy_forward_updates: if configured, ppolicy state changes due to
Binds are performed using the frontend, to allow them to trigger the
updateref on a consumer, which can then be forwarded by the chain overlay.
Setting is ignored if server is not a consumer.
2009-06-30 10:41:51 +00:00
Hallvard Furuseth
0f5378c8f7 Fix Debug format in last commit 2009-06-28 21:23:59 +00:00
Howard Chu
c62ebb9da2 ITS#6189 delay resetting the SLAP_C_BINDING state until the Bind handler
has fully returned to the connection manager. This may result in
"deferring operation: binding" messages being logged again (ITS#3850) but
it should not cause any hangs.
2009-06-28 03:37:20 +00:00
Howard Chu
d3aae2dc42 ITS#5658 hppa fixes 2009-06-23 23:12:15 +00:00
Rein Tollevik
9d4ea6378b ITS#6179 Don't require dn.regex in <who> to use expand style in <by>. 2009-06-23 21:17:57 +00:00
Howard Chu
53f8b761f1 More for ITS#6177 2009-06-19 07:11:01 +00:00
Howard Chu
68e252c9a9 ITS#6177 proposed fix, please test 2009-06-19 02:06:58 +00:00
Howard Chu
59a29c9801 ITS#6176 silently raise dncache to cachesize if smaller 2009-06-18 00:16:30 +00:00
Howard Chu
861441fcf7 ITS#6076 fix collectinfo ordering 2009-06-17 01:17:42 +00:00
Howard Chu
2ae35da6bb ITS#6075, cleanup, add missing equality match 2009-06-17 00:42:59 +00:00
Howard Chu
fc0418db8f Better fix for prev commit 2009-06-16 05:26:29 +00:00
Howard Chu
d852de5ce4 Partially revert 1.32; pcache must allow other callbacks to see its results 2009-06-16 04:33:59 +00:00
Hallvard Furuseth
22260f8445 ITS#6154: don't assume in slap_callback.sc_cleanup that sc_response was called.
Also remove unused bd = NULL assignment from last commit.
2009-06-12 23:12:37 +00:00
Howard Chu
22f6e45f2a txn may fail to give us a scan op 2009-06-12 11:57:56 +00:00
Hallvard Furuseth
3bbaa8103b Cleanup: Remove SLAP_CB_FREEME, an unused internal result code 2009-06-11 22:57:04 +00:00
Pierangelo Masarati
c39815ee28 don't deadlock when a TLS uri is not responding (ITS#6167) 2009-06-11 06:51:01 +00:00
Howard Chu
23783a9164 Add ldap_pvt_thread_pool_retract() to cancel pending threads 2009-06-11 04:46:04 +00:00
Hallvard Furuseth
df85e3173d ITS#6169: do not access freed memory in dds_expire() 2009-06-11 03:10:11 +00:00
Howard Chu
0d497278e9 ITS#6156 get full entry from remote side, only use attr list on final send 2009-06-08 20:39:22 +00:00
Howard Chu
b13789f3e9 ITS#6162 accept non-decimal loglevels 2009-06-08 20:03:43 +00:00
Hallvard Furuseth
41fa4f03b6 More ITS#6104: mutex-protected check of o_cancel value from other thread 2009-06-05 23:26:09 +00:00
Howard Chu
f2a9d8b9ab Plug leak in prev commit 2009-06-05 01:25:35 +00:00
Howard Chu
81b4184975 Fix prev commit 2009-06-05 00:01:11 +00:00
Hallvard Furuseth
8bdfd2edbb ITS#6103: rev 1.331 followup for LDAP_CONNECTIONLESS 2009-06-04 22:06:37 +00:00
Hallvard Furuseth
96f4c723a9 For ITS#6157: Catch most invalid cancels/abandons, and honor them before waits 2009-06-04 21:16:38 +00:00
Howard Chu
57d714176a ITS#6056 refint_repair can be called multiple times for the same
queued item, must not free queue itself
2009-06-04 18:05:19 +00:00
Quanah Gibson-Mount
2be7cb3b16 Fix missing cvs id tag 2009-06-03 00:31:14 +00:00
Pierangelo Masarati
5a1b108860 allow to delete olcLimits values (ITS#6159) 2009-06-02 23:17:58 +00:00
Hallvard Furuseth
136a56bd6b Fix last commit (add a comment) 2009-06-01 22:27:12 +00:00
Hallvard Furuseth
fa40617c83 More ITS#6133: Search/Extended referrals, entry_<get/release> results,
entry_release memory leak, OpExtra keys to detect recursion, cleanup.
Also rewrite to table/macro-driven operations, and shorten RB_* names.
2009-06-01 22:19:15 +00:00
Hallvard Furuseth
ad09b13196 Drop Unbind too for ITS#6133. Some cleanup. Add/fix comments. 2009-05-30 22:57:43 +00:00
Howard Chu
8edeaefe72 ITS#6056 partially revert ITS#5886, close sequencing was broken 2009-05-28 17:46:25 +00:00
Pierangelo Masarati
57e68fa5b3 add slapschema tool (ITS#6150) 2009-05-28 13:40:57 +00:00
Howard Chu
2a624e1e4d ITS#6147 fix typos 2009-05-27 12:53:04 +00:00
Howard Chu
374331c2b1 ITS#6147 add sasl-auxprop config, default to "slapd" 2009-05-27 12:41:09 +00:00
Howard Chu
0720ede283 ITS#6135 reinit TLS context after changes 2009-05-27 11:35:12 +00:00
Howard Chu
1df1f6cfc5 ITS#6139 password-hash has no max # args 2009-05-25 12:58:40 +00:00
Hallvard Furuseth
4b3a815ad1 ITS#6137: Fail Cancel(pending operation) instead of discarding the operation. 2009-05-22 18:10:39 +00:00
Hallvard Furuseth
acba4f7755 For ITS#6104: Protect initial o_abandon/o_cancel with op->o_conn->c_mutex. 2009-05-21 23:22:46 +00:00
Hallvard Furuseth
23a726395f ITS#6133: Handlers for Abandon, Cancel, connection init/destroy
should not exist.  Catch coredump.  Fix error/result code handling.
2009-05-21 00:09:30 +00:00
Hallvard Furuseth
18905416c9 To be safe (see ITS#5328), set hasSubordinates before be_has_subordinates() 2009-05-20 21:42:13 +00:00
Hallvard Furuseth
7f28d0a13d ITS#5328: Make relay_back_has_subordinates() return failure on failure 2009-05-20 21:34:40 +00:00
Hallvard Furuseth
aa9399db03 ITS#6132: Fix slapi_entry_has_children() 2009-05-20 21:23:48 +00:00
Howard Chu
69caa925ea set Conf->what for authz-regexp 2009-05-20 12:44:25 +00:00
Howard Chu
acba6fde99 Avoid printf(NULL) on Solaris 2009-05-20 12:42:34 +00:00
Howard Chu
273bd403f4 Avoid multiple attempts to free the same syncinfo 2009-05-18 07:58:27 +00:00
Howard Chu
01b0ca7603 ITS#6109 fix readonly restriction 2009-05-17 22:23:33 +00:00
Howard Chu
aa9e241581 ITS#6111 connection_state_closing() -> connection_valid() 2009-05-14 04:03:23 +00:00
Howard Chu
29be892cc1 Revert 1.274 2009-05-11 22:26:12 +00:00
Howard Chu
7ab16ae6c2 ITS#6103 send response on abandon 2009-05-11 04:30:36 +00:00
Howard Chu
9fd983a99d ITS#6103 send response even if abandoned 2009-05-11 04:29:21 +00:00
Howard Chu
9767c87531 Partially revert prev commit, leave rs->sr_err == SLAPD_ABANDON 2009-05-11 04:23:51 +00:00
Howard Chu
2889cc9b1d ITS#6103 send cancelled response back to client 2009-05-11 04:16:57 +00:00
Pierangelo Masarati
2cf9473c46 misc cleanup 2009-05-08 16:31:50 +00:00
Pierangelo Masarati
8d55fbf5c6 (blindly) allow to build with BACKSQL_ARBITRARY_KEY defined (ITS#6100). Please note that this disables paged results support 2009-05-08 16:23:57 +00:00
Howard Chu
6bd1861101 Fix c_leaves count 2009-05-08 06:37:05 +00:00
Howard Chu
1a8e3f9e3e More for prev commit 2009-05-08 04:48:03 +00:00
Howard Chu
167f2d22ed ITS#6098 issuerUID and subjectUID are primitive, not constructed 2009-05-08 01:52:12 +00:00
Pierangelo Masarati
79024465dc check dn normalization result 2009-05-07 15:27:01 +00:00
Howard Chu
7f9a60ae7a More for prev commit: delete bdb_cache_info(), must use cache_find_id().
Fixed cache.c_cursize counting.
2009-05-06 13:57:01 +00:00
Howard Chu
64dc274655 ITS#6095 experimental fix: avoid purging other cases of in-use EntryInfos,
avoid using purged EntryInfos that have not yet been fully unlinked.
2009-05-06 08:33:26 +00:00
Howard Chu
f60107ff75 fix typo 2009-05-06 07:55:42 +00:00
Howard Chu
650ced22c8 More for ITS#5326 - don't free ora_e->e_name if same as o_req_dn 2009-05-05 21:54:01 +00:00
Pierangelo Masarati
b8022be3e6 fix one-time leaks; make sure free'd stuff is NULL 2009-05-04 11:37:58 +00:00
Pierangelo Masarati
5c2b116798 add in-scope helper 2009-05-04 10:57:50 +00:00
Howard Chu
a7fe6266d8 Don't do alock recovery in readonly mode since we didn't do BDB recovery 2009-05-03 00:49:35 +00:00