Howard Chu
f6983802e2
More for ITS#6360
2009-11-04 05:52:04 +00:00
Howard Chu
0ecb68e02d
ITS#6360 fix cache cursize count
2009-11-04 00:47:45 +00:00
Hallvard Furuseth
e7fd598c01
Cleanup since ITS#6133
2009-11-02 16:19:59 +00:00
Hallvard Furuseth
5270cedb86
ITS#6337: replace previous commit with minimum-impact change.
...
Some cleanup.
2009-11-02 16:14:39 +00:00
Pierangelo Masarati
32fcd038ae
remove unused parameter idx (ITS#6356)
2009-10-30 22:53:27 +00:00
Hallvard Furuseth
e77aa3024a
Remove spurious comment
2009-10-30 18:43:43 +00:00
Hallvard Furuseth
d9d584e922
Alternate ITS#6324 fix. Use bitmask, handle -1 (LDAP_DEBUG_ANY) specially.
2009-10-30 17:46:38 +00:00
Howard Chu
a3f38ed932
ITS#6346 serialize all responses
2009-10-29 23:46:10 +00:00
Howard Chu
3d189671bd
ITS#6310 dup entry before adding to cache
2009-10-24 05:59:39 +00:00
Hallvard Furuseth
1ebe7a6eaf
more ITS#6324: fix fprintf(%u, long) format
2009-10-23 12:20:31 +00:00
Hallvard Furuseth
dc26fb37eb
Fix previous commit: backslash-space-newline -> backslash-newline
2009-10-21 20:15:15 +00:00
Howard Chu
f8a77ecfa2
ITS#6342 include <ac/unistd.h>
2009-10-21 03:09:28 +00:00
Ralf Haferkamp
96ce821037
ITS#6341 removal of last entry from cache caused corruption in the lru list
2009-10-20 14:41:09 +00:00
Hallvard Furuseth
68b914d72b
ITS#6338: Fix \0-termination of dnParent(x, x) for one-level DN x.
2009-10-19 23:51:08 +00:00
Pierangelo Masarati
49b1729ad7
don't dereference pointer in case of error
2009-10-19 23:41:11 +00:00
Pierangelo Masarati
15c29b52fb
plug one-time leak
2009-10-19 23:39:59 +00:00
Pierangelo Masarati
6a1ac5f987
quick hack for ITS#6337: malloc'ed callback for bind
2009-10-19 23:00:15 +00:00
Rein Tollevik
739f8d0753
ITS#6335 Don't reuse a modtarget someone is about to remove
2009-10-16 17:27:18 +00:00
Howard Chu
eefe62b597
Implement policy checks on compare op
2009-10-15 07:11:39 +00:00
Pierangelo Masarati
716eaf0e8b
update entryCSN (and operational attrs in general) when changing memberOf (ITS#6329)
2009-10-14 20:35:42 +00:00
Pierangelo Masarati
5118f06b13
plug leak/logical error (ITS#6326)
2009-10-07 22:46:35 +00:00
Pierangelo Masarati
8bdf89ac6a
make sure members are not used uninitialized
2009-10-07 22:44:14 +00:00
Pierangelo Masarati
bd1f6deed7
more about ITS#6324
2009-10-07 20:01:19 +00:00
Pierangelo Masarati
16d3ad01c0
don't "overflow" debug levels (ITS#6324)
2009-10-06 22:03:15 +00:00
Hallvard Furuseth
e6fc72d3c6
ITS#6303: fix broken variant of the struct hack
2009-09-29 22:45:34 +00:00
Howard Chu
66570ad5f1
ITS#6258 add '-n' option to slaptest
2009-09-29 07:33:01 +00:00
Howard Chu
e0cad0e988
ITS#6308 lock leak: must release entry using same op that acquired it
2009-09-29 06:21:32 +00:00
Howard Chu
2e601e8291
ITS#6288 don't deref sort control if it wasn't set
2009-09-29 03:10:03 +00:00
Howard Chu
1a9a438c23
ITS#6140 delete obsolete schema
2009-09-29 02:34:28 +00:00
Howard Chu
2d2fca51d2
ITS#6242 need managedsait to replace glue entries with their real values
2009-09-27 22:42:04 +00:00
Pierangelo Masarati
1815ad4cb6
register authz cookie (ITS#6296)
2009-09-17 21:16:04 +00:00
Rein Tollevik
296826b1f0
ITS#6297 Allow hex in serverID directive
2009-09-17 15:06:22 +00:00
Pierangelo Masarati
4b4db7b529
keep compatibility with slapd's gmtime_mutex (ITS#6262)
2009-09-08 23:21:21 +00:00
Rein Tollevik
b3ef15321b
ITS#6287 Rewritten the ACL state cache
2009-09-08 21:06:15 +00:00
Pierangelo Masarati
393612b8e1
by now, make sure no timeout is used (ITS#6282)
2009-09-08 07:56:43 +00:00
Pierangelo Masarati
07b7491249
fix LDIF comment when modifying (ITS#6286)
2009-09-08 04:40:24 +00:00
Pierangelo Masarati
7608e06a53
warn if entryUUID,entryCSN are missing and the database is shadow (ITS#6281)
2009-09-08 04:11:05 +00:00
Howard Chu
fffb1fab4e
Include "lutil.h" - fixes warnings in RE24
2009-09-01 00:35:22 +00:00
Howard Chu
b0fdc08e06
ITS#6276 wake up blocked writers if we're pausing
2009-08-28 23:00:46 +00:00
Pierangelo Masarati
e45c20cf92
fix uninitialized var (ITS#6266; actually, the problem was a bit more severe...)
2009-08-24 01:22:55 +00:00
Pierangelo Masarati
20359f2020
fix previous commit (ITS#6267)
2009-08-24 00:41:12 +00:00
Pierangelo Masarati
72c1b2f821
add pedantic checks
2009-08-21 17:08:48 +00:00
Pierangelo Masarati
53fca03374
remove unneded code
2009-08-21 17:08:04 +00:00
Pierangelo Masarati
10a61120ca
tell what database initialization failed based on the suffix
2009-08-21 17:07:12 +00:00
Pierangelo Masarati
9f2360e2a9
fix uninitialized and off-by-one (thanks to valgrind)
2009-08-21 16:01:33 +00:00
Howard Chu
27c39c56c4
ITS#6152 add tests for cache refresh and Bind caching
2009-08-21 13:25:38 +00:00
Howard Chu
6d50de8526
ITS#6152 pwdModify support
2009-08-20 09:47:34 +00:00
Howard Chu
17d31e523f
Fix prev commit
2009-08-20 09:46:40 +00:00
Howard Chu
2d28fe4d4c
ITS#6265 must set orm_no_opattrs
2009-08-20 00:32:28 +00:00
Howard Chu
acd888b9de
child DB should have ordering prefix
2009-08-19 23:46:37 +00:00
Pierangelo Masarati
9f13a2ae02
more cleanup of attr renaming
2009-08-19 23:13:13 +00:00
Pierangelo Masarati
afec8d12ad
more cache monitoring (ITS#5178)
2009-08-19 23:09:52 +00:00
Pierangelo Masarati
a688867cae
more about previous commit
2009-08-19 22:41:06 +00:00
Hallvard Furuseth
4b6f2de8ab
Silence warning (bv_len >= 0 is always true)
2009-08-19 18:59:33 +00:00
Hallvard Furuseth
c0e0a64799
Silence warning (missing braces ininitializer)
2009-08-19 18:58:28 +00:00
Hallvard Furuseth
b6f79805be
Fix Debug() format (%x -> %lx) since rev 1.385
2009-08-19 18:57:04 +00:00
Pierangelo Masarati
69878f43c8
refactor connection handling
2009-08-19 16:45:15 +00:00
Pierangelo Masarati
bdec7702d7
better logging of privileged connections (more to come; might be unstable for a bit)
2009-08-19 15:00:59 +00:00
Pierangelo Masarati
148cc2f2fc
silence warnings
2009-08-19 13:20:11 +00:00
Pierangelo Masarati
b928fa97d8
silence warning
2009-08-19 13:02:54 +00:00
Pierangelo Masarati
8da69a9249
silence warnings
2009-08-19 12:55:15 +00:00
Howard Chu
0caea881a5
Only free the req_dn / ndn we created. Someone may have rewritten it...
2009-08-19 11:27:49 +00:00
Hallvard Furuseth
eea6678234
More ITS#6234: // comment from rev 1.384 -> /**/
2009-08-19 09:54:03 +00:00
Howard Chu
7427622625
s/new/anew/ avoid C++ keyword
2009-08-19 09:25:25 +00:00
Howard Chu
924fdaaf84
Bind caching works
2009-08-19 08:14:07 +00:00
Howard Chu
99341bb367
Look for our callback to pop, don't just do it blindly
2009-08-19 08:05:18 +00:00
Howard Chu
3de89b4201
Bind caching, work in progress
2009-08-19 03:00:33 +00:00
Pierangelo Masarati
f3cdcadf89
wrap gmtime for reentrancy (ITS#6262)
2009-08-18 23:48:15 +00:00
Howard Chu
52cd360680
Fix prev commit, attr_find args
2009-08-18 20:35:02 +00:00
Howard Chu
f0a0e9fa32
Revert prev commit, use ldap_pvt_ funcs
2009-08-18 08:53:41 +00:00
Pierangelo Masarati
87321c3fae
update cachedQueryURL only when requested
2009-08-18 08:38:42 +00:00
Howard Chu
7442e58dc2
For ITS#6152 add slapd_str2scope(), slapd_scope2bv()
2009-08-18 02:47:28 +00:00
Pierangelo Masarati
ef7569fdc0
expose cachedQueryURL in overlay's monitor entry (partial fulfilment of ITS#5178; needs new register_overlay() code in back-monitor)
2009-08-17 23:23:21 +00:00
Pierangelo Masarati
d4f88422fd
allow to register overlay-specific stuff
2009-08-17 23:08:40 +00:00
Pierangelo Masarati
5c62c82e00
more about ITS#6243
2009-08-17 23:05:48 +00:00
Pierangelo Masarati
7c15998121
silence warning
2009-08-17 23:02:50 +00:00
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
Howard Chu
87e2ad347b
Fix typo in prev commit
2009-05-03 00:47:25 +00:00
Howard Chu
10baa9a60a
ITS#6088 entryinfo cleanup
2009-05-03 00:30:20 +00:00
Howard Chu
6e27fa5076
ITS#6074 freeing already-freed EntryInfos...
2009-05-01 04:36:39 +00:00
Howard Chu
c7142fdec5
Don't underflow malloc'd memory in hdb_fix_dn()
2009-05-01 04:26:44 +00:00
Pierangelo Masarati
5efa186908
fix one-time leak
2009-04-30 11:36:12 +00:00
Pierangelo Masarati
fd609f3299
force entry release as appropriate (ITS#6081)
2009-04-29 13:03:50 +00:00
Pierangelo Masarati
477e602afd
make logs symmetric
2009-04-29 11:36:49 +00:00
Pierangelo Masarati
aa494bd8c0
only free entries dup'ed by rwm_entry_get_rw() (ITS#6058)
2009-04-20 14:54:18 +00:00
Pierangelo Masarati
5207531d9b
always pass a DN to the underlying database (ITS#6070)
2009-04-20 09:54:31 +00:00
Howard Chu
f11fcf47d2
Add missing extended/intermediate handlers for fake connections
2009-04-20 09:07:48 +00:00
Howard Chu
615082b0d0
Add ATDESC config arg type for AttributeDescriptions
2009-04-20 00:31:33 +00:00
Howard Chu
d70afbe6d1
Add global_host_bv, why do we still have bare char *s lying around...
2009-04-19 23:25:41 +00:00
Hallvard Furuseth
2365945268
ITS#6064: "//" comment from rev 1.445 -> "/**/" comment
2009-04-16 17:48:50 +00:00
Pierangelo Masarati
8ed197799c
fix ITS#6057
2009-04-15 10:46:11 +00:00
Howard Chu
cfb12f536b
ITS#6056 pagedresults stacked control is not overlay-friendly, add
...
slap_add_ctrls() function
2009-04-15 10:34:24 +00:00
Howard Chu
417b0b7013
ITS#6039 Winsock fixes
2009-04-11 04:03:09 +00:00
Howard Chu
6fc4af8a18
ITS#6054 quit using global malloc
2009-04-11 03:42:15 +00:00
Howard Chu
b0e50c6a7d
ITS#6054 assert/exit on failed allocs
2009-04-11 03:40:12 +00:00
Howard Chu
a9a50a6a3e
ITS#6021 minor cleanup
2009-04-05 04:17:06 +00:00
Rein Tollevik
2a4bce0633
More for ITS#6045: clear o_callback as well.
2009-04-04 20:25:38 +00:00
Rein Tollevik
4901d77f94
Fixed previous again, using o_bd->bd_self is safer.
2009-04-04 20:09:43 +00:00
Rein Tollevik
aef88182ab
Fixed previous edit: Use op->o_bd, not a copy of ss->s_op->o_bd
2009-04-04 17:58:58 +00:00
Rein Tollevik
ab0d7543df
ITS#6045: Use copy of db when testing filter in matchops.
2009-04-03 17:55:47 +00:00
Howard Chu
bf3920360d
ITS#6016 check for static backends and overlays
2009-04-02 23:41:41 +00:00
Howard Chu
94ab6a31b2
ITS#6038 revert prev commits, ITS rejected
2009-03-27 11:07:42 +00:00
Rein Tollevik
c8cf2fc47a
ITS#6038: Write slapadd progress meter to stdout.
2009-03-26 22:50:54 +00:00
Hallvard Furuseth
3e57c96acd
ITS#6037: don't loop forever on EINTR in wait4child()
2009-03-26 22:12:12 +00:00
Hallvard Furuseth
1e470657b2
ITS#6037: save/restore errno in signal handlers
2009-03-26 22:11:06 +00:00
Howard Chu
9309eb4b34
ITS#6036 zero out freed val
2009-03-26 16:58:44 +00:00
Pierangelo Masarati
c9f514d1d1
slapcat does not mention -s in usage
2009-03-26 00:54:11 +00:00
Howard Chu
bddc9b337c
ITS#6030 reject redundant moduleload attempts
2009-03-23 16:06:00 +00:00
Howard Chu
fdda1ea70f
ITS#6030 don't reload already loaded modules
2009-03-23 11:38:24 +00:00
Howard Chu
ae3fb6acfa
Fix 1.461, forgot to release mutex when persistent conn exists
2009-03-22 02:53:49 +00:00
Hallvard Furuseth
fb8a419e58
More ITS#5968: Edit AVA_Sort() comment to describe new behavior.
2009-03-20 17:11:28 +00:00
Howard Chu
528193ec23
Fix prev commit
2009-03-19 21:13:11 +00:00
Howard Chu
d44a75ff40
More for prev commit
2009-03-19 19:09:34 +00:00
Howard Chu
30d80e30ee
More for #6011 , rearrange teardown steps
2009-03-19 18:50:44 +00:00
Howard Chu
1d16ee5622
One more tweak for #5860
2009-03-19 06:06:37 +00:00
Howard Chu
65c24bdb1f
More for #5860 - if the cache blew past the maxsize, bring it all the way
...
back down to size.
2009-03-18 18:18:40 +00:00
Howard Chu
0121f8c01d
More for ITS#5860
2009-03-18 11:21:53 +00:00
Howard Chu
7f2f9c4b30
Cleanup prev commit
2009-03-18 09:44:20 +00:00
Howard Chu
cc950c70d1
More for ITS#5860, always check cache sizes
2009-03-18 08:52:38 +00:00
Howard Chu
ba75a865d7
ITS#6012 don't abort NULL txns (blind fix)
2009-03-17 18:09:40 +00:00
Pierangelo Masarati
6627f34356
use, then free (ITS#6027)
2009-03-17 15:52:41 +00:00
Howard Chu
59c7d24d7f
ITS#6011 more for refcount'd cookieState
2009-03-17 04:54:09 +00:00
Howard Chu
50cd5bab30
ITS#6011 better fix for connection queue
2009-03-17 03:24:51 +00:00
Howard Chu
614faa3911
ITS#6011 use refcount for shared cookieState
2009-03-17 03:07:40 +00:00
Howard Chu
c6da723a91
cleanup prev commit
2009-03-17 01:00:55 +00:00
Howard Chu
47f31dcd8e
More for ITS#6011
2009-03-17 00:56:23 +00:00
Howard Chu
1661146831
More debugging
2009-03-16 21:43:33 +00:00
Rein Tollevik
f30269f5d2
ITS#6024 Don't send cookies without csn.
2009-03-15 23:05:08 +00:00
Howard Chu
14d4ca86e1
Fix prev 2 commits: make sure op is Modify before testing modlist,
...
don't checkpoint when adding the context entry to a DB
2009-03-14 09:03:30 +00:00
Howard Chu
1e651713e2
ITS#5988 allow entries without CSN to be replicated
2009-03-14 07:22:19 +00:00
Howard Chu
9764499136
ITS#5973 re-enable patch
2009-03-14 07:21:06 +00:00
Howard Chu
4908009ed3
Don't write out abandoned results
2009-03-14 06:47:43 +00:00
Howard Chu
6a56c7014c
More for prev commit
2009-03-14 01:14:59 +00:00
Howard Chu
5bd8725aac
ITS#5988 avoid redundant slap_graduate_commit_csn calls
2009-03-14 01:04:55 +00:00
Howard Chu
fb35e344ed
Fix prev commit
2009-03-13 23:25:00 +00:00
Howard Chu
2f14098a9b
ITS#5988 don't respond if consumer's state is newer than ours
2009-03-13 23:09:14 +00:00
Howard Chu
43b23ce31c
ITS#5999 better modtarget tracking
2009-03-13 22:59:20 +00:00
Howard Chu
6044e46ec7
Avoid shutdown problems
2009-03-13 08:33:34 +00:00
Howard Chu
0af440befe
Cleanup prev commit
2009-03-13 07:50:45 +00:00
Howard Chu
eb3e92481b
More for #6020
2009-03-13 06:44:49 +00:00
Howard Chu
bbe1285696
For #6020 log remote sid in syncprov_sendresp
2009-03-13 03:44:51 +00:00
Howard Chu
4775157666
More for prev commit
2009-03-13 01:07:45 +00:00
Howard Chu
553d6a9963
ITS#5973 hide this for now, it's broken
2009-03-13 00:28:09 +00:00
Howard Chu
d03e5ad14e
More for prev commit
2009-03-13 00:26:24 +00:00
Howard Chu
011d1ca8bc
Fix prev commit
2009-03-13 00:15:28 +00:00
Howard Chu
83870c03d2
ITS#6020 better tracking of where changes came from
2009-03-13 00:14:19 +00:00
Howard Chu
2c1de1866e
Revert 1.447 ITS#5793, slap_queue_csn is mandatory
2009-03-12 13:50:51 +00:00
Howard Chu
f347798d48
ITS#6011 don't hang around during a shutdown...
2009-03-11 07:04:27 +00:00
Howard Chu
1336616065
Delete obsolete context entry stuff
2009-03-10 03:51:14 +00:00
Howard Chu
f2cc7e8a0a
ITS#5836, add writetimeout keyword for timing out hung writers
2009-03-10 00:42:10 +00:00
Howard Chu
496937eb79
ITS#6005 use ber_memcalloc/free
2009-03-09 01:22:48 +00:00
Howard Chu
5152ea19a3
ITS#6005 realloc should be ch_realloc
2009-03-09 00:48:44 +00:00
Howard Chu
df64b0573c
More for prev commit - fill in other opattrs when creating stub
2009-03-07 02:46:10 +00:00
Howard Chu
b88e792a7f
Revert ITS#3616 patch, obsoleted by ITS#4916 / ITS#6006
2009-03-07 02:28:01 +00:00
Howard Chu
89cfbe3b6e
ITS#6006 dummy entry needs objectclass attr. (Previous fix to ITS#4961
...
was incomplete. This patch obsoletes the patch for ITS#3616.)
2009-03-07 02:23:20 +00:00
Howard Chu
6f8323590e
More explicit for prev commit
2009-03-06 04:00:38 +00:00
Howard Chu
4fc4cb7995
ITS#6003, #5916 fix ldap_back_entry_get_rw, no deref here
2009-03-06 03:57:35 +00:00
Howard Chu
c5cf4fca22
ITS#6002 fix attrset unparse
2009-03-05 23:44:18 +00:00
Howard Chu
5947a1692d
Once more, mutex_lock -> trylock...
2009-03-05 22:46:03 +00:00
Howard Chu
e3e7a22b5d
Must use txns everywhere, otherwise it will deadlock
2009-03-05 21:59:05 +00:00
Rein Tollevik
447f3f746e
ITS#6001 SID of queued CSN must match the one in the op
2009-03-05 20:43:53 +00:00
Howard Chu
ce356b27b1
Fix modrdn / delOldRDN leaving empty mods
2009-03-05 19:43:55 +00:00
Pierangelo Masarati
eb6d01e393
more about previous commit
2009-03-05 18:25:43 +00:00
Pierangelo Masarati
30066c813b
fix previous commit
2009-03-05 18:06:27 +00:00
Howard Chu
7c183775d0
Check rc in prev commit
2009-03-05 17:53:01 +00:00
Howard Chu
75943bcd3f
ITS#5985 Only play one queued response at a time per psearch thread
2009-03-05 11:21:07 +00:00
Pierangelo Masarati
f3014a235d
better diagnostics
2009-03-05 10:59:34 +00:00
Howard Chu
86e048aa33
Delete bogus code from 1.435
2009-03-05 09:17:36 +00:00
Pierangelo Masarati
715b03d5ab
make sure sequence progresses correctly (ITS#5986)
2009-03-03 00:07:17 +00:00
Howard Chu
6d1aa51604
ITS#5860 - more for entry cache counts
2009-03-02 18:35:28 +00:00
Howard Chu
7198869342
More for prev - keep eifree at a reasonable number
2009-03-02 08:33:33 +00:00
Howard Chu
8ba8500ff1
ITS#5860 - free 10*minfree DN cache entries instead of just 1 per pass
2009-03-02 08:27:20 +00:00
Howard Chu
288e99cb08
ITS#5860 - NO_CACHE entries were not being counted when they were
...
converted to regular cached entries (so the entry cache grew beyond
the configured size)
2009-03-02 08:26:30 +00:00
Howard Chu
225aa9f526
More for prev
2009-03-02 07:57:18 +00:00
Howard Chu
03aa595908
ITS#5457 cleanup. If we ever go back to refcounting the entry cache,
...
this will matter.
2009-03-02 07:54:01 +00:00
Howard Chu
8597332057
ITS#5979 don't create reqOld attr if there was no previous value
2009-02-28 04:43:40 +00:00
Howard Chu
1f5937f993
More for prev
2009-02-27 06:57:09 +00:00
Howard Chu
bfdb727446
Fix potential double-free of filter on abandon
2009-02-27 06:39:43 +00:00
Howard Chu
e6eff03373
ITS#5977 fix typo
2009-02-27 01:58:09 +00:00
Pierangelo Masarati
7fe91339df
fix ITS#5959 fix
2009-02-27 01:45:20 +00:00
Howard Chu
7549abb063
Better fix for prev
2009-02-27 01:31:31 +00:00
Howard Chu
6345812f49
More for prev commit
2009-02-27 01:28:22 +00:00
Howard Chu
755e645da3
ITS#5977 strip duplicates out of sorted attrs
2009-02-27 01:22:23 +00:00
Howard Chu
62eeafa1d9
ITS#5977 strip duplicates out of sorted attrs
2009-02-27 01:11:33 +00:00
Howard Chu
8e5ebf4dfb
Fix prev commit
2009-02-26 23:16:41 +00:00
Howard Chu
72fb4246d6
Avoid reference past end of array
2009-02-26 04:13:20 +00:00
Pierangelo Masarati
0d6e859846
fix ldap namespace (part of ITS#5974)
2009-02-24 21:09:41 +00:00
Rein Tollevik
47011649f7
ITS#5973 use the modify op to pass csn updates from syncrepl to syncprov
2009-02-24 20:11:22 +00:00
Rein Tollevik
0157ae4744
ITS#5972 Added newCookie sync info messages.
2009-02-24 20:01:08 +00:00
Rein Tollevik
5909aa56ff
ITS#5969 update consumers csn when providers change.
2009-02-23 00:37:12 +00:00
Pierangelo Masarati
34b34f6b63
do not allow naming attribute repetitions in RDNs (ITS#5968)
2009-02-23 00:04:48 +00:00
Pierangelo Masarati
e1fbf8b125
fix objectClass inheritance deletion (ITS#5517, ITS#5963)
2009-02-22 23:32:00 +00:00
Pierangelo Masarati
f2a4158e0d
don't allow to add distinguished values when other values of naming attributes are already present (ITS#5965)
2009-02-21 11:31:53 +00:00
Howard Chu
2024d5af85
ITS#5959 drop illegal values, only drop attr if it's left empty
2009-02-20 02:02:17 +00:00
Howard Chu
384f23f59d
ITS#5959, cleanup
2009-02-20 02:01:07 +00:00
Howard Chu
1e4060891f
ITS#5959 just drop illegal values, keep remainder if any. fix a_numvals.
2009-02-20 01:48:19 +00:00
Howard Chu
219c97e4a8
ITS#5724 use bd_self->be_ctrls
2009-02-20 00:57:44 +00:00
Howard Chu
ca07957697
Revert 1.91, breaks #5346 . (ITS#5724)
2009-02-20 00:56:50 +00:00
Howard Chu
4d1f13b332
ITS#5960 fix rwm_bva_rewrite handling
2009-02-20 00:47:04 +00:00
Howard Chu
0693557161
ITS#5961 fix prev commit
2009-02-19 22:12:23 +00:00
Howard Chu
4e09f864a9
ITS#5959 drop attrs with illegal values
2009-02-19 02:05:28 +00:00
Howard Chu
52e0581b7f
More for prev commit
2009-02-19 01:22:04 +00:00
Howard Chu
55d77a7a95
Fix spurious sizelimit exceeded err
2009-02-19 01:15:15 +00:00
Howard Chu
a692e8ad74
Fix prev commit
2009-02-19 00:41:39 +00:00
Howard Chu
58f33cbd1e
ITS#5927, don't cache queries with malformed entries in results
2009-02-18 23:11:28 +00:00
Howard Chu
168fa346cc
Cleanup prev commit
2009-02-18 00:17:59 +00:00
Howard Chu
6f4b2cc66e
ITS#5956 only retry attaching to SHM once
2009-02-18 00:14:16 +00:00
Howard Chu
c50729c4fd
ITS#5954 from jclarke@linagora.com: fix be_syncinfo order
2009-02-17 22:08:00 +00:00
Howard Chu
e841247c90
Fix corrupted CSN issue
2009-02-16 00:12:38 +00:00
Howard Chu
99e47ef47a
(Temporarily) define CHECK_CSN for all LDAP_DEVEL builds
2009-02-15 23:21:28 +00:00
Howard Chu
55cc203b52
More CHECK_CSN tests
2009-02-15 23:17:45 +00:00
Howard Chu
450f352ec1
Fix compare op
2009-02-15 23:14:25 +00:00
Pierangelo Masarati
d36099aa62
cleanup (related to ITS#5760)
2009-02-15 22:16:21 +00:00
Pierangelo Masarati
8fa2f07531
do not let entryDN,subschemaSubentry slip into results when mapped out (ITS#5760)
2009-02-14 14:13:46 +00:00
Pierangelo Masarati
203eaa6204
consistently map operational attrs as well (ITS#5760)
2009-02-14 13:58:09 +00:00
Pierangelo Masarati
37e8e5a237
consistently map operational attrs as well (ITS#5760); silence warning
2009-02-14 11:11:24 +00:00
Pierangelo Masarati
8f96e64605
let special attrnames slip through (ITS#5760)
2009-02-14 10:39:45 +00:00
Pierangelo Masarati
f83b4345dd
more about ITS#5940
2009-02-13 01:12:56 +00:00
Pierangelo Masarati
a83d10e4ac
more about ITS#5940
2009-02-13 00:02:11 +00:00
Pierangelo Masarati
d1b415e6be
rewrite info should always be set (ITS#5940)
2009-02-12 23:00:47 +00:00
Pierangelo Masarati
e06771c10a
fix recursion detection (ITS#5943)
2009-02-12 22:29:13 +00:00
Howard Chu
2a3076e597
Fix typo in prev commit
2009-02-12 17:07:21 +00:00
Howard Chu
b37c553c71
Ignore hangups on removed sockets
2009-02-12 17:05:00 +00:00
Howard Chu
686ceac31f
Add some asserts on CSN validity
2009-02-11 22:00:00 +00:00
Howard Chu
3bcb88e363
Silence warning in prev commit
2009-02-11 01:48:09 +00:00
Howard Chu
868ea3568c
ITS#5939 plug descriptor leak
2009-02-10 20:07:24 +00:00
Howard Chu
cca8c1953e
ITS#5935 fix prev commit
2009-02-10 15:13:31 +00:00
Pierangelo Masarati
a5924e3092
more on ITS#5931: handle intermediate responses and support syncrepl also in back-ldap
2009-02-10 14:27:28 +00:00
Pierangelo Masarati
5d78ca3c6a
fix previous commit (and ITS#5931: now back-meta allows to proxy syncrepl)
2009-02-10 14:08:16 +00:00
Pierangelo Masarati
899398b937
partially addresses an issue with ITS#5931: intermediate responses seem to be handled, as well as entries with controls; syncrepl does not work yet
2009-02-10 13:58:09 +00:00
Howard Chu
6a838df274
ITS#5392 use lutil_debug for Statslog if HAVE_DEBUG && !HAVE_SYSLOG
2009-02-10 11:16:31 +00:00
Howard Chu
a86653c3d9
ITS#5613 compare listener URLs verbatim with serverID URLs
2009-02-10 11:09:50 +00:00
Howard Chu
ab123880df
ITS#5925 fix prev commit
2009-02-10 04:32:15 +00:00
Howard Chu
0f263632a1
ITS#5935 better check for active syncrepl sessions, avoid double-free
2009-02-10 00:34:47 +00:00
Pierangelo Masarati
911b5fd42e
do not assert when receiving intermediate response (partial fix to ITS#5931)
2009-02-09 14:55:56 +00:00
Howard Chu
2ee43073e9
ITS#5927 MicrosoftAD compatibility hack (YUCK) - treat '=' as '-'
...
if defined in an attributeoption
2009-02-09 05:38:30 +00:00
Pierangelo Masarati
bdb121c967
discard attribute values if attribute name cannot be parsed (ITS#5927)
2009-02-07 15:09:18 +00:00
Pierangelo Masarati
1bab6404f5
consistently allow explicit add/delete of superior objectClasses (ITS#5517)
2009-02-07 11:54:53 +00:00
Howard Chu
044b646445
Fix prev commit, no recursion allowed in glue_sub_attach
2009-02-05 22:59:02 +00:00
Howard Chu
84374348e5
#5925 , set LINKED flag so it's possible to detect non-linked subs.
...
(But we don't check for this flag yet. Not sure what to really do
about improper configs after they've gotten this far...)
2009-02-05 21:54:11 +00:00
Howard Chu
1861632db1
ITS#5925, allow online glue_sub_attach to be deferred
2009-02-05 21:44:21 +00:00
Pierangelo Masarati
e96230ee97
more about ITS#5792
2009-02-05 21:11:05 +00:00
Howard Chu
f719c364c5
ITS#5922 - disable meter for non-default debug settings
2009-02-05 20:57:17 +00:00
Pierangelo Masarati
8227ed9f71
fix use of dangling pointers (ITS#5924)
2009-02-05 19:54:51 +00:00
Pierangelo Masarati
0374a8341a
initialize ndn (ITS#5923)
2009-02-05 18:46:03 +00:00
Pierangelo Masarati
7cd382d931
build entry's pretty DN from parent's (ITS#5326)
2009-02-05 18:44:52 +00:00
Howard Chu
72145a7183
More for prev commit, note when closing DB
2009-02-05 10:39:47 +00:00
Howard Chu
d0515c4017
ITS#5922 with namespace changes
2009-02-05 09:38:07 +00:00
Pierangelo Masarati
260fd357df
fix structuralObjectClass modification (glue, ITS#5921; w/ relax, ITS#5792)
2009-02-04 22:36:49 +00:00
Pierangelo Masarati
92576d2bc0
olcDatabase needs X-SORTED 'SIBLINGS' index
2009-02-04 20:06:28 +00:00
Howard Chu
a5ed986694
Remove redundant isGrouporMember calls
2009-02-03 02:14:53 +00:00
Howard Chu
cd0f8dec94
Fix prev commit for modify/delete
2009-02-03 01:58:57 +00:00
Howard Chu
2b08e96b53
ITS#5916 - externally callable functions are ldap_pvt, not ldap_int.
2009-02-02 21:14:34 +00:00
Pierangelo Masarati
0ded1f16d5
Allow alias dereferencing in search C API; use new API in proxy backends (ITS#5916)
2009-01-31 10:27:07 +00:00
Pierangelo Masarati
97bd3479c4
muck with flags only when needed (ITS#5898)
2009-01-30 01:29:32 +00:00
Howard Chu
5f809c45eb
check mutex in connection_write()
2009-01-29 22:43:18 +00:00
Pierangelo Masarati
4572e7d721
proxy RFC4525 increment; bail out in case of unsupported extension (ITS#5912)
2009-01-29 20:30:19 +00:00
Howard Chu
e80731bc19
revert epoll edge-triggered listening, just use it to silence hangup events
2009-01-29 15:15:16 +00:00
Howard Chu
ca2aa02f09
More for prev commit: Delete obsolete functions
2009-01-28 03:33:52 +00:00
Howard Chu
461ffd51f6
Reverse lock order when detaching op
2009-01-28 02:03:07 +00:00
Howard Chu
8c464dbedb
ITS#5857 always combine frontend and backend: restrict, requires, ssf
2009-01-28 01:45:40 +00:00
Howard Chu
9b56116d0d
ITS#5903 restructure callbacks
2009-01-28 00:29:34 +00:00
Rein Tollevik
e8ef7e631d
ITS#5907 use overlay BackendInfo to read old entry.
2009-01-27 19:18:13 +00:00
Howard Chu
d3f1921cc9
Mostly revert prev commit
2009-01-27 18:18:39 +00:00
Howard Chu
1a1d226dad
Revert prev commit, unnecessary
2009-01-27 18:16:28 +00:00
Howard Chu
fb6dfb852d
ITS#5540 sean-burford-monitor-normalize-unified-080706.patch
2009-01-27 10:05:55 +00:00
Howard Chu
05ec9552a7
Use epoll in edge-triggered mode
2009-01-27 08:00:50 +00:00
Howard Chu
c0586f0f45
ITS#4359,#2615 add slapi_pw_find()
2009-01-26 22:36:36 +00:00
Howard Chu
a96538f36c
ITS#5860 don't free entryinfo of entries that are validly in the cache
2009-01-26 20:59:10 +00:00
Howard Chu
09a369c4ea
More for ITS#5860
2009-01-26 20:36:17 +00:00
Howard Chu
aa569ea04e
ITS#5756 sort filters more completely
2009-01-26 11:07:45 +00:00
Howard Chu
64d0cb9cf6
ITS#5859 fix IDL cache for hdb DB with empty suffix
2009-01-26 10:20:51 +00:00
Howard Chu
a59bdb2d5d
ITS#5860 more for prev commit
2009-01-25 22:43:31 +00:00
Howard Chu
673405bc2e
More for prev commit
2009-01-25 22:06:24 +00:00
Howard Chu
01cf75383e
Fix prev commit
2009-01-25 21:15:45 +00:00
Howard Chu
9c34d6c8c7
Dynamically added databases did not have controls init'd
2009-01-25 04:07:58 +00:00
Howard Chu
ef846c9105
More for prev commit
2009-01-25 03:04:43 +00:00
Howard Chu
b8db865c0a
Cleanup, treat modifyTimestamp specially too
2009-01-25 02:18:41 +00:00
Howard Chu
b69b2d2f69
More for prev commit
2009-01-25 01:53:32 +00:00
Howard Chu
aedaaf6658
Blind fix to runqueue_remove assert. unable to reproduce the problem...
2009-01-24 21:56:15 +00:00
Pierangelo Masarati
bf261acda7
fix back-config handling of slapo-rwm
2009-01-24 15:41:48 +00:00
Howard Chu
532347bb3c
ITS#5881 consumer must use ManageDSAiT control to retrieve referrals
...
as entries. provider must preserve incoming ManageDSAiT status.
2009-01-24 07:04:42 +00:00
Howard Chu
35d8e5d5a6
FIx prev commit, OID clash
2009-01-24 05:49:14 +00:00
Howard Chu
fe70cdf2ea
ITS#5864 - require BDB >= 4.6 for trickle task
2009-01-24 03:43:08 +00:00
Howard Chu
cf1558659b
ITS#5655 TLS_PROTOCOL_MIN from Philip Guenther
2009-01-24 03:34:49 +00:00
Howard Chu
ac037d3a13
ITS#5843, fallout from #5470 . Just test against our newest CSN.
2009-01-24 03:23:31 +00:00
Howard Chu
417d105c29
ITS#5860 more ID_NOCACHE fallout
2009-01-24 00:55:44 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +00:00
Pierangelo Masarati
549455c6c6
fix alias deref in case of retry (ITS#5889)
2009-01-21 08:55:48 +00:00
Howard Chu
d495c16861
ITS#5897 fix bval length of serverID w/URL
2009-01-20 23:31:33 +00:00
Howard Chu
863754cb82
Fix prev commit, was hanging up on write events
2009-01-16 22:32:21 +00:00
Howard Chu
9b8dd2033f
Revert prev commit, better fix - make sure client conns are closed
...
as expected
2009-01-16 21:49:00 +00:00
Howard Chu
a4167862c3
Client connection might get closed implicitly
2009-01-16 21:28:46 +00:00
Howard Chu
13ddc561d8
Fix prev commit - check for c_state == CLOSING first
2009-01-15 21:31:58 +00:00
Howard Chu
dd15627a5e
Fix prev commit, c_writers check should be mutex'd
2009-01-15 21:22:35 +00:00
Howard Chu
1a171b07d3
ITS#5835 fix connection teradown when there are waiting writers
2009-01-15 20:41:40 +00:00
Howard Chu
96192064f3
ITS#5886 fix epoll hangup handling
2009-01-14 04:28:24 +00:00
Howard Chu
f54bb377df
Revert prev commit
2009-01-13 00:08:36 +00:00
Howard Chu
43c1f42461
ITS#5835 tentative fix - remove bogus call to connection_close().
...
Note that with this change, all calls to connection_closing() and
connection_close() always occur in pairs - probably the two
functions should be collapsed into one.
2009-01-13 00:03:23 +00:00
Howard Chu
c6b18cd7c5
ITS#5855 fix Windows wake_sds close
2009-01-05 22:09:10 +00:00
Howard Chu
0b60ddd7ca
Fix prev commit
2008-12-29 15:38:56 +00:00
Howard Chu
6d73c12403
ITS#5866 skip CSN check for glue entries
2008-12-24 12:21:36 +00:00
Pierangelo Masarati
3cafd7b1eb
honor RFC4528 assertion control for LDAP add operations (ITS#5861; blind fix)
2008-12-20 22:56:03 +00:00
Pierangelo Masarati
e0ad0fbd8d
honor RFC4528 assertion control for LDAP add operations (ITS#5861)
2008-12-20 22:49:53 +00:00
Pierangelo Masarati
b334844a70
return error codes (ITS#5867)
2008-12-20 22:45:02 +00:00
Pierangelo Masarati
fb9128cdc8
check validity of idassert-bind line (ITS#5863)
2008-12-20 22:34:00 +00:00
Pierangelo Masarati
0631c47576
do not allow slapo-ppolicy to be global by now (ITS#5858)
2008-12-20 22:02:06 +00:00
Pierangelo Masarati
5a50733e39
don't send error when going to retry (alternative fix to ITS#5854)
2008-12-12 09:29:51 +00:00
Pierangelo Masarati
7681642bcf
fix LDAP deref control response; fix tool response handling; add lutil_memcopy() for API uniformity (more about ITS#5768)
2008-12-11 23:17:08 +00:00
Pierangelo Masarati
ed33fa5cc6
add shadow mask
2008-12-06 17:20:43 +00:00
Pierangelo Masarati
d8e4b48cee
don't muck with shadow flags if database is already shadow (ITS#5850)
2008-12-06 17:16:03 +00:00
Pierangelo Masarati
bd49d6dc11
make sure the right control is being used (a little bit paranoid...)
2008-12-06 14:41:12 +00:00
Howard Chu
65530005ee
More for prev commit - if doing both modrdn and modify at once, only
...
set the CSN on the modify op.
2008-12-03 04:49:53 +00:00
Howard Chu
89e13bff5f
Refine prev commit
2008-11-29 11:06:28 +00:00
Howard Chu
2705cbd749
ITS#5809 - fixed again, based on 1.423 (reverted 1.424-1.425)
2008-11-29 03:41:33 +00:00
Howard Chu
b25c74777a
Let the idletimeout check kill hung writers
2008-11-28 23:45:56 +00:00
Pierangelo Masarati
a7b4be5b33
fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change)
2008-11-28 23:15:03 +00:00
Pierangelo Masarati
74636cfb51
more about ITS#5804
2008-11-28 22:50:18 +00:00
Howard Chu
e2ee5844e0
ITS#5835 change some DEBUG_TRACE messages to DEBUG_CONNS for easier debug
2008-11-28 21:09:34 +00:00
Pierangelo Masarati
1d9ff10ed7
add newRDN rewriting; fix rewriteContext names (ITS#5834)
2008-11-28 20:34:02 +00:00
Pierangelo Masarati
7c3e478f40
fix previous commit (related to ITS#5804)
2008-11-28 19:34:02 +00:00
Ralf Haferkamp
760660a4a2
Remove unneeded locking. Don't wait for memp_trickle to complete,
...
loosing an signal doesn't hurt in this case.
2008-11-28 16:09:40 +00:00
Pierangelo Masarati
4bbb033c6b
retry every hour, but don't save it; on the contrary, complain every time syncrepl is configured without retry (ITS#5825)
2008-11-24 18:15:52 +00:00
Howard Chu
c71e7b399a
ITS#5827, release syncop after mod op completes
2008-11-23 20:43:39 +00:00
Howard Chu
f6ae9c9c9f
Fix typo in prev commit
2008-11-22 22:41:11 +00:00
Howard Chu
1d746e552a
Initialize bli_flag
2008-11-22 21:08:38 +00:00
Pierangelo Masarati
970a60002f
don't leak generated filters (ITS#5826)
2008-11-22 18:38:37 +00:00
Pierangelo Masarati
15236be495
fix previous commit
2008-11-22 18:35:19 +00:00
Pierangelo Masarati
ce045e153f
make messages more esplicative; fix style
2008-11-22 17:53:14 +00:00
Pierangelo Masarati
31c61ad855
minimal fix for ITS#5825, pending discussion
2008-11-22 16:00:41 +00:00
Pierangelo Masarati
f0af51d639
don't alloc on slab (ITS#5820)
2008-11-20 17:22:33 +00:00
Pierangelo Masarati
55010d5e4e
fix previous commit (ITS#5819)
2008-11-19 17:08:48 +00:00
Pierangelo Masarati
6f20049610
clear rc if value must be added (ITS#5819)
2008-11-19 16:02:22 +00:00
Pierangelo Masarati
2f32c29e4a
don't bailout in case of insufficientAccess (ITS#5816)
2008-11-18 01:29:34 +00:00
Pierangelo Masarati
5cf95c5b30
fix length
2008-11-18 00:12:22 +00:00
Quanah Gibson-Mount
911376e543
Fix prev commit
2008-11-17 23:45:20 +00:00
Pierangelo Masarati
e5867e2f30
improve previous commit (ITS#5814)
2008-11-16 23:58:46 +00:00
Pierangelo Masarati
bbcc89ecd3
s/not|got/(non)present/ (more readable, isn't it?)
2008-11-16 20:33:03 +00:00
Pierangelo Masarati
b52c62e69f
don't assert on unprotected data (ITS#5814)
2008-11-16 20:29:26 +00:00
Hallvard Furuseth
85e8b309d5
Silence gcc -Wformat: Put rev 1.343's debugmsg in Debug() so -Wformat can check
2008-11-16 03:22:27 +00:00
Hallvard Furuseth
753a6d0008
C89 rejects ITS#5784 non-constant array init (backend.c 1.402,-controls.c 1.201)
2008-11-16 03:10:15 +00:00
Howard Chu
011d14c136
cleanup prev commit, delete unused vars
2008-11-16 01:24:09 +00:00
Howard Chu
329741ff0b
ITS#5809 fix prev commit - always turn modrdn into modrdn+modify, and
...
only propagate the Modify op.
2008-11-16 01:21:31 +00:00
Howard Chu
b7e8411dca
ITS#5809 fix 1.421, avoid modrdn falling thru to modify unnecessarily
2008-11-15 23:54:23 +00:00
Pierangelo Masarati
03b0a71014
silence warnings
2008-11-15 15:08:00 +00:00
Emmanuel Dreyfus
3ac5b91a2f
Fix warnings an a real bug hidden by the lack of warning...
2008-11-15 11:09:03 +00:00
Pierangelo Masarati
a86fae235b
fix previous commit (related to ITS#5804)
2008-11-15 10:42:18 +00:00
Howard Chu
60450c7045
ITS#5709 make sure CSNs are generated and queued atomically
2008-11-15 08:49:44 +00:00
Emmanuel Dreyfus
4c60645bfb
Add ACL <who> regex-substitution from attribute value submatches. Cf ITS#5804
2008-11-15 07:18:39 +00:00
Howard Chu
d1221975d6
ITS#5809 fewer false detections of renames
2008-11-14 23:48:38 +00:00
Hallvard Furuseth
587d928552
reformat
2008-11-14 18:19:19 +00:00
Hallvard Furuseth
355c94ddb7
ITS#5329: back-ldif deadlock with access controls
2008-11-14 18:15:35 +00:00
Howard Chu
51c87bb9c7
ITS#5809 renames are not exclusive from modifies
2008-11-13 22:46:49 +00:00
Hallvard Furuseth
d756699af6
ITS#5319 - support rename to same DN.
2008-11-12 00:20:48 +00:00
Hallvard Furuseth
9f55af00ce
ITS#5408 part 11 - notice Abandon.
2008-11-12 00:11:53 +00:00
Hallvard Furuseth
2d1af3f2f7
ITS#5408 part 10 - errors from search and slapcat.
...
- Tweak error code/message for absent directory, including database directory.
- Catch closedir() error.
- ldif_tool_entry_close(): Free entries and reset entry list.
- Propagate any error to slapcat & co.
2008-11-12 00:10:01 +00:00
Hallvard Furuseth
c765070bf0
ITS#5408 part 9 - Sorted RDNs.
...
- Parse sorted attrs more carefully:
Accept only attr={num}val.ldif and attr=val{num}.ldif and only base 10.
Sort "attr=foo" before "attr=foo{n}". Truncate at ".ldif" while sorting.
- Make the sort order independent of the LDIF files' order in the directory.
2008-11-12 00:03:55 +00:00
Hallvard Furuseth
32bc29d1af
ITS#5408 part 8 - Rewrite search API, structs bvlist/enumCookie/ldif_tool.
...
r_enum_search() -> ldif_send_entry() + ldif_readdir() + ldif_search_entry().
enum_tree() -> search_tree(). fullpath() -> fullpath_alloc() + FILL_PATH().
No functionality change except catching malloc and opendir() errors.
2008-11-11 23:59:43 +00:00
Hallvard Furuseth
7c3cba840c
ITS#5408 part 7 - Search operation bugs in r_enum_tree().
...
- Do not modify op->ors_scope, pass scope parameter instead.
- Save copies of dn/ndn before sending with REP_ENTRY_MODIFIABLE.
- Only the search baseDN may produce noSuchObject.
- More accurate result code.
2008-11-11 23:49:00 +00:00
Hallvard Furuseth
b1aed5b0ab
ITS#5408 part 6 - referrals.
...
- Sending continuation references:
Drop an unnecessary and wrong LDAP_SCOPE_BASE check. The correct
check would have been for DN == baseDN.
Do not rewrite the scope, the caller already did.
- ldif_prepare_create(): Check that parent/newSuperior is not a referral.
- Rewrite ldif_back_rerferrals(). Better error handling. Always pass
refs through referral_rewrite(). As in back-bdb, apply manageDSAit
only to the baseDN and do not use default_referral.
2008-11-11 23:42:32 +00:00
Hallvard Furuseth
5c41dfdabe
ITS#5408 part 5 - handle modrdn file error. Move entry/subtree back if needed.
...
Add move_dir() macro, matching move_file().
2008-11-11 23:22:24 +00:00
Hallvard Furuseth
a9481e437c
ITS#5408 part 4 - preparing for entry creation. More error handling.
...
- Move mkdir() into ldif_write_entry(). Modrdn lacked this.
- Factor tests for whether to create entry & dir out to ldif_prepare_create().
- Ensure an entry always exists if the corresponding subtree directory does.
- Move get_parent_path() up, accept NULL output param and malloc errors.
2008-11-11 23:16:22 +00:00
Hallvard Furuseth
ddc0613920
ITS#5408 part 3 - file path tweaks, sanity checks.
...
- Rename temporary filename patterns from "<rdn>.ldifXXXXX" to "<rdn>.XXXXX".
- Add and start using ldif2dir_len() & co.
2008-11-11 23:06:07 +00:00
Hallvard Furuseth
b00aa30d37
ITS#5408 part 2 - filesystem I/O, file error handling:
...
- Start moving file handling near the top - move_file(), ldif_tempname().
- Rename get_entry_for_fd() -> ldif_read_entry() and move open() into it.
Rewrite slurp_file() as ldif_read_file(). Just stat() if output param==NULL.
- Rewrite ldif_write_entry(). Add LDAP_DEBUG_TRACE output.
2008-11-11 23:00:18 +00:00
Hallvard Furuseth
69a6d8ca2f
ITS#5408 part 1 - error handling, debug output, add error texts (rs->sr_text).
...
- Reset rs->sr_text on success in apply_modify_to_entry(), not in its callers.
- Fix error test from ldif_write_entry() in ldif_move_entry().
- Start changing LDAP_UNWILLING_TO_PERFORM -> LDAP_OTHER for internal errors.
- Pass around LDAP result codes instead of errno.
- Rename spew_entry() -> ldif_write_entry(), move entry2str_mutex lock into it.
- Some other preparation for upcoming changes.
2008-11-11 22:53:41 +00:00
Howard Chu
cb8f0d5ad5
ITS#5572 retrieve main DB's ACL before relevant operations
2008-11-11 22:10:28 +00:00
Howard Chu
6932652551
ITS#5572 cleanup unneeded code
2008-11-11 21:40:39 +00:00
Quanah Gibson-Mount
e701d9b885
ITS#5572 from Rein
2008-11-11 21:09:28 +00:00
Pierangelo Masarati
21264e2cb8
eat all the substrings assertion if the attribute type does not support substrings matching (ITS#5803)
2008-11-11 18:01:35 +00:00
Quanah Gibson-Mount
1c8e1bfc74
Fix missing CVS revision header
2008-11-10 23:15:35 +00:00
Quanah Gibson-Mount
50402dca2b
Fix missing CVS revision tag
2008-11-10 23:14:13 +00:00
Howard Chu
b613ab25b0
ITS#4556 allow Add content checking to be configured per-DB
2008-11-10 22:10:19 +00:00
Howard Chu
4d51be0c9b
ITS#5798, don't use per-DB schema-check flag
2008-11-08 16:48:48 +00:00
Pierangelo Masarati
1dd88a8b11
exactly one ID can match (ITS#5791; further fix previous commit)
2008-11-08 10:39:45 +00:00
Howard Chu
5dc58028c1
ITS#5710 fix stupid updateCookie hack, use explicit o_dont_replicate flag
2008-11-06 21:10:25 +00:00
Howard Chu
bda294f5c1
ITS#5794 move prev fix
2008-11-06 16:58:03 +00:00
Howard Chu
8499581841
ITS#5794 NUL-terminate old pw before checking
2008-11-06 16:47:05 +00:00
Howard Chu
b28aa117ea
ITS#5783 / 5795 fix undef_promote
2008-11-06 16:27:01 +00:00
Pierangelo Masarati
c41df6ed07
lookup entry id when equality on entryDN (ITS#5791; fixes previous commit)
2008-11-04 12:16:23 +00:00
Pierangelo Masarati
45aaaddb16
lookup entry id when equality on entryDN (proposed fix for ITS#5791; does not work for back-hdb, though)
2008-11-04 12:07:47 +00:00
Pierangelo Masarati
d4970fcb6f
don't allow indexing of entryDN (ITS#5790)
2008-11-04 11:54:19 +00:00
Howard Chu
4e22081e02
ITS#5745 report errors in shutdown processing
2008-11-03 13:23:05 +00:00
Howard Chu
9d5de25b5b
ITS#5745 long-lived TXNs must be closed before DBs
2008-11-03 13:00:00 +00:00
Howard Chu
f463be3b95
Add DBFLAG_CLEAN for a DB that was cleanly shut down; don't bother
...
scanning to verify contextCSN for clean shutdowns (ITS#5640)
2008-11-02 23:06:10 +00:00
Howard Chu
1214d24cc0
ITS#5709 forgot to commit this with syncprov.c
2008-11-02 22:16:20 +00:00
Pierangelo Masarati
52e28a9ece
add dontUseCopy and proxiedAuthz "non_critical" disallow switches (ITS#5785)
2008-11-02 21:38:10 +00:00
Pierangelo Masarati
21ddf6193d
controls can always have criticality set to FALSE (ITS#5785)
2008-11-02 21:06:50 +00:00
Howard Chu
d75a567708
Really fix ITS#5709 - more explicit check for un-replicatable ops, and
...
don't send ctxcsn update if current maxcsn doesn't match current csn
2008-11-02 15:26:25 +00:00
Howard Chu
a8658c742e
be->be_pcl_mutexp superseded by be->bd_self
2008-11-02 07:58:50 +00:00
Howard Chu
ad8180b3b9
Fix ITS#5709, use original pending list
2008-11-02 07:46:46 +00:00
Pierangelo Masarati
7ad03166b6
add "What Failed?" LDAP control (ITS#5784)
2008-11-01 15:15:57 +00:00
Howard Chu
fa245f7491
ITS#5781 fix modification of MV attrs with no EQ rule
2008-10-30 18:22:11 +00:00
Pierangelo Masarati
00accc69c4
check the length of the value with the right index (blind fix to ITS#5779)
2008-10-30 14:03:47 +00:00
Howard Chu
66be548b58
ITS#5774 blind fix for Windows, please test
2008-10-29 13:14:10 +00:00
Hallvard Furuseth
93c75ea669
Cleanup: Move snprintf preformatting into unused Statslog() argument
2008-10-28 22:27:53 +00:00
Pierangelo Masarati
ffb66f41bb
anticipate Statslog to avoid using dangling pointers (ITS#5775) - HEADS-UP: now 'ENTRY dn=' may appear also in case the PDU can't be sent
2008-10-28 22:02:01 +00:00
Rein Tollevik
7ec3743aa5
ITS#5776 prevent duplicate removal of qtask from runqueue.
2008-10-28 20:33:46 +00:00
Pierangelo Masarati
6ffe73f5df
address ITS#5773 for slapo-rwm(); needs work
2008-10-26 20:47:11 +00:00
Pierangelo Masarati
9401bd3817
normalize rewritten DN-valued attrs (ITS#5772)
2008-10-26 19:29:36 +00:00
Pierangelo Masarati
f29d1b1455
fix dangling pointer issue; cleanup as early as possible
2008-10-26 19:24:10 +00:00
Pierangelo Masarati
2c60719a13
don't rely on attribute values in the returned entry: the control may act on attribute values not requested
2008-10-25 11:06:29 +00:00
Hallvard Furuseth
3b42e19253
ITS#4467: Fix a few wrong uses of snprintf. Also drop an unneeded array init.
2008-10-24 18:57:38 +00:00
Hallvard Furuseth
248dd83add
Plug memory leak with dn.regex. Force error for "dn.=pattern". Cleanup.
2008-10-24 18:22:54 +00:00
Hallvard Furuseth
0f22e6bb04
More ITS#5734: Handle empty o_req_ndn. flags=>flags&LDAP_LIMITS_MASK in a test.
2008-10-24 18:16:43 +00:00
Hallvard Furuseth
dffe8d37fa
ITS#5770: Fix unaligned BerElements: Use BerElementBuffer, not char[size].
2008-10-24 17:52:05 +00:00
Hallvard Furuseth
db5943fbd6
ITS#4467: Fix snprintf/WHATSLEFT buffer overflow tests.
...
Also make WHATSLEFT unsigned.
2008-10-24 13:16:06 +00:00
Pierangelo Masarati
65a390546f
forgot access control...
2008-10-24 10:34:04 +00:00
Pierangelo Masarati
e9fb10d2b7
fix examples
2008-10-23 00:14:34 +00:00
Pierangelo Masarati
6bedf74c41
tag optional stuff
2008-10-22 23:38:09 +00:00
Pierangelo Masarati
faddae3a0e
check for overflows
2008-10-22 23:37:34 +00:00
Pierangelo Masarati
543a75355c
slight fixes and improvements to previous commit
2008-10-22 23:01:20 +00:00
Pierangelo Masarati
91e14ca638
add support for (experimental) dereference control (ITS#5768); need to re-run autoconf (and autoheader?)
2008-10-22 22:19:49 +00:00
Pierangelo Masarati
382bb4de11
save one copy (please review)
2008-10-22 21:58:59 +00:00
Pierangelo Masarati
a4598d1df7
olcLogFile missing from olcGlobal (ITS#5765)
2008-10-22 11:54:46 +00:00
Hallvard Furuseth
ee6a9f238e
ITS#4467: Fix buffer overflow tests with snprintf / 'unsigned WHATSLEFT'<=0.
...
Add ptr_APPEND_*. Rename limits_unparse:lm->style, make type/style unsigned.
2008-10-21 19:00:44 +00:00
Hallvard Furuseth
59c4d9fad9
Cleanup:
...
Add lmpats_out[] to simplify limits2str(). Wrap both in #ifdef LDAP_DEBUG.
Change char *lmpats[] to struct berval[]. Remove always-true compare.
Readability: Add STRSTART, rearrange limits_get, fix comments & long lines.
2008-10-21 18:57:16 +00:00
Pierangelo Masarati
09cb340f67
add optional URI to allow restricting the scope of application of a specific dynamic list expansion rule (ITS#5761)
2008-10-21 11:30:04 +00:00
Pierangelo Masarati
363f75ca5f
preserve objectClasses not to be removed (ITS#5760)
2008-10-21 07:56:17 +00:00
Howard Chu
49ed07558b
ITS#5755 values from slapd.conf aren't all strictly validated; detect and
...
report syntax errors when generating LDAP format.
2008-10-21 04:42:25 +00:00
Hallvard Furuseth
34e8048136
ITS#5734: Search limits by baseDN - limits dn.this="..."
2008-10-21 00:04:44 +00:00
Pierangelo Masarati
4edb6c96e7
deal with known controls that need special handling of response (ITS#5757)
2008-10-20 23:51:59 +00:00
Pierangelo Masarati
c1119ec9b3
backout ITS#5758 commit
2008-10-20 23:19:07 +00:00
Pierangelo Masarati
e233a8e9ee
NO-OP must be critical and apply to selected operations (ITS#5758)
2008-10-20 23:16:40 +00:00
Pierangelo Masarati
18e3573c81
declare support for read controls (ITS#5757)
2008-10-20 21:15:13 +00:00
Pierangelo Masarati
c1c16618a4
return LDAP_OTHER if the filter cannot be parsed (ITS#5751)
2008-10-19 21:23:06 +00:00
Hallvard Furuseth
3fff0a7919
Warning cleanup: signed meets unsigned: SASL struct propval {unsigned nvalues}.
2008-10-18 23:59:53 +00:00
Hallvard Furuseth
7cd654253e
ITS#4467: Fix snprintf buffer overflow test for olcDbQuarantine output.
...
Overrides previous patch which partly fixed it: it was a no-op test before.
2008-10-18 23:49:28 +00:00
Hallvard Furuseth
db2172c5c9
Warning cleanup to ITS#5695/rev 1.453: signed meets unsigned.
2008-10-18 20:25:57 +00:00
Hallvard Furuseth
4e616dced8
Fix Debug format (%d, size_t) => (%lu, (unsigned long)value).
...
Warning cleanup: signed meets unsigned.
2008-10-18 11:42:13 +00:00
Hallvard Furuseth
d68ba23ab8
ITS#5750: Fix nameUIDPretty() bitstring in Name and Optional UID syntax.
...
Also update a comment about parsing this syntax.
2008-10-18 11:09:55 +00:00
Pierangelo Masarati
5d90231d2a
apply Luca Tamburo's patch for Attribute Certificate and X.509 PMI support (with modifications, ITS#5695)
2008-10-18 08:33:40 +00:00
Hallvard Furuseth
e0952945d0
Warning cleanup: signed meets unsigned.
2008-10-18 07:21:27 +00:00
Hallvard Furuseth
6fbd42a90a
Warning cleanup: Signed meets unsigned:
...
Change insertion index bdb_attr_slot(,, unsigned *ins) to int *ins. This
index is signed elsewhere, including the index returned by the same function.
2008-10-17 23:35:44 +00:00
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
Howard Chu
b86714cfb2
ITS#5440 add eq rules for olcRootDN / olcSchemaDN
2008-06-29 03:42:46 +00:00
Howard Chu
417ab52d45
ITS#5540 check for structural_class() failures
2008-06-29 03:35:54 +00:00
Rein Tollevik
e5dfb18abc
ITS#5564 ignore clients contextCSN when doing full reload.
2008-06-18 19:38:39 +00:00
Rein Tollevik
82cb2a1f05
ITS#5563 don't die if there are no listeners when matching serverID URL.
2008-06-16 14:45:30 +00:00
Pierangelo Masarati
a64b74b014
handle negative caching (ITS#5546)
2008-06-14 15:05:00 +00:00
Pierangelo Masarati
fa612acf41
if there is only one member_ad, and it's not mapped, consider it as old-style member listing
2008-06-14 12:39:47 +00:00
Howard Chu
04c841209d
ITS#5558 fix buffer count
2008-06-14 02:50:59 +00:00
Howard Chu
cd5e10250a
ITS#5557 plug leak from skipping over rset value
2008-06-13 23:06:50 +00:00
Rein Tollevik
06379f9cf9
ITS#5548 use syncrepl Connection when evaluating filter and acl.
2008-06-13 15:55:01 +00:00
Ralf Haferkamp
2688180f95
Allow unquoted DNs with whitespaces (ITS#5552)
2008-06-12 21:12:35 +00:00
Ralf Haferkamp
b3b2aa70f3
enable back-config delete support with LDAP_DEVEL
2008-06-12 11:51:05 +00:00
Ralf Haferkamp
3a0037cc53
Experimental code for delete support in back-config. Only overlays
...
supported currently.
2008-06-12 11:46:57 +00:00
Howard Chu
b13d108686
Config should presrve OID macros in attr syntax field as well
2008-06-05 18:41:14 +00:00
Pierangelo Masarati
f615fa44cf
pass ConfigReply to slapi overlay initialization
2008-05-31 18:44:40 +00:00
Ralf Haferkamp
9d72509d05
pass ConfigReply into overlay_config() to allow progating error messages
...
back through back-config
2008-05-30 14:49:24 +00:00
Howard Chu
83c16b8fc7
ITS#5337 fix maxcsn search at startup
2008-05-29 23:48:35 +00:00
Howard Chu
4b2c003907
More for ITS#5536
2008-05-29 23:31:05 +00:00
Howard Chu
a709d8b69a
Fix rev 1.220 - remove extra free_syncop()
2008-05-29 16:58:32 +00:00
Howard Chu
5a97371ef3
ITS#5536 send SID for glued DBs as well as multimaster
2008-05-29 01:46:19 +00:00
Howard Chu
684a213f0b
ITS#5488 from Rein Tollevik: propagate syncrepl contextCSN to providers
2008-05-28 02:46:35 +00:00
Howard Chu
b92472c3e4
ITS#5487 from Rein Tollevik: syncprov_findbase searched wrong backend
2008-05-28 02:45:18 +00:00
Howard Chu
d14ebfc070
ITS#5461 initialize rs->sr_tag, sr_msgid for Abandons too
2008-05-28 01:48:41 +00:00
Howard Chu
61a70b4f96
ITS#5403 fix sasl_ssf retrieval on 64 bit Solaris
2008-05-28 01:43:05 +00:00
Howard Chu
3c24f1f884
More for #5511
2008-05-27 22:39:12 +00:00
Pierangelo Masarati
88bc524422
s/PATH_MAX/MAXPATHLEN/ (ITS#5531)
2008-05-26 20:53:16 +00:00
Ralf Haferkamp
c8fcb58fbb
Allow updating (ADD/DEL within a single modify operation) the index
...
configuration of an attribute (ITS#5521)
2008-05-26 17:38:32 +00:00
Pierangelo Masarati
62904cf50d
allow to customize the modifiersName of internal modifications (partially addresses ITS#5505)
2008-05-24 11:57:18 +00:00
Howard Chu
61198ee41c
Fix prev commit
2008-05-23 16:48:46 +00:00
Howard Chu
cd7227b4c6
ITS#5511 make room for filter's terminating NUL character
2008-05-23 15:40:15 +00:00
Howard Chu
9d787d8d42
ITS#5489 move assert
2008-05-23 15:29:12 +00:00
Howard Chu
a572267f60
ITS#5526 cleanup config structs
2008-05-23 11:47:37 +00:00
Pierangelo Masarati
ffffa52470
revert test logic
2008-05-22 17:43:12 +00:00
Howard Chu
4c8efee4a6
Fix bei_state access
...
http://www.openldap.org/lists/openldap-devel/200805/msg00073.html
2008-05-19 16:19:59 +00:00
Howard Chu
b6b3461cf9
Do connections_init() sooner
2008-05-18 15:58:10 +00:00
Pierangelo Masarati
7db4c6dabc
fix comment
2008-05-17 11:56:10 +00:00
Pierangelo Masarati
91d337fb29
fix handling of multiple attrs in URI (ITS#5516)
2008-05-17 11:55:50 +00:00
Pierangelo Masarati
20e8da9ba7
lookup entries as LDAP_REQ_SEARCH (ITS#5513)
2008-05-17 11:36:44 +00:00
Hallvard Furuseth
08e2ce2d1d
parenthesize some macro args
2008-05-17 00:05:54 +00:00
Howard Chu
96d5ed5bc5
ITS#5465 ignore ops without queued CSNs
2008-05-13 21:57:19 +00:00
Howard Chu
c7a49fcfc5
ITS#5506 reset op2.o_extra
2008-05-12 18:33:05 +00:00
Howard Chu
8921793615
ITS#5503 integerFilter keys were not terminated
2008-05-10 00:28:03 +00:00
Emmanuel Dreyfus
a837855068
Fix an error in debug message, and correctly keep track of attribute count
...
after a mod_replace
2008-05-09 21:49:47 +00:00
Emmanuel Dreyfus
8768d99013
Add attribute size and count constraints to slapo-constaint
...
Approved by Ando
Usage example:
overlay constraint
constraint_attribute jpegPhoto size 131072
constraint_attribute userPassword count 3
2008-05-09 12:59:16 +00:00
Howard Chu
9ce205818e
ITS#5493 always send cookie with delta-sync entries
2008-05-09 01:51:26 +00:00
Howard Chu
db693093a1
Use network-timeout instead
2008-05-09 00:08:19 +00:00
Howard Chu
f488fa060a
Use underscore in network_timeout
2008-05-08 13:15:40 +00:00
Howard Chu
198b14be90
ITS#5486, fix rev 1.219. Must never use s_op directly, must always use
...
a copy.
2008-05-06 03:03:47 +00:00
Howard Chu
b2a0eb7075
Fix prev commit
2008-05-01 23:56:01 +00:00
Howard Chu
26172674b5
Cleanup extra debug in prev commit
2008-05-01 23:02:52 +00:00
Howard Chu
f37962d042
Propagate o_extra too
2008-05-01 22:55:29 +00:00
Howard Chu
aeedb72e91
Fix prev commit
2008-05-01 13:25:15 +00:00
Howard Chu
c91704d811
Use o_extra instead of o_private
2008-05-01 12:49:35 +00:00
Howard Chu
b0ffd08504
ITS#5490 callback stack may be NULL
2008-04-30 23:50:08 +00:00
Howard Chu
b94eac4778
Fix prev commit (again) - set in wrong order
2008-04-30 18:35:02 +00:00
Howard Chu
bdd493380d
Fix prev commit
2008-04-30 12:52:45 +00:00
Howard Chu
b16478a5ca
Avoid queueing response on abandoned psearches
2008-04-29 22:09:12 +00:00
Howard Chu
9b516293b9
Fix prev cache.c commit
2008-04-29 21:44:47 +00:00
Howard Chu
4673c99e96
More for ITS#5470, add csns to presence search filter in MMR
2008-04-29 01:05:09 +00:00
Pierangelo Masarati
2fe411e337
avoid potential deadlock?
2008-04-28 23:26:45 +00:00
Howard Chu
64315e3087
ITS#5451 glue deadlock fix
2008-04-28 12:53:04 +00:00
Howard Chu
a5037b4c5b
Fix comment typo
2008-04-28 11:20:34 +00:00
Howard Chu
a9d192df2b
Fix delete deadlock
2008-04-28 11:17:52 +00:00
Pierangelo Masarati
74ad5210c0
cleanup
2008-04-26 15:47:06 +00:00
Pierangelo Masarati
c965d2c86d
add mapping to dynamic attribute generation (patch by Emmanuel Dreyfus, with some rework; ITS#5466)
2008-04-26 15:42:01 +00:00
Howard Chu
90a45655c2
ITS#5484 remove syncop from runq before freeing it
2008-04-24 18:35:35 +00:00
Howard Chu
fd0699edf4
Fix typo in 1.389
2008-04-24 10:19:20 +00:00
Howard Chu
75eecdc539
ITS#5346 overlay_db_open needs to preserve the original *be.
2008-04-23 10:31:22 +00:00
Howard Chu
c0f5fad0f8
For ITS#5346 - reintroduce bd_self pointer (from 2008-03-13)
2008-04-23 10:23:00 +00:00
Pierangelo Masarati
a4d14fb2ef
missing numvals (ITS#5481)
2008-04-21 16:43:50 +00:00
Howard Chu
1af2849f7c
ITS#5470 also ignore presentlist if number of CSNs don't match
2008-04-19 23:27:49 +00:00
Pierangelo Masarati
49bb4d5633
fix typo in error message
2008-04-17 20:57:22 +00:00
Pierangelo Masarati
d198435c51
fix abstract class inheritance check (ITS#5474)
2008-04-17 20:49:59 +00:00
Howard Chu
26c3fd67b8
ITS#5470 ignore presentlist on partial multimaster refreshes
2008-04-17 01:42:40 +00:00
Howard Chu
f8a012cc83
Revert prev commit
2008-04-17 00:03:06 +00:00
Howard Chu
2abce97228
ITS#5470 don't return any data at all until we have a ctxcsn
2008-04-16 10:37:44 +00:00
Hallvard Furuseth
04a7b8bf70
For ITS#5408: Handle special chars in filenames, in particular on Windows.
...
When upgrading, may need to slapcat/slapadd the database if back-ldif
is used as a general backend with chars like ':' or Windows' special
chars in DNs.
2008-04-16 00:09:25 +00:00
Hallvard Furuseth
66bedd2962
For ITS#5408: Cleanup: No functionality change.
...
Change dn2path(), get_entry() and move_entry() prototypes/usage.
Remove unused statements/initializations. get_entry() now returns
a result code, reducing result code handling a bit.
2008-04-15 22:30:40 +00:00
Hallvard Furuseth
e67144ca7c
For ITS#5408: back-ldif cannot currently handle multiple database suffixes.
...
So make olcDbDirectory SINGLE-VALUE and set SLAP_DBFLAG_ONE_SUFFIX.
Take advantage of that in ldif_back_referrals().
2008-04-15 22:22:38 +00:00
Howard Chu
cfb478679f
ITS#5469 check earlier for write waiters
2008-04-15 22:17:50 +00:00
Pierangelo Masarati
66b581643f
make pseudoroot-bind-defer TRUE by default (part of ITS#5440 fix)
2008-04-12 11:33:48 +00:00
Howard Chu
19ad1e2a74
Cleanup prev commit
2008-04-11 12:20:01 +00:00
Howard Chu
61b5f6d652
ITS#5454 regular mutex lock is safe
2008-04-11 12:12:06 +00:00
Hallvard Furuseth
0669adf635
ITS#5340 fixes:
...
slap_send_ldap_result() when rs->sr_flags & REP_REF_MUSTBEFREED:
- Do not return with rs->sr_ref == <freed data>, set it to NULL instead.
- Plug memory leak when op->o_domain_scope || op->o_protocol<LDAP_VERSION3.
send_ldap_response():
- Paranoia: Reset REP_MATCHED_MUSTBEFREED and REP_REF_MUSTBEFREED,
in case the caller reuses the SlapReply without resetting the flags.
2008-04-10 12:54:11 +00:00
Hallvard Furuseth
eaec3a56e4
code cleanup: remove fake loop - vestige from 1.136, obsolete since 1.174
2008-04-09 18:24:22 +00:00
Howard Chu
204b035a9c
ITS#5383 use public OID for config schema, no more hiding
2008-04-09 15:22:23 +00:00
Howard Chu
d9dac0c8bc
ITS#5376, #5378 delta-sync should fallback in other cases too
2008-04-09 12:01:11 +00:00
Howard Chu
f0bb1739a7
ITS#5409 must reset pagedresults state if no cookie is provided
2008-04-09 03:08:38 +00:00
Howard Chu
91c23cbc4d
ITS#5455 be sure to reset bei_finders / bei_state
2008-04-09 00:12:08 +00:00
Hallvard Furuseth
9cdcd58afc
constify 1st arg to register_at()/register_at(), needed for config.h rev 1.50
2008-04-06 20:04:10 +00:00
Howard Chu
8027d8afb0
ITS#5454 proposed fix. May still need to change initial trylock to a
...
regular mutex_lock.
2008-04-05 00:45:59 +00:00
Howard Chu
d989f19668
ITS#5450 fully terminate value lists
2008-04-04 00:01:02 +00:00
Howard Chu
e1f518ef1c
ITS#5419 only Hidden DBs get special treatment
2008-04-03 10:04:56 +00:00
Howard Chu
626608f5f2
ITS#5437, #5444 if numcsns don't match, set changed flag
2008-04-03 08:43:48 +00:00
Howard Chu
77e7b92c87
ITS#5439 fix ID_NOCACHE handling
2008-04-03 08:02:11 +00:00
Howard Chu
f2de258e3d
ITS#5442 slapd_rq mutexes must always be used
2008-04-02 03:08:06 +00:00
Pierangelo Masarati
8cb162ef44
fix bitwise test (ITS#5445)
2008-03-31 16:58:03 +00:00
Pierangelo Masarati
f3eeb81458
a connection cannot be privileged and be in the avl tree at the same time (related to ITS#5440?)
2008-03-29 18:17:21 +00:00
Pierangelo Masarati
71cabe40c3
print targets' status
2008-03-29 18:16:34 +00:00
Pierangelo Masarati
f32f99211e
make stamp a long no matter what time_t is, to print it accordingly (ITS#5441)
2008-03-29 16:22:50 +00:00
Pierangelo Masarati
f049fbb206
avoid system call when not needed (ITS#5441)
2008-03-29 12:11:44 +00:00
Howard Chu
50a26bec0a
ITS#5434 again
2008-03-25 05:08:21 +00:00
Pierangelo Masarati
f696cecb77
work around paranoid check (ITS#5412)
2008-03-22 16:01:23 +00:00
Howard Chu
fc69e61be6
ITS#5432 don't send cookie with delete set if there's no true delete CSN
2008-03-21 00:09:24 +00:00
Howard Chu
c495cba4af
Add dn2id_get / modify support
2008-03-20 23:34:04 +00:00
Howard Chu
213c9358b8
ITS#5430 syncprov/glue can be used two different ways
2008-03-20 10:58:00 +00:00
Howard Chu
294da7ed11
ITS#5435 ConfigReply arg must be non-NULL
2008-03-20 01:24:33 +00:00
Howard Chu
261d2420f4
ITS#5434 search thru other overlays when present
2008-03-20 00:31:42 +00:00
Howard Chu
0abf40063f
ITS#5433 checkpoint must write to master DB
2008-03-20 00:26:14 +00:00
Howard Chu
d3e8df3940
ITS#5432 fix compare_csns loop conditions
2008-03-20 00:10:31 +00:00
Howard Chu
d711b538ad
do_syncrep1 always reads contextCSN from the main DB
2008-03-20 00:05:22 +00:00
Pierangelo Masarati
3196e65ff2
Add operation should not require naming attrs (ITS#5412)
2008-03-15 20:33:31 +00:00
Pierangelo Masarati
956b50645c
allow slapo-refint(5) to implement global referential integrity (ITS#5428)
2008-03-15 18:27:24 +00:00
Pierangelo Masarati
27a61d9411
use OID for dnSubtreeMatch (ITS#5427)
2008-03-15 18:22:25 +00:00
Pierangelo Masarati
14c425b922
s/leave/func_leave/ (ITS#5411)
2008-03-15 18:16:21 +00:00
Howard Chu
f77bd7ff6e
ITS#5426 replace the entire contextCSN in updateCookie
2008-03-14 18:00:09 +00:00
Howard Chu
4097d261bb
Use <ldap_queue.h> macros for prev commit
2008-03-14 16:49:53 +00:00
Howard Chu
bff19c4ac4
More for prev commit
2008-03-13 14:37:07 +00:00
Howard Chu
a55123477a
ITS#5419 introduce OpExtra / op->o_extra to supersede op->o_private
2008-03-13 13:14:52 +00:00
Howard Chu
0cb9cb04ea
ITS#5401 make sure connection is still alive before detaching op
2008-03-13 10:49:32 +00:00
Howard Chu
e3849e1a9c
Fix prev commit, check for NULL syncCookie
2008-03-13 07:30:56 +00:00
Howard Chu
b101dab6c6
More fixes for syncCookie updating
2008-03-13 07:02:26 +00:00
Howard Chu
86c4dca647
Partially revert prev, redundant.
2008-03-13 05:41:12 +00:00
Howard Chu
af80427965
In mirrormode, also ask syncprov for initial cookie. It may have been
...
cached from a recent update.
2008-03-13 05:18:28 +00:00
Pierangelo Masarati
d22b8532ee
s/leave/func_leave/ to avoid OSF1 name clashing (ITS#5411)
2008-03-12 22:45:18 +00:00
Pierangelo Masarati
5417aa895a
use the replication persistent search identity to check whether a modification must be replicated (ITS#5418)
2008-03-12 22:31:28 +00:00
Howard Chu
013f78090d
ITS#5413 fix typo
2008-03-12 02:57:49 +00:00
Hallvard Furuseth
cfc5c7cc68
ITS#5339: fix referral rewrite, remove pointless default_referral code
2008-03-10 19:28:40 +00:00
Howard Chu
a287573d2d
ITS#5407 more checks for pool pausing
2008-03-08 23:51:07 +00:00
Howard Chu
26c08cb64a
Fix prev commit (thanks Ando)
2008-03-08 22:12:57 +00:00
Pierangelo Masarati
ec8466ec83
invalidate connection handler when ldap_sasl_interactive_bind_s() for internal error (ITS#5404); fix response tag
2008-03-08 15:41:17 +00:00
Howard Chu
44b1af6e65
ITS#5405 fix race condition
2008-03-08 02:00:36 +00:00
Pierangelo Masarati
9ca53f98ed
fix attribute description parsing (ITS#5402)
2008-03-06 23:30:54 +00:00
Howard Chu
41379411a3
Revert prev commit, impacts too much to take advantage
2008-03-04 10:09:12 +00:00
Howard Chu
92e23b13bd
Add attr_free_x() - use memctx
2008-03-04 09:43:51 +00:00
Howard Chu
7b635c7054
Deleting, not yet ready for prime time...
2008-03-03 10:18:09 +00:00
Howard Chu
da6fdf70a4
MySQL NDB Cluster backend (experimental)
2008-03-02 15:14:53 +00:00
Pierangelo Masarati
b23e4f15a9
make sure orr_newrdn is passed correctly to libldap (ITS#5397)
2008-02-28 16:22:23 +00:00
Pierangelo Masarati
31f06b91af
don't try to dereference NULL pointer (ITS#5388)
2008-02-25 16:18:36 +00:00
Pierangelo Masarati
282fccbb3e
detect write errors (ITS#5387)
2008-02-25 16:14:45 +00:00
Howard Chu
ccaf69a7bc
Tweak order of operational attrs
2008-02-22 14:17:43 +00:00
Howard Chu
46273b9c4e
const strings
2008-02-18 23:11:12 +00:00
Pierangelo Masarati
a20f8b5f97
don't denormalize invalid values (ITS#5386)
2008-02-18 19:47:07 +00:00
Pierangelo Masarati
cd753a1f58
allow tracing of set failures
2008-02-17 22:35:29 +00:00
Pierangelo Masarati
4b72f44b14
fix optional URI attrs handling in sets (ITS#5384)
2008-02-17 22:33:54 +00:00
Pierangelo Masarati
2df4675ac3
don't set sm_nvalues unless required (ITS#5375)
2008-02-14 15:15:53 +00:00
Howard Chu
c8d5bcf0c7
ITS#5379 HAVE_TLS dependency
2008-02-14 11:18:22 +00:00
Quanah Gibson-Mount
b2b8a3a0bf
ITS#5376: Drop permissive modify, it isn't necessary
2008-02-13 19:02:57 +00:00
Howard Chu
ec5a7a9576
ITS#5376 must abandon current session before starting new refresh
2008-02-13 07:37:29 +00:00
Howard Chu
77618fae10
ITS#5376 modifies need to be permissive due to refresh/fallback sync
2008-02-13 07:09:18 +00:00
Howard Chu
947e3bbe1d
ITS#5376 - deltasync must fallback for missing entries
2008-02-13 04:36:58 +00:00
Howard Chu
8bfbbf6901
ITS#5373 allow delete/replace of userpassword without supplying new one
2008-02-12 22:53:25 +00:00
Howard Chu
20584e94f4
ITS#5370 slap_op_time mutex
2008-02-12 21:27:15 +00:00
Howard Chu
df1aa2fa89
Fix prev commit
2008-02-12 21:18:30 +00:00
Howard Chu
09e624ce6a
ITS#5374 don't perform mod_cleanup after a successful response
2008-02-12 20:57:05 +00:00
Howard Chu
f26657d81c
In do_syncrepl, don't wait if a previous syncrepl thread is still running.
2008-02-12 18:49:37 +00:00
Quanah Gibson-Mount
8a7ae2def9
Add missing CVS tags
2008-02-12 02:01:30 +00:00
Quanah Gibson-Mount
a2e10091f6
Fix missing CVS tag
2008-02-12 02:00:13 +00:00
Quanah Gibson-Mount
4928934137
Add missing cvs tag
2008-02-11 22:29:11 +00:00
Hallvard Furuseth
5b526d2544
ITS#5328 - cosmetic cleanup (0 -> LDAP_SUCCESS)
2008-02-11 21:07:25 +00:00
Hallvard Furuseth
64bda128c6
ITS#5328 - return LDAP result code from null_back_entry_get().
2008-02-11 21:05:12 +00:00
Hallvard Furuseth
61140d66a0
ITS#5328:
...
Do not send errors (other than referral) from ldif_back_referrals().
Return LDAP result code from ldif_back_entry_get().
2008-02-11 21:04:05 +00:00
Hallvard Furuseth
01ec3c64ea
ITS#5328 - do not send errors (other than referral) from be->be_chk_referrals()
2008-02-11 20:59:40 +00:00
Hallvard Furuseth
8a703aba83
ITS#5328 - return LDAP result code from config_back_entry_get (back-config bi_entry_get_rw)
2008-02-11 20:56:46 +00:00
Hallvard Furuseth
9ebe788370
ITS#5344: modrdn check for affectsMultipleDSAs and for new DN above/below self
2008-02-11 17:29:55 +00:00
Howard Chu
d64f5be105
ITS#5368 partially revert 1.239
2008-02-11 08:53:11 +00:00
Howard Chu
525f266d10
ITS#5367 revert prev commit
2008-02-11 00:19:43 +00:00
Hallvard Furuseth
84c2a01c3b
ITS#5364, thread pool efficiency:
...
Use ldap_pvt_thread_pool_pausing(): pause check for slapd without locking.
2008-02-10 16:25:05 +00:00
Howard Chu
ae471f78c3
ITS#5360 move tls option setup
2008-02-10 06:29:40 +00:00
Howard Chu
584c7fb8be
Debug info for CSN tracking (ITS#5362)
2008-02-10 02:18:22 +00:00
Howard Chu
32a082c24b
Cleanup
2008-02-10 02:10:28 +00:00
Howard Chu
99e1adc1f2
Cleanup debug msg, check for redundant updates
2008-02-10 02:08:08 +00:00
Howard Chu
5cfa1386ea
ITS#5362 syncrepl_updateCookie doesn't need to graduate_commit_csn, the
...
backends already do it.
2008-02-10 02:06:31 +00:00
Howard Chu
90e644a1e9
Cleanup bdb_next_id unused arg
2008-02-10 00:56:44 +00:00
Howard Chu
a3262ff239
ITS#5332 someone else may free the entry as soon as we unlock it
2008-02-08 06:32:41 +00:00
Howard Chu
f481ffef9c
ITS#5355 use bi_extra instead of calling directly into back-ldap
2008-02-08 02:01:17 +00:00
Ralf Haferkamp
a1612ae911
Fix crash when no-op control is used (ITS#5358)
2008-02-07 12:06:24 +00:00
Ralf Haferkamp
4db84db74b
Don't emit global ACLs for other database than frontendDB (ITS#5352)
2008-02-05 12:16:21 +00:00
Pierangelo Masarati
137172f952
allow 2.1 CSN format (ITS#5348)
2008-02-02 10:23:35 +00:00
Pierangelo Masarati
44b20b98e0
s/assert/LDAP_INVALID_SYNTAX/ (ITS#5348)
2008-02-01 19:16:58 +00:00
Ralf Haferkamp
713ec710ad
don't error out if replacing a non-existant attribute, create opattrs in
...
config_build_entry() to have them also when started with -f (ITS#5343)
2008-01-31 18:12:00 +00:00
Ralf Haferkamp
1af03ee2c7
error out if modify_delete_vindex() fails (ITS#5343)
2008-01-30 14:45:35 +00:00
Howard Chu
3b02cd32ba
Cleanup for C++
2008-01-28 15:30:40 +00:00
Howard Chu
6693f72402
Clean up config.h
2008-01-22 13:26:16 +00:00
Pierangelo Masarati
e3befa7f26
fix referrals (part of ITS#5328); fix compare (ITS#4937)
2008-01-19 10:43:08 +00:00
Hallvard Furuseth
2dd186a8fd
More ITS#5328 cleanup
2008-01-18 17:05:23 +00:00
Pierangelo Masarati
79e68ebc2d
cleanup previous commit
2008-01-16 22:00:57 +00:00
Pierangelo Masarati
8517e7199a
rework back-relay internals along Hallvard's suggestions (ITS#5328)
2008-01-16 21:53:44 +00:00
Pierangelo Masarati
440099d271
fix test; don't return error when relaying exops
2008-01-15 21:59:23 +00:00
Pierangelo Masarati
807df724c1
fix ITS#5327 crasher
2008-01-15 20:32:35 +00:00
Pierangelo Masarati
ae665d0d3d
fix str2entry2() when there is no attrs (ITS#5308)
2008-01-11 19:32:01 +00:00
Hallvard Furuseth
cd63a0c43b
Warning cleanup: function ptr <=> void* at ldap_pvt_thread_pool_<set/get>key()
2008-01-11 06:07:43 +00:00
Howard Chu
82719d5351
ITS#5319 no special treatment for no-effect renames
2008-01-11 04:01:37 +00:00
Howard Chu
25ba37cc35
ITS#5319 allow rename to same DN
2008-01-11 03:17:10 +00:00
Howard Chu
37d65aed6e
ITS#5322 don't try to free a NULL locker
2008-01-11 00:44:12 +00:00
Pierangelo Masarati
f63ec3f497
more attribute values mucking
2008-01-08 17:02:37 +00:00
Hallvard Furuseth
e1e0370e8c
Remove unused variable
2008-01-08 16:49:13 +00:00
Hallvard Furuseth
5f068303d3
Remove unused variables
2008-01-08 16:37:13 +00:00
Hallvard Furuseth
9de53658d7
ITS#5309 followup: join a ldap_pvt_thread_pool_getkey() call into a setkey()
2008-01-08 16:24:53 +00:00
Pierangelo Masarati
5ebb7ee175
fix zeroing out attribute values (should fix ITS#5311)
2008-01-08 14:58:24 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Hallvard Furuseth
d3c90c989c
Fix spew_file() comment
2008-01-08 00:02:58 +00:00
Hallvard Furuseth
0dab27bb1e
Fix comment for be_rootdn_bind()
2008-01-07 23:23:12 +00:00
Pierangelo Masarati
30f401c628
rename ldap_pvt_thread_pool_setkey_x() to ldap_pvt_thread_pool_setkey() (as part of ITS#5309)
2008-01-07 21:35:03 +00:00
Hallvard Furuseth
f763967c48
Fix Debug() format in previous change
2008-01-07 20:13:01 +00:00
Hallvard Furuseth
e9c2a7dcb3
ITS#5309: Use ldap_pvt_thread_pool_setkey_x() more. Fix void** arguments.
2008-01-07 20:10:22 +00:00
Hallvard Furuseth
d0a379ed45
ITS#5309: Use ldap_pvt_thread_pool_setkey_x() in slap_passwd_check() and
...
be_rootdn_bind() - push/pop any old value instead of resetting it.
2008-01-07 20:08:22 +00:00
Hallvard Furuseth
8a1f904ed9
Avoid use of uninitialized variable 'e' after failed overlay_entry_get_ov().
...
(It was harmless unless the value was a trap representation.)
2008-01-07 18:50:54 +00:00
Howard Chu
cdaf0769f7
ITS#4112 temporarily disable broken code
2008-01-06 07:34:19 +00:00
Pierangelo Masarati
741efa1674
don't leave 'round pointers to buffers on the stack
2008-01-02 23:08:04 +00:00
Pierangelo Masarati
2969c69747
fix modlist cleanup during rename
2008-01-02 22:49:45 +00:00
Pierangelo Masarati
622c4d3884
new ldap_pvt_thread_pool_setkey API
2007-12-29 18:14:54 +00:00
Pierangelo Masarati
ac689156bc
plug leak (ITS#5302)
2007-12-29 17:59:28 +00:00
Pierangelo Masarati
22f0fa7eb8
allow slapo-memberof to be used as global overlay, and thus provide cross-database integrity (ITS#5301)
2007-12-29 16:07:07 +00:00
Howard Chu
4068c51739
Remove unnneded boi_locker field
2007-12-28 07:44:41 +00:00
Howard Chu
7bc127aab8
ITS#5086 fix Adds in IDL cache
2007-12-28 07:40:18 +00:00
Pierangelo Masarati
64900d539d
allow to programmatically register new response code names
2007-12-28 01:21:22 +00:00
Pierangelo Masarati
18b2885f69
allow to customize the error code in case of constraint violation
2007-12-28 00:38:27 +00:00
Pierangelo Masarati
ce43877f6f
if referential integrity is broken, things could go wrong; don't assert
2007-12-27 20:57:42 +00:00
Pierangelo Masarati
17294602c4
fix ITS#5286 (NULL + set = NULL); add more verbose set logging if requested
2007-12-27 20:27:51 +00:00
Pierangelo Masarati
63e0046eab
fix previous commit
2007-12-27 19:57:51 +00:00
Pierangelo Masarati
8a529a1f72
check objectClass inheritance on add (consistent with modify; ITS#5299)
2007-12-27 19:50:12 +00:00
Pierangelo Masarati
096ce6f741
pass ConfigReply to overlays; don't complain unless once-only overlays are instantiated multiple times
2007-12-27 17:36:39 +00:00
Howard Chu
b0a0ac4914
Require compare (not read) access to entry attr for compare ops
2007-12-27 00:51:45 +00:00
Howard Chu
64f81ee43b
Complete prev commit
2007-12-24 05:32:13 +00:00
Howard Chu
6f6bc1ce04
Convert back-sock to dynamic config
2007-12-24 05:18:25 +00:00
Howard Chu
94db6fc9e8
Axe obsolete Cyrus 1.5 support
2007-12-23 01:33:39 +00:00
Howard Chu
95a37bc024
ITS#5298 use SASL's memory for temporary DN storage
2007-12-23 01:21:56 +00:00
Howard Chu
d0eac819f7
ITS#5259 fix sasl_auxprop_store to allow cleanup after bindop is gone
2007-12-22 22:53:58 +00:00
Howard Chu
d88ab7bf36
ITS#5264 don't log NULL/anonymous DNs
2007-12-22 21:16:54 +00:00
Howard Chu
d38ff5403f
ITS#5261 quick fix, don't checkpoint on first write to DB
2007-12-22 05:00:38 +00:00
Gavin Henry
4d06dc7ddd
DB_CONFIG.example URL wrong in comments (ITS#5288)
2007-12-18 12:50:27 +00:00
Howard Chu
13491b3905
ITS#5285 don't check for password reuse if history is not enabled
2007-12-15 19:35:11 +00:00
Howard Chu
ddd90958a1
Support DB encryption
2007-12-15 19:07:41 +00:00
Pierangelo Masarati
20f2548c82
fix declarations of buffers for numeric strings; other related cleanup
2007-12-15 15:23:23 +00:00
Howard Chu
8a622361d1
ITS#4987 extensions from Emmanuel Dreyfus manu @ netbsd.org with major
...
cleanups
2007-12-15 11:12:56 +00:00
Howard Chu
5919312796
ITS#5284 fix overlay order
2007-12-15 01:34:39 +00:00
Howard Chu
3a7830ff01
More cleanup
2007-12-15 00:50:37 +00:00
Howard Chu
b96a96c598
Fix prev commit, must test filter on cleanup
2007-12-14 20:24:31 +00:00
Howard Chu
f84a67ef34
Don't test filter before saving, need the copy for local lookup
2007-12-14 20:04:40 +00:00
Howard Chu
a58ea1efdd
More cleanup
2007-12-14 19:50:06 +00:00
Howard Chu
be32a57637
Add missing cleanup
2007-12-14 19:15:06 +00:00
Howard Chu
75b7f19ae3
ITS#5283 add remote/local attribute lists, search both local and remote
2007-12-14 19:02:44 +00:00
Howard Chu
7f81edc6fa
Align MRA desc with AVA/SSA desc
2007-12-14 05:44:10 +00:00
Howard Chu
3d632e79d8
Revert prev commit, different fix
2007-12-14 02:48:11 +00:00
Howard Chu
e9ab15ba87
ITS#5276 don't stack config state for includes
2007-12-14 02:25:26 +00:00
Howard Chu
d84eb76d57
ITS#5236 add 'countryName' alias back, should not have been dropped.
2007-12-13 08:30:12 +00:00
Howard Chu
23116be5ae
More for -q tool mode
2007-12-13 08:02:40 +00:00
Howard Chu
3218f6c110
Fix segv with -q
2007-12-13 07:51:56 +00:00
Pierangelo Masarati
64c662c5b2
behave when the empty DN is used as database suffix (ITS#5265)
2007-12-11 16:59:40 +00:00
Pierangelo Masarati
4d53c886a8
fix back-ldif delete (ITS#5265)
2007-12-11 15:12:48 +00:00
Pierangelo Masarati
bd64ab8d17
don't try to count non-expired entries if database does not exist (ITS#5267)
2007-12-08 21:57:22 +00:00
Howard Chu
6c0b815b6f
ITS#5268 omit contextCSN when replicating
2007-12-08 17:45:10 +00:00
Howard Chu
bcc108a7ff
ITS#5268 don't replicate dSAOperation attributes unless specifically
...
requested. (It doesn't actually make sense to request them in that
case, but allow it.)
2007-12-08 17:44:15 +00:00
Howard Chu
562b88a3cf
Omit auditContext when sync control is present
2007-12-08 17:03:47 +00:00
Pierangelo Masarati
bfd50b6ec5
don't try to delete expired entries if database does not exist (ITS#5267)
2007-12-08 17:00:34 +00:00
Howard Chu
54a3ef323b
ITS#5161 make sure accesslog_response is called for abandoned writes
...
This probably needs to be cleaned up more. There should be a log
schema flag that indicates that an op was abandoned.
2007-12-07 11:27:57 +00:00
Hallvard Furuseth
8f74e9cacc
ITS#5248: use volatile sig_atomic_t for signal variable gotsig
2007-12-06 17:15:41 +00:00
Hallvard Furuseth
af50afcbe0
Remove unused variable
2007-12-06 17:13:01 +00:00
Hallvard Furuseth
e50cb47542
Restore pre-C99 preprocessor support (since rev 1.165)
2007-12-06 17:08:10 +00:00
Howard Chu
f7ec966aad
Cleanup dup_compare
2007-12-06 16:54:47 +00:00
Howard Chu
3658226e95
Drop unnecessary lock
2007-12-06 15:59:28 +00:00
Howard Chu
e237f4cc43
Re-introduce hdb dup_compare function, default compares too much
2007-12-06 15:58:47 +00:00
Howard Chu
f06fdb2821
More cleanup, hdb fixes
2007-12-06 14:16:34 +00:00
Pierangelo Masarati
8958bcd60f
save old values when deleting (ITS#5258; not optimal)
2007-12-06 12:29:04 +00:00
Howard Chu
7a3f73efd8
More cleanup
2007-12-06 06:40:13 +00:00
Howard Chu
ebbb6ab216
Cleanup prev commits
2007-12-06 06:20:42 +00:00
Howard Chu
cb0e31fc65
ITS#5262 must protect dn2id between the time it's read from the DB
...
and it's inserted into EntryInfo cache.
2007-12-06 05:48:02 +00:00
Howard Chu
c2a02618bb
BDB 4.2 compatibility for log_printf (requires modern C preprocessor)
2007-12-06 01:51:32 +00:00
Howard Chu
abff944303
Prefix log msgs with "slapd"
2007-12-05 22:35:39 +00:00
Howard Chu
cff654bd60
Use BDB transaction log for debug messages
2007-12-05 22:27:12 +00:00
Howard Chu
460e94c001
ITS#5262 additional cleanup
2007-12-05 14:56:47 +00:00
Howard Chu
6ac8a0c584
ITS#5262 use explicit cursor and locker in dn2id
2007-12-05 14:09:34 +00:00
Howard Chu
eda5b4d01f
Fix ITS#5257
2007-12-05 05:24:15 +00:00
Howard Chu
2953cd459f
Revert 1.159, seems to trigger a concurrency bug. ???
2007-12-05 02:36:53 +00:00
Hallvard Furuseth
8667a535dc
Integer indexing - cleanup, signedness, redefine signmask => RIP overflow test
2007-12-03 09:54:01 +00:00
Howard Chu
ccfe26fca9
Cleanup overflow check
2007-12-02 21:46:50 +00:00
Hallvard Furuseth
3b6122cb73
Integer indexing - cleanup
2007-12-02 19:25:33 +00:00
Howard Chu
304520c113
Add memctx to lutil_str2bin()
2007-12-02 19:11:41 +00:00
Hallvard Furuseth
283313ba15
Fix last patch, and reduce allocations in lutil_str2bin().
2007-12-02 17:32:08 +00:00
Hallvard Furuseth
bddba8ae17
Integer indexing - handle huge values
2007-12-02 16:10:23 +00:00
Howard Chu
89b03a7db7
Shrink presence key
2007-12-01 19:08:30 +00:00
Howard Chu
60c0a68249
Trim unneeded tmp var
2007-12-01 11:44:18 +00:00
Howard Chu
95993844dd
Omit leading zero pad byte
2007-12-01 11:41:52 +00:00
Howard Chu
d513108ea3
Fix sign bit
2007-12-01 11:00:40 +00:00
Howard Chu
b7f3bb05f5
Fix 1.426, must sign-extend small numbers, not zero-pad
2007-11-30 18:12:17 +00:00
Howard Chu
0189fcc32a
Pop local callback for modify
2007-11-29 23:03:44 +00:00
Howard Chu
dba1b54b47
Fix prev commit, leave callback stack alone in compare()
2007-11-29 22:56:54 +00:00
Ralf Haferkamp
67ec05ef18
Allow initialization when using custom "memberof-group-oc" and
...
"memberof-member-ad" and "groupOfNames" and "member" are undefined
2007-11-28 12:09:55 +00:00
Quanah Gibson-Mount
cb286fa4b1
cleanup
2007-11-27 20:58:19 +00:00
Howard Chu
eb16972d23
Streamlined Winsock connection management
2007-11-26 17:03:26 +00:00
Howard Chu
8a8a05d811
Change integer indexing to ordered only, no backward compatibility
2007-11-25 13:19:08 +00:00
Howard Chu
e8d7074802
Fix connection teardown
2007-11-24 11:33:04 +00:00
Pierangelo Masarati
7aeac21440
silence warnings
2007-11-23 12:47:53 +00:00
Howard Chu
3640a6f7e5
Fix typo in prev commit
2007-11-22 08:52:39 +00:00
Howard Chu
1ed9b5c3bc
Fix, truncate should not be valid for slapadd, should be for slapindex.
2007-11-21 15:40:09 +00:00
Howard Chu
b8fcecd69b
More for #5221 , don't muck with kids counters on simple renames
2007-11-21 15:11:26 +00:00
Howard Chu
a0fbe9f043
Minor cleanup
2007-11-21 14:55:40 +00:00
Howard Chu
a6c4cf8578
ITS#5221 fix NO_KIDS/NO_GRANDKIDS flags on rename ops
2007-11-21 14:51:55 +00:00
Howard Chu
aa2cc83d27
Silently restrict index_intlen to 4-255.
2007-11-21 03:24:49 +00:00
Howard Chu
49057266a6
Tweak prev commit
2007-11-21 03:22:02 +00:00
Howard Chu
dd39c0a6fd
integer indexing must be unsigned
2007-11-21 03:07:09 +00:00
Howard Chu
3ff3957dc7
Add index_intlen keyword for ordered indexing of integers
2007-11-21 02:54:57 +00:00
Howard Chu
9bf03e0e7c
Silence warning
2007-11-21 02:52:53 +00:00
Howard Chu
7d060ec8fa
ITS#5215 fix Windows slapd.def rules
2007-11-20 15:10:52 +00:00
Howard Chu
8429013957
Fix test050
2007-11-20 14:56:20 +00:00
Howard Chu
f08b26adbc
ITS#5183 - better delete index handling
2007-11-20 12:06:28 +00:00
Howard Chu
529f818f2b
Fix typos
2007-11-19 22:17:45 +00:00
Howard Chu
e6568f61b5
ITS#5232 report and fail on internal errors
2007-11-18 21:49:04 +00:00
Howard Chu
d84f8d9b71
Fix prev commit
2007-11-18 21:48:26 +00:00
Howard Chu
02f29d51c6
ITS#5183 preliminary fix - this whole approach needs re-design
2007-11-18 20:50:20 +00:00
Pierangelo Masarati
16460ccbde
sync 'c' with RFC4519 (ITS#5236)
2007-11-17 13:50:49 +00:00
Pierangelo Masarati
3c6714051e
let c_conn_idx be -1 (ITS#5235?)
2007-11-17 13:39:19 +00:00
Pierangelo Masarati
d1560750b4
treat empty as NULL
2007-11-15 22:50:27 +00:00
Howard Chu
89c6b39738
Fix rev 1.266, was creating {0}config entry prematurely.
2007-11-14 01:28:29 +00:00
Howard Chu
d3531c6d79
Eliminate unnecessary Op copies
2007-11-13 01:35:58 +00:00
Howard Chu
0e3db5ac3e
ITS#4889 fix search. remainder of code needs similar work.
2007-11-13 01:22:45 +00:00
Howard Chu
82d4844b81
ITS#5231 don't maintain presentlist for entries added in Persist phase
2007-11-12 14:38:34 +00:00
Howard Chu
1569fae109
Fix prev commit, broke test033
2007-11-12 12:16:05 +00:00
Howard Chu
74f54320cd
Fix pagedresults resume
2007-11-12 11:45:12 +00:00
Howard Chu
7aeb9bf621
Fix unlock in prev commit
2007-11-12 11:41:45 +00:00
Howard Chu
b4bcc325ee
Cache-thrashing protection: if the DB has more entries than the cache,
...
don't allow large search operations that touch more entries churn the
existing cached entries.
2007-11-12 11:16:30 +00:00
Howard Chu
eea5e60bf0
Tweak entry parent check
2007-11-12 11:14:55 +00:00
Howard Chu
caac5b76fb
Cleanup debug msgs
2007-11-12 08:34:55 +00:00
Howard Chu
33162c1aef
ITS#5230 fix slimit for rootDN w/pagedresults
2007-11-12 08:14:50 +00:00
Howard Chu
f8588ff0c3
ITS#5225 fix contextCSN updating
2007-11-12 03:50:31 +00:00
Quanah Gibson-Mount
9602d401a5
cleanup
2007-11-11 20:32:18 +00:00
Howard Chu
b8ab61d2ee
More for ITS#5212 make conditional explicit
2007-11-09 07:28:42 +00:00
Ralf Haferkamp
488af9daa2
Fix op->o_abandon handling. Use fake connection to add results to the cache (ITS#5187)
2007-11-08 15:43:42 +00:00
Howard Chu
18db111c6b
Fix prev commit
2007-11-07 04:59:03 +00:00
Howard Chu
8f56be2ce8
ITS#5146 better check for single val in modify
2007-11-07 04:58:07 +00:00
Howard Chu
0f1bad6fb0
ITS#5186 check for multiple suffixes at config time, not open time
2007-11-07 04:31:06 +00:00
Howard Chu
33616c51d6
fix prev commit (ITS#5212)
2007-11-07 04:02:21 +00:00
Howard Chu
f8ad90167b
ITS#5209 sasl_host may be different from global_host
2007-11-05 09:30:40 +00:00
Howard Chu
005209bfe1
ITS#5211 spec says we must ignore invalid cookies
2007-11-04 12:34:41 +00:00
Howard Chu
528a30fe87
More for prev commit, ITS#5120.
2007-11-02 16:40:42 +00:00
Howard Chu
b6570cf867
Don't send cookie at end of refresh if nothing changed in refreshAndPersist
2007-11-02 00:25:11 +00:00
Howard Chu
8bc46e741a
ITS#5191 do all pagedresult control parsing in the frontend, don't
...
re-parse in the backend. Keep track of pagedresult controls and state
in backglue.
2007-11-01 15:11:22 +00:00
Howard Chu
233632fa04
Use per-thread slap_counters to eliminate lock contention
2007-10-25 08:45:00 +00:00
Howard Chu
a9d35da834
Repack Connection structure for alignment
2007-10-25 04:29:46 +00:00
Howard Chu
68ebee4726
Concurrency tweaks:
...
store conn->c_sd, don't use ber_sockbuf_ctrl to retrieve it.
use per-thread free lists for operations, no mutexes needed.
2007-10-25 02:22:40 +00:00
Pierangelo Masarati
a6a584eaa8
further fix of double free (ITS#4860)
2007-10-24 10:34:43 +00:00
Pierangelo Masarati
2069092aa5
don't compute lengths twice
2007-10-24 10:34:04 +00:00
Howard Chu
b9f012377a
ITS#5197 fully revert prev commit, use thr_stub
2007-10-23 21:14:39 +00:00
Howard Chu
faa76b761d
Forced commit, partially revert prev commit
2007-10-23 20:57:13 +00:00
Howard Chu
3877fc9359
ITS#5197 don't check thread pool if NO_THREADS
2007-10-23 20:55:28 +00:00
Howard Chu
d7535d4ddc
ITS#5189 revert index.c 1.67, just catch LDAP_OTHER
2007-10-23 00:25:51 +00:00
Howard Chu
bb1d8dfcd7
Fix prev commit, include errno.h
2007-10-23 00:05:03 +00:00
Howard Chu
9965fc5f60
ITS#5189 recognize ENOMEM
2007-10-23 00:03:56 +00:00
Howard Chu
7404384766
Fix typo
2007-10-22 09:14:56 +00:00
Howard Chu
38953e2f2c
Fix depend dependency for parallel make
2007-10-20 04:29:11 +00:00
Howard Chu
874ddbebe9
Fix depend/.links dependency for parallel make
2007-10-20 04:24:15 +00:00
Howard Chu
539109e4f0
Fix prev commit, only defer open for online Add
2007-10-16 16:25:56 +00:00
Howard Chu
43359bb02f
Don't leak logfiles
2007-10-16 00:59:39 +00:00
Howard Chu
e63ac9ac9e
Fix error message propagation
2007-10-15 10:22:51 +00:00
Howard Chu
a8ba9e2131
Check DB directory validity at config time
2007-10-15 10:17:04 +00:00
Howard Chu
e9749fcd7b
Revert prev commit, bogus
2007-10-15 10:16:36 +00:00
Howard Chu
d796273e8f
Save return code from cleanup handler
2007-10-15 09:56:03 +00:00
Howard Chu
f74d9f6099
Partial revert from 1.246, not sure what's the point
2007-10-15 09:38:25 +00:00
Pierangelo Masarati
e25169ccce
set BINDING appropriately (ITS#5185)
2007-10-13 10:13:38 +00:00
Pierangelo Masarati
b6508a1066
fix dirsep's in DN (ITS#5172)
2007-10-10 18:50:20 +00:00
Howard Chu
a79bc9195d
ITS#5177 pass new entries in search_response for Persist mode
2007-10-08 18:13:29 +00:00
Howard Chu
8bb39495c7
Fix unprotected checks for psearches
2007-10-08 13:59:33 +00:00
Howard Chu
d2f75ebaa5
Plug leak
2007-10-08 13:28:25 +00:00
Howard Chu
883ac70a36
Tweak ACL cache messages
2007-10-08 12:52:26 +00:00
Pierangelo Masarati
6706ed5d06
fix ordering of items on objectClass definition (ITS#5174)
2007-10-08 10:38:11 +00:00
Howard Chu
ade1fcff20
ITS#5173 simplify defer open behavior
2007-10-08 07:37:53 +00:00
Howard Chu
2659caf322
ITS#5173 fix for dynamic add in cn=config
2007-10-08 07:13:58 +00:00
Howard Chu
dbcf98b4d9
Refuse to operate on cacheDB if it hasn't been started yet
2007-10-08 06:34:57 +00:00
Howard Chu
e60536c04a
Fix for dynamic adds
2007-10-08 06:21:13 +00:00
Howard Chu
ec7a05adff
Check for cleanup on Adds, not just Modifies
2007-10-08 06:19:50 +00:00
Howard Chu
f0468901c6
ITS#4884 fix prev commit
2007-10-08 05:41:44 +00:00
Howard Chu
a1a63bead0
ITS#4188 check for pool pause every 64 entries. (probably should make
...
this number tunable.)
2007-10-08 01:15:49 +00:00
Howard Chu
c103b3c9e9
ITS#3864 use sasl_ssf_t where expected
2007-10-06 14:50:02 +00:00
Howard Chu
c406042fd6
ITS#5072 fix issuer format, use uppercase hex per RFC3641
2007-10-05 11:27:20 +00:00
Pierangelo Masarati
c2bbd6d5e7
fix typing warnings
2007-10-05 10:06:20 +00:00
Pierangelo Masarati
617bd11452
de-normalize simple filter values consistently
2007-10-05 09:49:19 +00:00
Pierangelo Masarati
c3c3c9c16b
support de-normalization
2007-10-05 09:26:48 +00:00
Howard Chu
3a1b56192d
Fix syncrepl_entry to propagate cookieCSN when present
2007-10-05 09:03:44 +00:00
Pierangelo Masarati
7c6c734226
fix previous commit (didn't have coffee yet :()
2007-10-05 08:34:03 +00:00
Pierangelo Masarati
f7d274e672
for consistency, always represent UUIDs correctly (ITS#5168; really, a de-normalize hook would help)
2007-10-05 08:24:36 +00:00
Pierangelo Masarati
55a988831a
ITS#5168 also affects back-meta
2007-10-04 22:18:34 +00:00
Pierangelo Masarati
4cf03ca277
fix ITS#5168 (a better fix would probably be a generic handler to de-normalize values)
2007-10-04 21:53:49 +00:00
Howard Chu
4c4cb4921b
ITS#5060 take care of entry cleanup when using
...
pblock_set(SLAPI_SEARCH_RESULT_ENTRY)
2007-10-03 09:40:08 +00:00
Howard Chu
ae0c57a420
ITS#5164 lack of a db_open handler is not an error
2007-10-03 09:00:41 +00:00
Howard Chu
a2a83fe239
From ITS#5164 - treat monitoredInfo normalization consistently, don't
...
crash if SLAPI plugin doesn't register a description
2007-10-03 08:59:37 +00:00
Howard Chu
9dc35b8997
Don't queue zero-length CSNs
2007-10-02 23:51:40 +00:00
Pierangelo Masarati
471cd1d848
s/strtoul/strtol/ (ITS#5165)
2007-10-02 23:45:50 +00:00
Pierangelo Masarati
5653ab8338
don't malloc the berval separately for presentlist
2007-10-02 23:26:04 +00:00
Pierangelo Masarati
122b184a32
also log cookie parsing
2007-10-02 18:39:43 +00:00
Pierangelo Masarati
14bcd332ce
log cookie (until we find what's going on...)
2007-10-02 18:09:15 +00:00
Pierangelo Masarati
cf2cee553e
back out hex RID
2007-10-02 18:08:41 +00:00
Howard Chu
396b22cfe2
Fix uninit'd ld in prev commit (coverity)
2007-10-02 13:31:27 +00:00
Howard Chu
925e92dcc9
certificateExactNormalize - only check serial encoding if len > 1
2007-10-01 16:32:30 +00:00
Pierangelo Masarati
05d2ce40b9
s/%d/%x/
2007-10-01 16:28:27 +00:00
Howard Chu
291c8d9bd8
ITS#5070 unify serialNumberAndIssuer validation
2007-10-01 08:43:56 +00:00
Howard Chu
4ad821910c
ITS#5070 use lutil_str2bin() for certificate serialNumbers
...
Still need to fix serialNumberAndIssuerPretty to accept hex
2007-10-01 06:55:02 +00:00
Pierangelo Masarati
2de9d97ad2
first round of s/sprintf/snprintf/; the rationale is: truncate error messages rather than buffer overflow; otherwise, assert that no buffer overflow occurred. In some cases, error handling could be added. Please note: no real error in the code was found so far, apart from that in syncprov.c and from some config-time error logging; however, errors could slip thru again if things don't change consistently
2007-09-29 17:55:33 +00:00
Pierangelo Masarati
e4036af0c8
remove potential buffer overflow, now that rids can be up to 4096
2007-09-29 16:11:28 +00:00
Pierangelo Masarati
fedcbe9a41
better fix for ITS#5154
2007-09-29 11:45:37 +00:00
Howard Chu
37e295f269
ITS#5070 again, use [-]0x123456789abcdef for big int serial numbers
2007-09-29 09:50:54 +00:00
Pierangelo Masarati
24db207196
check for ee == NULL
2007-09-26 22:37:35 +00:00
Pierangelo Masarati
a0d26ada9c
plug leak (ITS#5155)
2007-09-26 22:10:16 +00:00
Pierangelo Masarati
ebf7338b8b
temporary fix to ITS#5154
2007-09-26 20:57:25 +00:00
Howard Chu
9fd4a8582a
coverity - a->a_nvals may be NULL
2007-09-26 20:26:03 +00:00
Howard Chu
c428a16332
coverity - init i
2007-09-26 20:21:53 +00:00
Howard Chu
2f3bf07285
init rc
2007-09-26 20:17:48 +00:00
Ralf Haferkamp
3d1df12527
set mod->sm_numvals
2007-09-26 01:59:24 +00:00
Howard Chu
81db5651da
ITS#5153 fix prev commit, ordering matches can be done in O(1) instead
...
of O(logn)
2007-09-25 05:46:12 +00:00
Howard Chu
d322eb96c3
ITS#5151 fix CertificateListValidate
2007-09-24 07:55:56 +00:00
Howard Chu
f1065e1780
Remove special cases for BigNums in certificateExactNormalize, just
...
use hex when serial is larger than int. Normalized values need to be
consistent regardless of compile-time environment...
2007-09-24 06:26:36 +00:00
Howard Chu
9dd2fbcba6
Log the attribute that failed normalization
2007-09-24 06:25:34 +00:00
Howard Chu
0f2b1d551b
More for Mod.sm_numvals
2007-09-24 05:30:53 +00:00
Howard Chu
dcaa5a27f5
Partially revert prev commit, unintended.
2007-09-24 05:30:36 +00:00
Howard Chu
d2179d885f
Use attr_valfind instead of value_find_ex to optimize lookups
2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831
Preliminary sorted value support
2007-09-24 01:31:23 +00:00
Howard Chu
ebb9e029a7
Make slap_passwd_parse non-destructive
2007-09-23 04:40:51 +00:00
Howard Chu
a3547e2758
More for a_numvals
2007-09-23 04:40:16 +00:00
Howard Chu
75df004a04
Use OLcfgCt{Oc|At} arc for contrib modules
2007-09-22 23:58:54 +00:00
Hallvard Furuseth
aad6555340
Update last change: lutil_atoul() -> lutil_atou() for csnsid.
2007-09-21 13:11:39 +00:00
Hallvard Furuseth
cea5e5664d
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2007-09-21 13:02:36 +00:00
Hallvard Furuseth
8b7fd262b8
Cast away const
2007-09-21 12:58:34 +00:00
Howard Chu
8c6d828a1f
More for Modification value counter
2007-09-21 09:34:31 +00:00
Howard Chu
c4dbe1a274
Attribute/Modification value counters
2007-09-21 08:43:56 +00:00
Ralf Haferkamp
b99749aba4
Use rwlock for CachedQuery to avoid returning incomplete results (ITS#5113)
2007-09-20 17:23:56 +00:00
Ralf Haferkamp
af7f86a2cd
Fixed memory leak in pcache. Cache is now populated in cleanup handler.
...
ITS#5112
2007-09-20 16:15:23 +00:00
Howard Chu
9281472144
Add comment for prev commit
2007-09-15 23:40:34 +00:00
Howard Chu
3dfab875e8
Fix prev commit
2007-09-15 23:38:12 +00:00
Pierangelo Masarati
43c00ab486
fix previous commit
2007-09-15 18:03:55 +00:00
Pierangelo Masarati
d92e8ad1f7
add helper for internal searchs for objectClass=*
2007-09-15 17:38:53 +00:00
Pierangelo Masarati
eb51129e29
alloc temporaries on slab
2007-09-15 17:33:59 +00:00
Pierangelo Masarati
d1c4d6481f
further fix ITS#5138 (please review)
2007-09-15 17:30:07 +00:00
Pierangelo Masarati
5569180736
draft-wahl-ldap-session: append further instances of the control
2007-09-15 17:26:09 +00:00
Pierangelo Masarati
06e6e6c053
apply Howard's cleanup of database monitoring registration
2007-09-15 15:34:49 +00:00
Howard Chu
5cd816f4eb
ITS#5138 don't scan past the sequence of attributes
2007-09-15 03:08:32 +00:00
Pierangelo Masarati
9c5c20b1b9
fix potential double-free (valgrind; ITS#5137)
2007-09-14 23:58:00 +00:00
Pierangelo Masarati
9f36fafe55
add more sanity checks (ITS#5136)
2007-09-14 23:25:15 +00:00
Pierangelo Masarati
927efd4a94
fix ITS#5136
2007-09-14 23:14:33 +00:00
Pierangelo Masarati
76974d412a
add support for dgAuthz --- see discussion on -devel
2007-09-14 22:42:16 +00:00
Pierangelo Masarati
f7bda3be0a
release entry (ITS#5135)
2007-09-14 22:39:49 +00:00
Pierangelo Masarati
e48e3e7503
remove unused code
2007-09-14 22:24:21 +00:00
Pierangelo Masarati
1845f1b951
fix double free - related to ITS#4860 and probably ITS#4873
2007-09-13 22:39:33 +00:00
Pierangelo Masarati
60b03d4103
don't leak in case of error
2007-09-13 18:47:36 +00:00
Pierangelo Masarati
d6baaffbec
HEADS-UP: now the list of URIs is better set by using separate arguments
2007-09-13 18:34:04 +00:00
Pierangelo Masarati
af9e17379b
further rework URI parsing
2007-09-13 17:55:45 +00:00
Pierangelo Masarati
6d38af2689
improve error message
2007-09-13 17:54:49 +00:00
Pierangelo Masarati
a09b4c5f20
log unknown message type
2007-09-13 17:54:15 +00:00
Pierangelo Masarati
202080dfa1
enable unindexed searches monitoring ifdef LDAP_DEVEL
2007-09-12 21:26:10 +00:00
Pierangelo Masarati
1157b6dc6a
handle sizelimit in caching (in partial fulfilment of ITS#5114)
2007-09-12 21:09:04 +00:00
Howard Chu
aec54643c2
Don't populate member list unless it was requested
2007-09-11 14:10:50 +00:00
Pierangelo Masarati
a4b1ba0b5f
use /-* for all parents; ignore /-0; check syntax; better parsing
2007-09-10 22:29:10 +00:00
Pierangelo Masarati
4137870344
handle empty set, empty string special cases
2007-09-10 21:58:12 +00:00
Pierangelo Masarati
1e0794f0ad
cleanup sets code; should fix a potential leak and possibly address ITS#4873. Please test
2007-09-10 21:30:02 +00:00
Pierangelo Masarati
552761696b
applied with changes (ITS#4860)
2007-09-10 00:06:20 +00:00
Pierangelo Masarati
331fef5e78
idassert also in case of SASL mechs that do not set authcId
2007-09-09 21:52:10 +00:00
Pierangelo Masarati
f834cdb2f7
fix proxyAuthz oid setup
2007-09-09 21:48:17 +00:00
Howard Chu
c32e182c56
re: prev commit, init j
2007-09-09 14:25:34 +00:00
Howard Chu
40e796c547
ITS#5129 fix alock_close with Quick mode
2007-09-08 05:26:03 +00:00
Howard Chu
6a6adff86c
ITS#5129 disallow Quick mode if DB_CONFIG has changed
2007-09-08 04:59:34 +00:00
Pierangelo Masarati
9c437f4411
quote suffix (ITS#5128) and use it as much as possible to identify databases
2007-09-08 00:41:29 +00:00
Pierangelo Masarati
2da15f1013
remove experimental code as per ITS#4962 discussion
2007-09-07 12:33:21 +00:00
Howard Chu
c8c6cba5fc
back-sock by Brian Candler (B.Candler@pobox.com) ITS#4094 (untested)
2007-09-07 12:27:33 +00:00
Howard Chu
3b7e703cb9
Add Acknolwedgement
2007-09-07 12:20:24 +00:00
Howard Chu
d0ab632239
Use permalink
2007-09-07 12:14:10 +00:00
Howard Chu
276a8cd4dd
Update Net::Server URL
2007-09-07 12:13:29 +00:00
Howard Chu
b6827c75a8
back-sock by Brian Candler (B.Candler@pobox.com) ITS#4094 (untested)
2007-09-07 12:02:43 +00:00
Pierangelo Masarati
00ad93ac70
also copy modifications we don't deal with, as they will be freed altogether (ITS#5124)
2007-09-07 09:38:38 +00:00
Pierangelo Masarati
ed12ff8fd3
parse unsigned as unsigned (ITS#5122)
2007-09-04 19:32:54 +00:00
Pierangelo Masarati
371bf8f803
blind fix: I assume we need to restore ors_scope
2007-09-04 19:31:47 +00:00
Pierangelo Masarati
c73520ec08
fix idl lru deletion of last entry (ITS#5121)
2007-09-04 19:01:55 +00:00
Howard Chu
1800fbb307
ITS#5119 fix uninit'd nval after normalization failure
2007-09-04 05:40:41 +00:00
Pierangelo Masarati
12ea3e4304
check call consistency
2007-09-03 16:36:22 +00:00
Pierangelo Masarati
04cf328716
make sure n,o are non-zero, so j is initialized (coverity)
2007-09-03 16:31:33 +00:00
Pierangelo Masarati
9beb9f9f51
fix one-time leak (coverity)
2007-09-03 16:27:01 +00:00
Pierangelo Masarati
55e908dca2
fix helper pointer inizialization (coverity)
2007-09-03 16:22:53 +00:00
Howard Chu
75964a771f
Use IA5String for olcDbConfig to allow empty strings
2007-09-03 00:41:30 +00:00
Howard Chu
f385341f46
Add IA5String macro
2007-09-03 00:40:52 +00:00
Howard Chu
f8fcb44d13
Fix PrintableString/IA5String commentary
2007-09-03 00:40:37 +00:00
Howard Chu
33f311d81f
Read DB_CONFIG file in server and tool mode, for config conversions
2007-09-02 23:53:29 +00:00
Howard Chu
d316b89bc3
Fix schema undo crash
2007-09-02 23:47:49 +00:00
Howard Chu
2437abac38
ITS#5082 RE23 compatibility, allow olcPasswordHash in global entry
2007-09-02 13:24:14 +00:00
Howard Chu
e10a33753a
Partially resurrect cn=Include stuff - parse from LDIF and ignore.
2007-09-02 12:01:56 +00:00
Howard Chu
dbac914e33
Hide log schema
2007-09-01 22:28:06 +00:00
Pierangelo Masarati
bcf9bce5f4
hide (experimental) schema
2007-09-01 16:09:06 +00:00
Pierangelo Masarati
c83b8b58a3
hide (experimental) schema
2007-09-01 16:01:29 +00:00
Pierangelo Masarati
f89f552d2a
fix previous commit
2007-09-01 15:47:23 +00:00
Pierangelo Masarati
f6dc2b1032
hide (experimental) schema
2007-09-01 15:45:12 +00:00
Pierangelo Masarati
56d9a93ad4
authzMatch IS octetStringMatch
2007-09-01 15:44:24 +00:00
Pierangelo Masarati
4edd5cca23
hide (experimental) schema
2007-09-01 15:38:03 +00:00
Pierangelo Masarati
63a7a69b89
hide schema
2007-09-01 15:32:47 +00:00
Howard Chu
c06ed65f2a
Protect Debug messages from NULL pointers
2007-09-01 13:35:34 +00:00
Quanah Gibson-Mount
dfe8eca92d
ITS#5102 fix
2007-09-01 00:28:07 +00:00
Howard Chu
784daf01e5
Fix DEVEL dependency
2007-09-01 00:11:42 +00:00
Howard Chu
d13d15c37a
Revert prev commit, don't advertise subord scope
2007-08-30 21:09:30 +00:00
Pierangelo Masarati
1b40253d4d
release certificateListValidate()
2007-08-30 20:27:13 +00:00
Howard Chu
f9bc1426ad
Fix SORTED_RESULTS check
2007-08-29 23:57:55 +00:00
Howard Chu
605fdacf51
unifdef LDAP_DEVEL for subordinate scope
2007-08-29 23:40:17 +00:00
Pierangelo Masarati
19330dc1cc
allow shutdown while syncrepl_del_nonpresent()
2007-08-29 18:13:12 +00:00
Pierangelo Masarati
eff90dc512
note what SID the server is assuming
2007-08-29 18:12:05 +00:00
Ralf Haferkamp
cd103f9010
Additional fix for ITS#4991. _cleanup callback was always executed when
...
needed.
2007-08-29 14:29:37 +00:00
Pierangelo Masarati
7ceaad7eb2
plug yet another leak
2007-08-29 00:27:47 +00:00
Pierangelo Masarati
6fb9790a15
plug another leak (hope it's general enough)
2007-08-29 00:14:33 +00:00
Pierangelo Masarati
e161e8efb6
fix test
2007-08-29 00:13:56 +00:00
Pierangelo Masarati
0bedad3b65
plug leak
2007-08-28 23:56:18 +00:00
Pierangelo Masarati
96767fee77
back out previous two commits
2007-08-28 23:13:29 +00:00
Pierangelo Masarati
c0f7dc78f7
fix uninit'ed var crasher
2007-08-28 23:00:36 +00:00
Pierangelo Masarati
a6fd7fa95a
add -S to slapadd to set desired SID in generated entryCSN/contextCSN
2007-08-28 19:35:57 +00:00
Pierangelo Masarati
5ed5bc5803
first round of CSN normalization consequences
2007-08-28 18:38:27 +00:00
Pierangelo Masarati
faa52ce410
forgot to re-sort operation names
2007-08-28 18:37:23 +00:00
Pierangelo Masarati
9a0797004f
if tool mode needs to add structuralObjectClass, override any database setting (rationale: if configured w/ mirror mode and syncrepl, a master is also a shadow, but we need to be able to slapadd to a master (possibly with the correct SID; will deal with this later)
2007-08-28 18:36:42 +00:00
Howard Chu
4ccb430c8c
Convert collect to dynamic config. Even though it's only a demo...
2007-08-28 09:19:07 +00:00
Pierangelo Masarati
47f1f66361
keep pretty and normal form of CSN the same...
2007-08-27 10:39:48 +00:00
Pierangelo Masarati
4db9863fa8
fix previous commit
2007-08-27 10:12:39 +00:00
Pierangelo Masarati
6edcf92419
also the MOD part is hex; preserve compatibility with OpenLDAP's 2.3 entryCSN
2007-08-27 10:09:46 +00:00
Pierangelo Masarati
81a4676571
add csnValidate/csnNormalize, since the SID could be hexadecimal, and we want upper/lowercase a-f to match as appropriate
2007-08-27 09:13:45 +00:00
Pierangelo Masarati
5674d38a17
allocate OID for back-sql configuration
2007-08-27 07:14:55 +00:00
Pierangelo Masarati
8931d68e37
close LDIF handler (valgrind)
2007-08-27 07:14:04 +00:00
Pierangelo Masarati
09cbbb92a7
need to copy the Entry to safely manipulate it
2007-08-27 07:13:25 +00:00
Pierangelo Masarati
5fb99e0a23
consistently dispose of limbo
2007-08-27 07:12:12 +00:00
Pierangelo Masarati
62504d7ef0
add anlist_free
2007-08-27 07:11:32 +00:00
Pierangelo Masarati
2082935657
so SIDs are hex
2007-08-27 07:09:57 +00:00
Pierangelo Masarati
7dc7c60c4b
improve previous commit; fix ITS#5108 by letting both SID and RID be 0..4095, input/output in decimal, but consistently handled in hexadecimals within CSN
2007-08-26 17:03:22 +00:00
Pierangelo Masarati
2132aa3b16
add support for CSNSIDMatch; use it to set contextCSN as appropriate when slapadd'ing -w
2007-08-26 15:39:45 +00:00
Pierangelo Masarati
7c66952714
check for shutdown (need to add to other backends?)
2007-08-26 15:38:51 +00:00
Pierangelo Masarati
b95e40f56f
cleanup
2007-08-26 15:38:20 +00:00
Pierangelo Masarati
af9233b9df
use LDAP_RES_UNSOLICITED for the response message id
2007-08-26 15:06:52 +00:00
Howard Chu
8367f0cfe4
revert prev commit, no gain
2007-08-26 14:37:12 +00:00
Howard Chu
ddc5c9f735
Just use read locks on the entry_db_lock
2007-08-26 13:49:35 +00:00
Pierangelo Masarati
e33abd467c
needs work: memberOf should not be replicated
2007-08-25 16:02:43 +00:00
Howard Chu
6d9e2cac21
Fix prev commit
2007-08-25 16:00:15 +00:00
Howard Chu
a1c088ed02
ITS#5077 again
2007-08-25 15:40:39 +00:00
Pierangelo Masarati
96611ac703
getting an abnormal number of empty syncUUID...
2007-08-25 15:15:05 +00:00
Pierangelo Masarati
071b77cf9d
better fix
2007-08-25 15:01:27 +00:00
Pierangelo Masarati
84143631ee
fix potential concurrency issue (not so potential, if we could regularly trigger it :)
2007-08-25 14:58:43 +00:00
Pierangelo Masarati
abca6f16a6
also improve massaged DN containment check
2007-08-25 10:57:08 +00:00
Pierangelo Masarati
2be301db66
improve URI DN containment check
2007-08-25 10:13:51 +00:00
Pierangelo Masarati
097420bfc4
fix typo
2007-08-25 09:37:59 +00:00
Howard Chu
528b3bc601
Fix aux/structural comment
2007-08-25 00:42:37 +00:00
Pierangelo Masarati
8f95ff260c
consistently use "tag=" instead of "op=" in debug messages
2007-08-25 00:10:52 +00:00
Howard Chu
da5c3285d2
Fix config delete
2007-08-24 23:56:55 +00:00
Howard Chu
ecf59634e9
Fix prev commit
2007-08-24 23:28:43 +00:00
Pierangelo Masarati
6f9519543e
- fix logging of controls;
...
- add support for Control syntax;
- use Control syntax and objectIdentifierFirstComponentMatch
with reqControls/reqRespControls
2007-08-24 23:13:41 +00:00
Pierangelo Masarati
72f009ac52
behave when a value of an ordered attr starts with '{' and either contains or not '}', but the prefix '{X}' does not contain a numericString
2007-08-24 23:05:10 +00:00
Howard Chu
7aaddee5bf
test_filter() should use ordered_value_match()
2007-08-24 22:34:04 +00:00
Pierangelo Masarati
30fbf95de1
allow to register further syntax/mr compatibility
2007-08-24 20:05:30 +00:00
Ralf Haferkamp
a57a24dab8
tcpd.h is already include in slap.h
2007-08-24 16:09:50 +00:00
Pierangelo Masarati
511a71067f
add logging of request/response controls
2007-08-24 12:50:01 +00:00
Pierangelo Masarati
ee8431b22d
add memberOf overlay
2007-08-24 02:46:55 +00:00
Howard Chu
2d4f198662
Add dgIdentity support
2007-08-23 23:33:37 +00:00
Howard Chu
ece1c226a1
Add dgIdentity from draft-haripriya-dynamicgroup-02
2007-08-23 02:09:17 +00:00
Howard Chu
7ef61c0ec0
Register dyngroup OID
2007-08-23 01:52:04 +00:00
Howard Chu
43463852f6
Add cn=config support
2007-08-23 01:40:09 +00:00
Pierangelo Masarati
25d46e7578
rework controls API
2007-08-22 22:35:14 +00:00
Pierangelo Masarati
7c9f63a60d
fix subtree rename integrity; curiously enough, tes023 only failed on 64 bit arch; probably because we'd need to double the stack of the slab on 64 bit archs...
2007-08-22 17:46:55 +00:00
Pierangelo Masarati
9a00bbb35f
add support for session tracking (draft-wahl-ldap-sessio) to proxy backends requests
2007-08-22 15:49:35 +00:00
Pierangelo Masarati
63b6bfd1a4
don't Statslog before getting controls
2007-08-22 14:41:42 +00:00
Pierangelo Masarati
99c92b74c9
handle response controls in exops
2007-08-22 12:07:27 +00:00
Pierangelo Masarati
05b9123a03
consistently use o_log_prefix
2007-08-22 09:17:09 +00:00
Pierangelo Masarati
8ef19246dc
fix previous commit (need to finish breakfast before committing...)
2007-08-22 08:57:23 +00:00
Pierangelo Masarati
00368b128a
log formatOID, possibly mapped to friendly name if known
2007-08-22 08:44:21 +00:00
Pierangelo Masarati
83eec9f96b
add session tracking support to essential exops
2007-08-22 00:41:47 +00:00
Pierangelo Masarati
1bdc186ea2
fix API change
2007-08-22 00:08:38 +00:00
Pierangelo Masarati
1a59d091bc
minimal implementation of draft-wahl-ldap-session-03
2007-08-21 22:47:54 +00:00
Pierangelo Masarati
6270bd9e82
cleanup experimental controls: rename macros, ifdef code
2007-08-21 21:42:09 +00:00
Pierangelo Masarati
70ed7d58a6
re-fix previous commit
2007-08-21 15:36:21 +00:00
Pierangelo Masarati
7bea240767
fix tree delete error handling
2007-08-21 15:19:01 +00:00
Pierangelo Masarati
9066d14290
add support for tree delete along with minor fixes (portions ITS#3497)
2007-08-21 14:52:43 +00:00
Pierangelo Masarati
cb05b0e935
fix control value presence
2007-08-21 14:50:32 +00:00
Pierangelo Masarati
b25eab8a7b
set authorizing backend
2007-08-21 11:37:33 +00:00
Pierangelo Masarati
145e6fc1f8
fix or comment Calysto findings
2007-08-21 10:52:16 +00:00
Pierangelo Masarati
f95fe8c756
fix yet another potential dereference of NULL op (caught by Coverity)
2007-08-20 22:09:19 +00:00
Howard Chu
df2dcbcbe6
More for ITS#5077
2007-08-20 20:00:15 +00:00
Pierangelo Masarati
2c13f86cec
support subtree rename (ITS#5097)
2007-08-20 19:06:18 +00:00
Pierangelo Masarati
af92ee5e65
check for SOFTADD as well
2007-08-20 19:05:07 +00:00
Pierangelo Masarati
4242ce20d6
rework connections so that they get cached on a per-thread basis (ITS#5095)
2007-08-20 00:27:47 +00:00
Howard Chu
4c7d288eb7
More for BDB 4.6 compatibility
2007-08-17 20:33:46 +00:00
Pierangelo Masarati
8e66538dc1
cleanup previous commit; make sure what's queryid and what's entryUUID
2007-08-17 16:37:29 +00:00
Pierangelo Masarati
970471d49c
fix queryDelete by queryID
2007-08-17 16:24:27 +00:00
Pierangelo Masarati
8be1b48263
set the number of cached entries after reload...
2007-08-17 15:46:44 +00:00
Pierangelo Masarati
ca1aed557b
make lutil_uuidstr_from_normalized() return the length of the string
2007-08-17 15:08:47 +00:00
Pierangelo Masarati
0c90b9ece2
revert previous commit: let queryId be an octet string, and modify queryDelete parsing accordingly
2007-08-17 15:04:28 +00:00
Pierangelo Masarati
86c67bd491
use UUID syntax for queryId
2007-08-17 14:43:50 +00:00
Pierangelo Masarati
1b0c4f5af5
fix UUID parsing (it's in normalized form)
2007-08-17 12:43:16 +00:00
Pierangelo Masarati
403704b7bc
move uuid normalized to string to liblutil
2007-08-17 12:42:52 +00:00
Pierangelo Masarati
553d83c3c1
fix previous commit
2007-08-17 12:38:50 +00:00
Pierangelo Masarati
2245aff52c
further fix specification
2007-08-17 11:36:34 +00:00
Pierangelo Masarati
a2badc7c3c
cleanup error messages; complete privateDB control and queryDelete exop specifications
2007-08-17 11:25:35 +00:00
Pierangelo Masarati
7c0a7571fb
add:
...
- support for the privateDB control, which allows regular LDAP operations
to address the private database instead of the proxied one.
This is essentially intended for cache monitoring and maintenance
- support for the queryDelete extended operation, which allows to delete
from the cache database either a cached query, specified by queryId,
or all queries related to a specific cached entry, specified by entryDN
2007-08-17 10:26:56 +00:00
Pierangelo Masarati
68ab6c87bd
rework previous commit: consistently remove queries, better memory handling and more
2007-08-17 09:57:46 +00:00
Pierangelo Masarati
995359548b
more consistent parsing checks
2007-08-17 09:53:47 +00:00
Pierangelo Masarati
ce6b685caf
rework previous commit
2007-08-17 09:52:31 +00:00
Pierangelo Masarati
36111934a3
allow "traditional" behavior (more for ITS#4962; please debate)
2007-08-17 09:51:29 +00:00
Pierangelo Masarati
ba9baf154e
give the db a chance if rootpw is unset (more for ITS#4962)
2007-08-17 09:50:20 +00:00
Pierangelo Masarati
5acbf5997c
re-sort funcs (and enums) in "logical" order
2007-08-17 09:49:17 +00:00
Howard Chu
a16eea9d8e
Paranoia for prev commit
2007-08-16 20:03:27 +00:00
Howard Chu
8133e7005e
Fix double-free closing multiple ppolicy overlay instances
2007-08-16 19:59:02 +00:00
Hallvard Furuseth
f5d1a15fec
Remove lint
2007-08-16 14:41:48 +00:00
Hallvard Furuseth
6a02dd9d92
Fix typo in previous commit: spurious space in UUID syntax OID.
...
Also make remove_query_and_data() return void (it returned nothing) and
remove an unused variable.
2007-08-16 13:44:15 +00:00
Pierangelo Masarati
51152d83a3
consistently use SLAP_* malloc macros; alloc sizeof(Syntax *) instead of sizeof(Syntax) for areray of superiors; free resources also in case of failure of syn_insert()
2007-08-16 12:08:47 +00:00
Pierangelo Masarati
3771d2ed49
fox to ITS#5070 fix: error out if serialNumber requires size > sizeof(long long) (detected by Coverity)
2007-08-16 11:57:34 +00:00
Pierangelo Masarati
9c4d147747
fix error checking when parsing UUID (detected by Coverity); added check/prettification of UUID, just in case...
2007-08-16 11:52:10 +00:00
Pierangelo Masarati
9029c0902f
don't trick coverity...
2007-08-16 11:32:10 +00:00
Pierangelo Masarati
f7a6c4360c
defer thread key retrieve as it might not be needed
2007-08-16 10:05:21 +00:00
Pierangelo Masarati
2f5bfba296
let req_modify_s and req_modrdn_s have a common portion to interoperate within slap_mods_opattrs() (ITS#5093)
2007-08-16 09:48:53 +00:00
Pierangelo Masarati
27428ac00e
uniformly exploit rootdn bind; add support for rootdn bind to backends that didn't have it (ITS#4962)
2007-08-16 09:38:15 +00:00
Pierangelo Masarati
15545731bc
fix previous commit
2007-08-16 09:32:04 +00:00
Pierangelo Masarati
f4844889fd
s/orb_tmp_mech/orb_mech/
2007-08-16 09:29:45 +00:00
Pierangelo Masarati
87f918ebc0
don't dereference save_errnop if NULL; create temporary file in right dir; revert to strtol(3) (ITS#4627)
2007-08-16 09:23:48 +00:00
Howard Chu
c727d5caf7
ITS#4627 fix tool_entry_next
2007-08-15 20:09:06 +00:00
Hallvard Furuseth
8e30e008c6
Fix rev 1.68 spew_entry() for ITS#4627: Do not dereference NULL save_errnop.
...
Add missing unlink(). Update debug messages, move one from spew_file().
Also check the close() return code.
2007-08-15 19:43:13 +00:00
Howard Chu
b45c15fdc9
TS#4627 fix tool_entry_first()
2007-08-14 18:54:28 +00:00
Pierangelo Masarati
d8f964fb7a
fix most of the issues of ITS#4627
2007-08-14 15:54:56 +00:00
Pierangelo Masarati
9a55fe709c
add '-Q' switch (used by slaptest only; ITS#4930)
2007-08-14 13:42:40 +00:00
Pierangelo Masarati
5ec09e2f0a
merge attributes as required after mapping; avoid objectClass duplicates (ITS#5091)
2007-08-14 11:46:29 +00:00
Pierangelo Masarati
1f3d88f32b
recent check for syncrepl searchbase broke test048; fixing...
2007-08-13 20:51:42 +00:00
Pierangelo Masarati
a73826b834
don't allow NULL values (because of parsing errors; ITS#5090)
2007-08-13 19:33:01 +00:00
Pierangelo Masarati
c114cb8eb7
provide an interface to remove a set of entries from the cache
2007-08-13 16:50:18 +00:00
Pierangelo Masarati
4a249bbe0d
plug leak
2007-08-13 16:29:04 +00:00
Pierangelo Masarati
ccff813df0
stop pcache task at close
2007-08-13 16:28:33 +00:00