Commit Graph

10112 Commits

Author SHA1 Message Date
Hallvard Furuseth
d55d5fadf9 ITS#5747: Simplify previous fix. Just use the struct hack. 2008-10-17 21:58:09 +00:00
Hallvard Furuseth
036e7dac59 ITS#5747: Only use C99 flexible array member when supported 2008-10-17 18:43:10 +00:00
Hallvard Furuseth
670ec4f938 Warning cleanup: signed meets unsigned. 2008-10-17 18:05:00 +00:00
Hallvard Furuseth
05bbe7833b Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
Warning cleanup: signed meets unsigned.
2008-10-17 18:02:09 +00:00
Hallvard Furuseth
e3bc5b64c6 Warning cleanup: Remove no-op bv_len < 0 and bv_len >= 0 tests 2008-10-17 17:40:48 +00:00
Pierangelo Masarati
23f78d1bba leave rs struct untouched (ITS#5742) 2008-10-17 00:06:12 +00:00
Pierangelo Masarati
bbe6e77876 fix indentation 2008-10-17 00:03:53 +00:00
Pierangelo Masarati
515733a656 make sure sr_entry is not used if unset (ITS#5742) 2008-10-17 00:03:17 +00:00
Pierangelo Masarati
4f26be5cf6 fix parsing of read entry control (ITS#5741) 2008-10-17 00:02:13 +00:00
Howard Chu
72a9d87fec BDB_PAGESIZE not used any more, use BDB/FS default instead 2008-10-15 10:45:31 +00:00
Howard Chu
3be39979ea Add checksum keyword to enable DB checksum validation 2008-10-15 08:13:56 +00:00
Howard Chu
81ed60c056 Add dbpagesize keyword for configuring DB file page sizes 2008-10-15 07:41:57 +00:00
Hallvard Furuseth
742f3a2a2c Warning cleanup: signed meets unsigned. 2008-10-13 14:54:27 +00:00
Hallvard Furuseth
7b3bdf2185 Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on
error, not LBER_ERROR.
2008-10-13 10:18:15 +00:00
Hallvard Furuseth
b6f83f1a25 Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on
error, not LBER_DEFAULT.
2008-10-13 09:17:36 +00:00
Hallvard Furuseth
6f39252bd0 Warning cleanup: signed meets unsigned. 2008-10-13 08:35:31 +00:00
Hallvard Furuseth
e8afbb70fc Warning cleanup: signed meets unsigned. 2008-10-13 08:29:21 +00:00
Hallvard Furuseth
182c2931c4 Warning cleanup: signed meets unsigned. 2008-10-13 08:19:13 +00:00
Hallvard Furuseth
3b90f84422 Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
Warning cleanup: Missing braces in initialization. signed meets unsigned.
2008-10-13 07:55:02 +00:00
Hallvard Furuseth
3c7d9415b4 Warning cleanup: Missing braces in initialization. 2008-10-13 06:20:12 +00:00
Hallvard Furuseth
27d6497c33 Warning cleanup: Missing braces in initialization. 2008-10-13 05:44:55 +00:00
Hallvard Furuseth
c2a317415c Fix r1.86 (LDAP_DEVEL:SLAP_CONFIG_DELETE): No declarations after code. 2008-10-13 05:31:52 +00:00
Pierangelo Masarati
1421d522ad fix overlays with private instances of databases (ITS#5736) 2008-10-12 20:20:46 +00:00
Pierangelo Masarati
4e276f882c allow private databases to be instantiated by global overlays (ITS#5735) 2008-10-12 20:20:01 +00:00
Pierangelo Masarati
6845c2510d don't free and reuse filter structure; don't rewrite undefined filter values (ITS#5731,ITS#5732) 2008-10-09 22:34:43 +00:00
Howard Chu
faadcf3908 ITS#5730, patch for #5728 broke referrals 2008-10-08 21:33:45 +00:00
Howard Chu
16710f4ed4 Fix dn2idl when suffix = "" 2008-10-07 22:52:59 +00:00
Howard Chu
95d472aa98 ITS#5729 check for NULL bei_parent 2008-10-07 22:16:15 +00:00
Howard Chu
5313745e77 More #5728 fallout 2008-10-07 01:59:52 +00:00
Howard Chu
3a41f2c5a2 Fix: use overlay_entry_release_ov in overlay environment 2008-10-07 01:45:42 +00:00
Howard Chu
599d83c7cd ITS#5728 release entries before send_ldap_ber() 2008-10-07 00:29:54 +00:00
Rein Tollevik
f1f9a6280a ITS#5726: Revert 1.392, the runqueue must always be inspected. 2008-10-05 22:35:44 +00:00
Pierangelo Masarati
bc09f6e8ad open database using the real structure (partial fix to ITS#5724) 2008-10-05 21:11:13 +00:00
Rein Tollevik
c5f584e62b Revert 1.410, i.e back to lock again. ITS#5725 fixes the lock situation. 2008-10-05 19:29:00 +00:00
Rein Tollevik
d2c08ebb4f ITS#5725: Don't enable connection for events twice. 2008-10-05 19:17:56 +00:00
Howard Chu
aa2fecc1fc More deadlock propagation fixes 2008-10-01 21:28:03 +00:00
Howard Chu
babf624b23 Missed a deadlock check 2008-10-01 21:07:26 +00:00
Emmanuel Dreyfus
7a5b406cf1 Make sur attribute ACL are evaluated on ADD operations (see ITS#4556) 2008-09-29 22:08:29 +00:00
Rein Tollevik
fd190659a7 ITS#5719 Reset interval after rescheduling a paused task. 2008-09-29 20:01:40 +00:00
Pierangelo Masarati
9be58de517 fix ITS#5717 2008-09-29 18:45:39 +00:00
Pierangelo Masarati
43d0d989ef allow intermixing of mapped/not mapped attrs (spotted while invstigating ITS#5717) 2008-09-29 17:38:12 +00:00
Pierangelo Masarati
71373cfdfe change olcDbMode syntax from integer to sirectory string, and allow any commonly accepted form to set its value, including -rwxrwxrwx (ITS#5713) 2008-09-27 14:04:57 +00:00
Pierangelo Masarati
3ccdb86edb allow definition of syntaxes via configuration, including X-SUBST (ITS#5663) 2008-09-27 13:30:43 +00:00
Pierangelo Masarati
13eb62e42f make sure o_csn is freed 2008-09-27 11:06:31 +00:00
Pierangelo Masarati
7cc2acd111 fix previous commit (ITS#5711) 2008-09-27 10:34:52 +00:00
Pierangelo Masarati
a0e3e68a02 allow controls deletion to be deferred; pass response controls back to frontend in extops (ITS#5711) 2008-09-27 10:06:43 +00:00
Howard Chu
9f808bd4b6 Propagate deadlock results for internal searches on write ops 2008-09-25 13:39:53 +00:00
Howard Chu
fda5733477 Wait for read locks in read txns 2008-09-25 13:17:17 +00:00
Howard Chu
a49d43ca27 Revert 1.394, see ITS#5454. It still locks up without a trylock. 2008-09-25 10:31:49 +00:00
Ralf Haferkamp
4788d897d2 Use ConfigReply to return error messages to the client 2008-09-23 15:30:48 +00:00
Pierangelo Masarati
b03ac2c2a5 fix typo 2008-09-20 18:43:30 +00:00
Pierangelo Masarati
8a900b8784 add support for local RFC 3062 password modification extended operation (ITS#5656) 2008-09-20 15:01:12 +00:00
Hallvard Furuseth
f3e85d44da Drop "if ( slap_known_controls )". That became an array in controls.c 1.117. 2008-09-19 20:37:11 +00:00
Pierangelo Masarati
68561435cc add support for back-config delete; fix minor issues 2008-09-19 00:50:17 +00:00
Pierangelo Masarati
3d876e0fcc add back-config support to slapo-retcode(5) 2008-09-19 00:09:56 +00:00
Pierangelo Masarati
d2c6714ebf honor relax by not applying constraints (ITS#5705) 2008-09-18 21:12:13 +00:00
Pierangelo Masarati
d02c861ada add support for constraining rename (ITS#5703) 2008-09-18 20:30:59 +00:00
Hallvard Furuseth
880a2888d8 Message waiting for N threads to terminate -> for N operations/tasks to finish 2008-09-18 19:50:32 +00:00
Pierangelo Masarati
a3176f5453 optional parameter that allows to restrict constraints to entries matching a LDAP URI (ITS#5704) 2008-09-17 20:59:58 +00:00
Pierangelo Masarati
151d5aec66 add "set" constraint type (ITS#5702) 2008-09-17 00:40:18 +00:00
Pierangelo Masarati
dc414747a7 silence warnings 2008-09-16 14:44:24 +00:00
Pierangelo Masarati
88055e8d54 don't hide standard track matching rules (more for ITS#5700) 2008-09-15 09:16:13 +00:00
Pierangelo Masarati
ff5b4d6c21 add support for certificateListExactMatch (RFC4523; ITS#5700) 2008-09-15 00:34:56 +00:00
Pierangelo Masarati
14bd1744b7 certificate handling cleanup 2008-09-15 00:24:40 +00:00
Ralf Haferkamp
7bec8b6b8b stop and remove checkpoint task in _db_destroy (ITS#5698) 2008-09-12 09:53:40 +00:00
Howard Chu
e2722b0c94 ITS#5659 "collect" overlay enhancements 2008-09-11 00:29:56 +00:00
Howard Chu
92d39f7376 Fix prev commit 2008-09-10 03:35:26 +00:00
Howard Chu
2547212e43 ITS#5694 update context's entryCSN during log purges 2008-09-10 02:29:26 +00:00
Pierangelo Masarati
4aa9edf03e cleanup round of memory handling (either check results or use ch_* calls; ITS#5691) 2008-09-09 19:58:47 +00:00
Pierangelo Masarati
661398337a allow trying local bind when remote fails (ITS#5656) 2008-09-09 10:50:51 +00:00
Hallvard Furuseth
ff90e2f8d0 unique_search(): Print key->bv_val rather than key. Broke in r1.32 (ITS#5526). 2008-09-08 16:33:40 +00:00
Pierangelo Masarati
3d68853de5 fix one-time leak 2008-09-08 15:21:51 +00:00
Pierangelo Masarati
45e980391c fix olcTranslucentLocal/Remote handling (ITS#5689) 2008-09-08 12:56:27 +00:00
Pierangelo Masarati
f7679377f9 always re-test filter after merging local and remote entries (ITS#5679) 2008-09-08 12:16:05 +00:00
Pierangelo Masarati
0009def716 implement X-SUBST substitute syntax extension (ITS#5663) 2008-09-08 00:10:18 +00:00
Pierangelo Masarati
1447d7fe17 don't risk using uninitialized vars 2008-09-08 00:05:15 +00:00
Pierangelo Masarati
7be50e74ec if objectClass is not present (e.g. schema check is off, like for partial replicas, slapo-translucent and so), consider ocflags computed (and 0) 2008-09-06 18:06:41 +00:00
Pierangelo Masarati
b904d08f56 cleanup in case of failure during search rewriting (partial fulfilment of ITS#5687) 2008-09-06 16:25:03 +00:00
Pierangelo Masarati
57f9c8c8e9 be careful when restoring rewritten DN (partial fulfilment of ITS#5687) 2008-09-06 16:24:27 +00:00
Howard Chu
fe6f3683fa ITS#5687 more cleanup fixes 2008-09-06 02:11:26 +00:00
Pierangelo Masarati
55cb219adc NULL out spurious text (ITS#5688) 2008-09-06 00:00:37 +00:00
Ralf Haferkamp
db4c89db00 allow databases to be deleted (hidden behind LDAP_DEVEL) 2008-09-04 17:12:07 +00:00
Ralf Haferkamp
fcedf5bf83 don't dereference NULL pointer 2008-09-04 16:05:55 +00:00
Ralf Haferkamp
86005f581e A new entry's index should not be larger than the number of its siblings (ITS#5684) 2008-09-04 13:56:31 +00:00
Pierangelo Masarati
1355e605d5 Don't leak syntax oid macro in case of duplicate attribute (ITS#5683) 2008-09-04 12:19:05 +00:00
Pierangelo Masarati
dae38c56cd let undefined objectClasses be used in proxy filters 2008-09-04 10:13:30 +00:00
Pierangelo Masarati
374d8f85ae NUL-terminate undefined objectClass soc_cname (ITS#5682) 2008-09-04 10:12:01 +00:00
Pierangelo Masarati
969a0aef0e canonicalize undef objectClass names (much like attributes; ITS#5681) 2008-09-04 08:05:17 +00:00
Pierangelo Masarati
8141cd4db7 make additional checking optional (more on ITS#5860) 2008-09-04 07:43:19 +00:00
Pierangelo Masarati
f01e184377 don't cache queries that would not be answered correctly because of schema issues (ITS#5680) 2008-09-04 00:05:26 +00:00
Pierangelo Masarati
549134d514 don't dereference NULL pointers (ITS#5676) 2008-09-02 20:58:34 +00:00
Pierangelo Masarati
f4b98b256c use the most recent contextCSN (ITS#5675) 2008-09-02 20:35:51 +00:00
Howard Chu
bfdb93f80b ITS#5578 signed/unsigned comparison 2008-08-31 00:38:07 +00:00
Pierangelo Masarati
605fa77265 no need to unescape/re-escape each line (more on ITS#5608) 2008-08-30 15:00:05 +00:00
Pierangelo Masarati
03793fd9f4 implement caseIgnoreListMatch (ITS#5608) 2008-08-30 14:30:31 +00:00
Howard Chu
e5b96f2c76 Avoid deadlocks on reader txns 2008-08-27 22:28:16 +00:00
Howard Chu
ece2a4daa6 Use read-only txn's instead of read lockers. Support BDB 4.4-4.7 2008-08-27 01:45:35 +00:00
Howard Chu
8385813a5a Fix dynamic module init 2008-08-26 22:25:35 +00:00
Howard Chu
f6edefa25d Add back-ndb 2008-08-26 21:48:17 +00:00
Pierangelo Masarati
c32cbed9ae fix attribute list swapping when NULL (ITS#5665) 2008-08-23 11:08:41 +00:00
Pierangelo Masarati
0e6054d861 [blind commit] better logging; check schema data before manipulation (related to ITS#5653) 2008-08-21 22:07:29 +00:00
Pierangelo Masarati
c97ef0a708 don't return entry if requested attr is not present (ITS#5650) 2008-08-09 16:04:55 +00:00
Pierangelo Masarati
03b105339a handle anonymous before doing mallocs 2008-08-09 15:41:55 +00:00
Pierangelo Masarati
46983312c3 fix log message 2008-08-09 15:41:22 +00:00
Howard Chu
d4216935d7 ITS#5618 log Search result errors, force Deref to Never 2008-08-09 13:15:54 +00:00
Pierangelo Masarati
a8dcb36efb don't strip set string (ITS#5627) 2008-08-09 12:50:18 +00:00
Pierangelo Masarati
ddb43b83d4 don't copy strings if not necessary 2008-08-09 12:49:44 +00:00
Pierangelo Masarati
c74a92fe50 fix continuation checking in dynacl (ITS#5637) 2008-08-09 12:27:57 +00:00
Pierangelo Masarati
7bef2ffdf6 optimize ACI check (ITS#5636) 2008-08-09 12:26:17 +00:00
Pierangelo Masarati
4d71b2f9c0 make sure objectClass is not filtered out by 'map attribute *' (ITS#5647) 2008-08-09 10:54:31 +00:00
Pierangelo Masarati
bb4268a646 make sure objectClass is not filtered out by 'rwm-map attribute *' (ITS#5647) 2008-08-09 10:49:20 +00:00
Pierangelo Masarati
69d8588ab4 suffix must be defined before overlay configuration (ITS#5641) 2008-08-09 10:29:31 +00:00
Pierangelo Masarati
191d8204a3 really check if filter is valid...(more on ITS#5581) 2008-08-09 10:20:46 +00:00
Howard Chu
f73ce85027 ITS#5649 fix overlay_register_control 2008-08-09 10:11:41 +00:00
Howard Chu
01686daa4d ITS#5642 don't inherit custom attributes 2008-08-06 01:11:13 +00:00
Pierangelo Masarati
80df2a2906 fix normalizable/non-normalizable attr mapping \& merging (ITS#5624) 2008-08-04 21:20:06 +00:00
Pierangelo Masarati
785fafa36e defer relayed database lookup (ITS#5643) 2008-08-04 21:17:25 +00:00
Pierangelo Masarati
afbef0b035 fix check for single-field firstComponentMatch normalization (ITS#5634) 2008-08-04 21:06:37 +00:00
Quanah Gibson-Mount
5d3e5ecbd9 Fix missing space 2008-07-24 22:41:22 +00:00
Pierangelo Masarati
d50ba575fe s/o_dn/o_ndn/ (ITS#5622) 2008-07-19 11:27:10 +00:00
Pierangelo Masarati
adc358f664 free filter before overlays' cleanup callback 2008-07-15 12:31:08 +00:00
Pierangelo Masarati
d0dd945882 fix potential leak in previous commit 2008-07-15 08:54:41 +00:00
Pierangelo Masarati
5c53e3ad72 improve previous commit (ITS#5614) 2008-07-14 22:44:01 +00:00
Pierangelo Masarati
30ffa33d7e do not propagate undefined or otherwise broken search filters (ITS#5614) 2008-07-14 22:14:49 +00:00
Pierangelo Masarati
ab3388aa93 improve diagnostics 2008-07-12 17:58:11 +00:00
Pierangelo Masarati
65cfb058cb don't close invalid sockets (blind fix to ITS#5606) 2008-07-12 16:31:34 +00:00
Pierangelo Masarati
9c5b22ceda remove data when freed (blind fix to ITS#5607) 2008-07-12 16:26:27 +00:00
Pierangelo Masarati
18a333bfcf trim extra brackets (ITS#5609); NULL-terminate string 2008-07-12 16:03:31 +00:00
Pierangelo Masarati
f48d99cb77 fix quarantine (ITS#5592) 2008-07-12 15:22:39 +00:00
Pierangelo Masarati
e6446d3113 make sure rwm_op_cleanup() is called also in case of bind (in partial fulfillment of ITS#5601) 2008-07-12 11:53:49 +00:00
Howard Chu
f911e0f5d1 ITS#5569 ignore internal ops when validating pwd modify 2008-07-08 19:02:38 +00:00
Rein Tollevik
a42c7f96f5 ITS#5600 Replace objectClass, delete/add can fail if superior is added. 2008-07-08 13:55:09 +00:00
Howard Chu
4af6e9c4c6 Fix 1.40, release entry with same backend that obtained it 2008-07-08 06:00:32 +00:00
Pierangelo Masarati
c6f12694fc allow proxies to filter out search references (ITS#5593) 2008-07-07 21:25:59 +00:00
Rein Tollevik
f94cd4b518 ITS#5597 fix CSN compare when provider has CSNs with other sids. 2008-07-06 14:15:42 +00:00
Howard Chu
9b25fa4c38 ITS#5578 fix binary search 2008-07-05 23:26:41 +00:00
Rein Tollevik
99d004189a ITS#5596 contextCSN updates are internal operations. 2008-07-04 23:44:39 +00:00
Pierangelo Masarati
103c7b48e2 allow olcSpReloadHint in olcSyncProvConfig (ITS#5591) 2008-07-02 22:37:34 +00:00
Howard Chu
731aad4c4d ITS#5589 delcsn / NULL cookie 2008-07-02 16:27:17 +00:00
Pierangelo Masarati
be9d79d2a7 fix serialNumber and issuer parsing (ITS#5588) 2008-07-01 23:06:01 +00:00
Howard Chu
34d074930c ITS#5584 - treat empty Replace like Delete 2008-07-01 11:48:10 +00:00
Howard Chu
4e21f65ec0 Fix prev commit 2008-06-30 23:16:02 +00:00
Pierangelo Masarati
292b96c4e1 extra needed by config (ITS#5355) 2008-06-30 10:01:41 +00:00
Howard Chu
a5d0e36798 ITS#5571 prevent Adds from displacing {0}config 2008-06-29 22:48:40 +00:00
Howard Chu
f25436af80 Fix entry insert order 2008-06-29 22:26:59 +00:00
Pierangelo Masarati
48855fcdef make sure the strfilter is in normal form (ITS#5581) 2008-06-29 22:19:14 +00:00
Howard Chu
17af50abf3 syntax oid macros added 2008-06-29 21:53:29 +00:00
Pierangelo Masarati
b4894ccd81 don't lookup dg* attrs more than needed (ITS#5583) 2008-06-29 21:50:05 +00:00
Howard Chu
010295e9e7 More symbols for ITS#5355 2008-06-29 21:13:03 +00:00
Howard Chu
27867de8ad ITS#5383 - forgot to change configContext OID 2008-06-29 03:56:15 +00:00