Commit graph

12046 commits

Author SHA1 Message Date
Hallvard Furuseth
074fe6c298 ITS#6763,7053 Cleanup after sending entry/searchref.
slap_send_search_entry(), slap_send_search_reference(): Never skip
the cleanup code.  Sending an entry did on sizeLimitExceeded/busy.
Sending a ref dropped rs_flush_entry() on error.
2011-10-24 01:06:42 +02:00
Howard Chu
2014460eb5 Only use tool IDL cache when multithreaded 2011-10-20 13:46:39 -07:00
Ralf Haferkamp
1ca56b5397 ITS#7066 Reworked fix
Seems simpler this way. No need for a back-config specific
bi_access_allowed() handler.
2011-10-20 11:50:57 +02:00
Ralf Haferkamp
72483b1d72 plugged mem-leak introduced by last commit
more for ITS#7066
2011-10-19 14:59:17 +02:00
Ralf Haferkamp
cf59ac0d70 ITS#7066 reworked default deny ACL for cn=config
Dynamically adding ACL for cn=config didn't work correctly, when no
ACLs where present for that database upon startup. Delete the last
ACL from the DB could also lead to unexpected results.
2011-10-18 17:08:05 +02:00
Howard Chu
df4738f071 Define S_IWRITE if needed 2011-10-12 19:19:52 -07:00
Howard Chu
c647a06441 More for cursor reuse 2011-10-06 19:15:10 -07:00
Howard Chu
4c17f31843 Keep some dn2i/id2e cursors open longer
So they can be reused, and avoid unnecessary page_searches
2011-10-06 19:14:22 -07:00
Howard Chu
7592013f59 Additional tweaks for double-threaded slapadd 2011-10-06 16:10:47 -07:00
Howard Chu
507238713b ITS#7059 replace previous patch
Bug was caused by postalAddressNormalize sending 0-length values
to UTF8StringNormalize.
2011-10-06 15:22:40 -07:00
Howard Chu
d0dd8616f1 Fix UTF8StringNormalize overrun on zero-length string
Detected by valgrind
2011-10-06 14:06:59 -07:00
Howard Chu
df47eb24cd Additional change for prev commit 2011-10-04 23:45:33 -07:00
Howard Chu
34adb86929 Use a thread for LDIF parsing in slapadd -q 2011-10-04 19:21:39 -07:00
Howard Chu
d06301f303 Turn off tool IDL caching
Well, just like in back-bdb in 2005, it only slowed things down
on larger LDIFs.
2011-10-04 02:18:09 -07:00
Howard Chu
9725bc475f Tweak tool IDL cache, use MDB_MULTIPLE 2011-10-03 11:29:04 -07:00
Howard Chu
8a8fb76cca Use MDB_APPEND mode where possible 2011-10-02 21:29:21 -07:00
Howard Chu
98da203fce Use IDL caching in tool/quick mode 2011-10-02 19:38:58 -07:00
Howard Chu
a1533520c1 Use MDB_RESERVE for id2entry_put 2011-10-02 10:06:06 -07:00
Howard Chu
da210f40e1 ITS#7040 don't complain about other server's CSNs
Only worry if consumer has newer state for our SID. Fixes breakage
caused by ITS#6606.
2011-09-30 03:04:10 -07:00
Howard Chu
3ca52e4f94 ITS#7037 restart consumer on Persist errors
Consumer should never get NO_SUCH_OBJECT for an Add to the underlying DB
during Persist phase.
2011-09-30 02:27:04 -07:00
Howard Chu
638566f155 ITS#7037 fix syncrepl_add_glue for empty suffix 2011-09-30 02:10:37 -07:00
Howard Chu
b72d9b8368 ITS#7052 syncrepl deletes need a non-empty CSN
Must not let the underlying DB generate its own.
2011-09-30 00:09:01 -07:00
Howard Chu
c5ee5212fd Updated for mdb_txn_begin API change.
Nested txn stuff which we don't use.
2011-09-21 15:59:08 -07:00
Hallvard Furuseth
47f6aec61e back-bdb/back-mdb IDL cleanup.
Parenthesize macros.  Microoptimize IDL search.  Use RANGE_<FIRST/LAST>
when IDL is known to be a range.
2011-09-19 10:31:12 +02:00
Hallvard Furuseth
ef7f5f5e32 Cleanup ISO C compatibility for recent commits 2011-09-19 10:31:12 +02:00
Hallvard Furuseth
79f4f3c0bd More libmdb vs back-mdb C type tweaks.
Do not access a size_t via an unsigned long pointer, an MDB_val via a
berval pointer, or the inverse. Instead copy into the proper data types.
2011-09-19 10:31:12 +02:00
Howard Chu
c0fc7fdbed Fix prev commit
Don't truncate all indices if specific indices were given.
2011-09-18 14:47:41 -07:00
Howard Chu
344996c5e8 Support index truncation 2011-09-18 14:28:36 -07:00
Howard Chu
94c0b077d8 New mdb_close() signature 2011-09-18 13:25:38 -07:00
Howard Chu
04311cc716 Fix entry_alloc with no attrs 2011-09-14 10:14:02 -07:00
Howard Chu
0e96868e8e Fix onelevel search from last commit 2011-09-14 09:54:58 -07:00
Howard Chu
dfed6f77d7 More search optimization
Tighten up entry_alloc/entry_decode
Track parent nodes in idscopes
2011-09-13 16:58:38 -07:00
Howard Chu
fb264bf3e1 Tentative speedup - use plain ints for entry_encode/decode
Keep entries word-aligned. Yields ~10% speedup, but also 10% more space used.
May revert this if the space cost is unacceptable.
2011-09-13 15:24:50 -07:00
Howard Chu
65b5ff2de3 mdb_db_close() should not force env_sync in quick mode 2011-09-13 01:28:37 -07:00
Howard Chu
9297050f9e Resolve MDB/HDB monitor OID clashes 2011-09-12 11:41:04 -07:00
Howard Chu
c4ddf352ba Just use memcpy since we know it's non-overlapping 2011-09-12 11:05:38 -07:00
Hallvard Furuseth
141a43c1ee Tweak back-mdb integer types to match libmdb.
Also do not cast between berval and MDB_val.  That breaks when
sizeof(berval.bv_len) != sizeof(MDB_val.mv_size).
2011-09-12 19:07:12 +02:00
Howard Chu
16cbeb5e65 Fix - slapcat doesn't set op->o_hdr for tmpmemctx 2011-09-10 01:12:50 -07:00
Howard Chu
802a2ad4b2 Fix out-of-order slapadd 2011-09-09 22:29:19 -07:00
Howard Chu
c5beffc94f Fix bogus error codes 2011-09-09 19:53:56 -07:00
Howard Chu
54ced52c04 Keep cursor open for id2entry 2011-09-09 01:01:25 -07:00
Howard Chu
f72d65b77a Use tmpmem-based entries 2011-09-08 22:07:04 -07:00
Howard Chu
80f6f0a1c0 Drop referral.c 2011-09-08 22:02:59 -07:00
Howard Chu
9240cbfb29 Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap 2011-09-08 21:42:58 -07:00
Howard Chu
472c0d7877 Add Valgrind mempool support.
Compile with -DUSE_VALGRIND. It will attempt to keep Valgrind
informed of our memory allocations. Frees are trickier since they
may be deferred indefinitely.
2011-09-08 21:39:45 -07:00
Pierangelo Masarati
ca95d353a4 silence warning 2011-09-09 01:09:04 +02:00
Pierangelo Masarati
d324ab5c74 import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used 2011-09-09 01:09:04 +02:00
Howard Chu
deb0ef9f1f Fix 6c8e4f2671 2011-09-08 10:33:01 -07:00
Howard Chu
a3346f969f More error msgs 2011-09-06 17:29:42 -07:00
Howard Chu
9dc1b05f30 Fix 6c8e4f2 for empty suffixes 2011-09-06 14:04:38 -07:00
Howard Chu
6c8e4f2671 More search optimizations 2011-09-06 02:21:19 -07:00
Howard Chu
1e32fcf099 Use AD-indexes 2011-09-05 19:52:06 -07:00
Howard Chu
f8dc749c2d Add AttributeDescription counter 2011-09-05 19:51:54 -07:00
Howard Chu
e5b1dce6a7 Debug helper for index 2011-09-05 15:23:08 -07:00
Hallvard Furuseth
a316851494 back-mdb/Makefile.in += variable MDB_SUBDIR.
For compiling against a checkout of the stand-alone libmdb,
which has a branch 'mdb.master' with its own root:
    git clone --branch=mdb.master <openldap_repo_dir> mdb
    set_mdb="MDB_SUBDIR=`pwd`/mdb/libraries/libmdb"
    ... maybe modify mdb repository for testing ...
    cd <openldap_repo_dir>; make $set_mdb
2011-09-05 21:10:04 +02:00
Howard Chu
a4d0cde2d3 Fix from key_change consolidation 2011-09-05 03:52:38 -07:00
Howard Chu
7afc68c0ec Cursor updates 2011-09-05 01:27:16 -07:00
Howard Chu
d38ef26425 Fix conversion of IDL to range 2011-09-03 13:09:19 -07:00
Howard Chu
0ba4206ed9 Import back-mdb 2011-09-01 17:00:26 -07:00
Howard Chu
8d74f717ff For test063
add hex timestamp to lutil_debug() output
Fix LASTMOD race condition in accesslog.c
Set refreshInterval even if using refreshAndPersist, since
fallbacks will use refresh params
2011-08-30 19:16:39 -07:00
Howard Chu
4f35d789ac Relax entry_header, zero-length entries are valid. 2011-08-27 14:48:04 -07:00
Howard Chu
c617f3c3b9 ITS#7029,#7031 More for prev commit 2011-08-26 16:56:43 -07:00
Howard Chu
eae46d35d2 ITS#7030 fix overlay_insert() with specific index 2011-08-25 20:51:30 -07:00
Howard Chu
1c476b302e ITS#6983 fix duplicate entry in HDB subtree IDL 2011-08-25 14:47:23 -07:00
Howard Chu
ab69775dd0 ITS#7029 fix uninit'd nvalue 2011-08-24 16:09:37 -07:00
Howard Chu
fdb3443366 More abandon paranoia 2011-08-24 14:57:36 -07:00
Howard Chu
5829eb44a1 ITS#7025 handle Abandon in backglue 2011-08-23 13:48:59 -07:00
Howard Chu
4f5d087b4f Don't replicate refint repair ops 2011-08-22 14:05:58 -07:00
Pierangelo Masarati
415b8ec84b release mutex only *after* backend connection initialization (ITS#6993) 2011-08-22 11:23:54 -06:00
Pierangelo Masarati
bdbdae3e5f according to draft-behera, this attribute only affects password modifies by self (ITS#7021) 2011-08-20 18:52:54 -06:00
Howard Chu
433812db38 For #6982 fix a66fb16 2011-08-18 01:52:52 -07:00
Pierangelo Masarati
17cfffdd29 fix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com) 2011-08-17 12:57:56 -06:00
Pierangelo Masarati
fb83bf08bc make sure frontend gets the {-1} (ITS#7016) 2011-08-16 22:18:23 -06:00
Howard Chu
a66fb1630c hack for #6982 - keep o_abandon set in op_free 2011-08-16 13:51:10 -07:00
Howard Chu
20a8da0b7c Revert "More for ITS#6892"
This reverts commit 3cb2ca8bbd.
Patch has no benefit
2011-08-16 13:49:27 -07:00
Howard Chu
3cb2ca8bbd More for ITS#6892 2011-08-15 15:40:46 -07:00
Pierangelo Masarati
0d0d64518f host part of unique URI must be empty (ITS#7018) 2011-08-13 23:34:31 +02:00
Pierangelo Masarati
8c2fc29786 cleanup slapd.ldif; install it (ITS#7015) 2011-08-11 17:34:29 +02:00
Pierangelo Masarati
f0810d6535 typo in comment 2011-08-11 17:09:36 +02:00
Pierangelo Masarati
6b74e9002b make sure 2-arg statements have exactly 2 args (related to ITS#7012) 2011-08-10 20:26:59 +02:00
Pierangelo Masarati
55c70629aa TLS config statements always need an argument (related to ITS#7012) 2011-08-10 20:26:59 +02:00
Howard Chu
a31a8ed20e ITS#6999 fix syncrepl timeout in refreshAndPersist 2011-07-29 13:05:45 -07:00
Howard Chu
ff7acea2d2 ITS#7000 fix bad patch in ITS#6472 2011-07-28 13:52:47 -07:00
Howard Chu
8eecc9a017 Only return requested attrs in sssvlv response 2011-07-18 12:53:23 -07:00
Howard Chu
db106f89e6 ITS#6985 fix sssvlv target offset, ordering match 2011-07-18 12:41:51 -07:00
Pierangelo Masarati
c86677ef41 blind fix build on solaris native compilers (ITS#6992) 2011-07-08 08:48:59 +02:00
Pierangelo Masarati
c0b669e14f fix config emit (ITS#6986) 2011-07-07 08:16:23 +02:00
Howard Chu
ebf07016ef ITS#6872 fix test058 breakage from prev patch 2011-06-27 04:46:43 -07:00
Howard Chu
b1f26a8b17 Fix NO_THREADS typo 2011-06-22 20:03:24 -07:00
Howard Chu
b0fcec8d65 ITS#6716 Use sorted CSNs in syncrepl too 2011-06-22 00:32:00 -07:00
Howard Chu
6da3e3473c ITS#6716 use sorted CSNs, fix sessionlog
track a CSN per SID in the log->sl_mincsn
2011-06-22 00:30:13 -07:00
Howard Chu
249422aa28 ITS#6716 Keep CSN lists sorted by SID 2011-06-21 22:35:14 -07:00
Howard Chu
ceefe132a8 ITS#6817 fix RE24 build breakage
Should SLAP_AUTH_DN be #defined in release now?
2011-06-21 17:05:53 -07:00
Howard Chu
ae24a1a6ac ITS#6973 need limits_check if overlay is global 2011-06-21 02:40:38 -07:00
Ondrej Kuznik
6f43600731 ITS#6974 (Re)moving stray cleanup code. 2011-06-20 18:13:36 -07:00
Hallvard Furuseth
e25bce9124 Tweak back-ldif messages about CRC checksums. 2011-06-20 21:53:05 +02:00
Hallvard Furuseth
06fe436053 Cleanup back-ldif CRC code.
Handle interrupted write() again.  Fix warnings/types.  #ifdef LDAP_DEBUG.
2011-06-20 21:45:03 +02:00
Howard Chu
05ca8c3710 More fixes, add test script 2011-06-20 11:05:08 -07:00
Howard Chu
48cdd54d9a Fix missing si_syncCookie numcsns 2011-06-20 06:51:33 -07:00
Howard Chu
480f0c16ff More tweaks for delta-mmr 2011-06-20 04:27:11 -07:00
Howard Chu
67bbad6e70 delta-mmr conflict resolution 2011-06-19 20:14:03 -07:00
Howard Chu
237a686107 More for conflict detection 2011-06-19 20:13:59 -07:00
Howard Chu
95d7adcd6d Setup delta-mmr using an overlay 2011-06-19 20:13:51 -07:00
Howard Chu
0a9f51f58d ITS#6657/6691 use proper SQL length data type 2011-06-13 13:54:56 -07:00
Howard Chu
de395ddad3 ITS#6944 limit op cache to 10 ops per thread 2011-06-10 03:27:40 -07:00
Howard Chu
329e7937e6 ITS#6892 shortcut for non-replicated ops 2011-06-10 01:44:30 -07:00
Howard Chu
d1b38bd12b ITS#6967 normalize schema RDN 2011-06-10 01:35:19 -07:00
Howard Chu
6f715114ff Add CRC32 checksum to back-ldif files
Currently just logs a complaint on checksum mismatch. Could get
more obnoxious later.
2011-06-09 21:09:41 -07:00
Howard Chu
214d7e3750 Fix prev commit 2011-06-09 18:07:13 -07:00
Howard Chu
a4a7ffdf5c Try to discourage editing back-ldif files 2011-06-09 17:59:08 -07:00
Howard Chu
68c7d375da Revert "ITS#6688 enforce search ACL in back-perl"
This reverts commit 53bb95a2e3.
Code was working as designed/documented. Changing now will
probably break other users.
2011-06-09 15:37:11 -07:00
Howard Chu
53bb95a2e3 ITS#6688 enforce search ACL in back-perl 2011-06-09 15:25:32 -07:00
cmikk@qwest.net
fa64b07cfc ITS#6872
Perform the internal FIND_CSN search based at the backend's suffix with the
privileges of the backend's root DN.
2011-06-09 01:36:06 -07:00
Howard Chu
0a78997f97 ITS#6936 add connID and peername to auditlog
From ksmith @ ycp.edu, with fixes by hyc
2011-06-09 01:01:06 -07:00
Howard Chu
cbb6fe15b9 ITS#6901 fix filter with zero-length values 2011-06-08 19:17:50 -07:00
Ondrej Kuznik
c0aec23bde ITS#6641 Bypass checks on ops with managedsait
Document the uniqueness changes

Fix whitespace in original patch -- hyc
2011-06-08 16:10:50 -07:00
Pierangelo Masarati
d8f97f58e2 ITS#6899
tag read entry response control value with [APPLICATION 4] (SearchResultEntry)
2011-06-08 22:19:09 +02:00
Pierangelo Masarati
8a1aa76b07 fix typo in previous commit 2011-06-08 00:48:57 +02:00
Howard Chu
b4cb462fe2 ITS#6948 partial revert of #6837, unnecessary 2011-06-06 19:55:54 -07:00
Howard Chu
6e0934d570 ITS#6948 fix ITS#6837 patch 2011-06-05 13:59:19 -07:00
Howard Chu
1b08936565 ITS#6963 config entries' objectclass is read-only 2011-06-04 13:40:57 -07:00
Howard Chu
3fb9d604ef ITS#6831 don't push stack unless needed 2011-06-03 22:22:48 -07:00
Howard Chu
f5b809b2e9 Fix ce9bbd2 missing success return 2011-06-03 21:56:01 -07:00
Howard Chu
8b90f05b59 ITS#6831 additional filter cmp fixes 2011-06-03 21:40:27 -07:00
Howard Chu
aaac401dc8 ITS#6831 fix filter comparison 2011-06-03 19:13:24 -07:00
Howard Chu
ce9bbd2df2 More for ITS#6961 - deadlock checking 2011-06-01 11:29:39 -07:00
Howard Chu
f5cb879aed Fix for sparse ranges, get next ID from DB
Instead of iterating thru potentially many nonexistent IDs
2011-06-01 01:44:51 -07:00
Ralf Haferkamp
ea22849514 ITS#6954 fix consistency checker prematurely deleting cached queries 2011-05-26 15:26:55 +02:00
Ralf Haferkamp
9e80eab803 fix uninitialized bindref_time (found with valgrind) 2011-05-26 14:07:37 +02:00
Ralf Haferkamp
200af921f4 ITS#6953 do not use the cache db when refreshing 2011-05-26 10:53:27 +02:00
Howard Chu
78e1dd9b2f ITS#6915 Don't replicate internal operations 2011-05-24 11:15:25 -07:00
Howard Chu
53b4baec8b Revert "update entryCSN (and operational attrs in general) when changing memberOf (ITS#6329)"
This reverts commit 716eaf0e8b.
2011-05-24 11:06:56 -07:00
Howard Chu
d6e414db66 Revert "force the generation of a new CSN (ITS#6766)"
This reverts commit 53343b421c.
2011-05-24 11:06:26 -07:00
Howard Chu
637b625047 Revert "ITS#6915 fix op timestamps"
This reverts commit 81687b321c.
2011-05-24 11:06:11 -07:00
Ralf Haferkamp
5402fef6d7 ITS#6951 Fix two buffersize issue in "pcacheBind" config processing
Found with valgrind
2011-05-24 15:36:15 +02:00
Ralf Haferkamp
aa8615b8a2 ITS#6950 Fix '1.1', '+' and '*' in pcacheAttrSets 2011-05-24 14:35:03 +02:00
Pierangelo Masarati
052da7f8a2 check sat_equality before using it (ITS#6943) 2011-05-23 00:22:12 +02:00
Hallvard Furuseth
32792a4fbc ITS#6935 Fix uninitialized cert-syntax vars.
serialNumberAndIssuerNormalize():    s3,
attributeCertificateExactNormalize():sn2,i_sn2.
2011-05-09 15:50:22 +02:00
Hallvard Furuseth
34c772e28d ITS#6933 Add missing strdup of lutil_getRegParam() 2011-05-09 15:37:55 +02:00
Hallvard Furuseth
071c5800eb ITS#6932: Move assert(str) before Debug(..str). 2011-05-07 20:11:35 +02:00
Hallvard Furuseth
fac36dcba7 ITS#6932: Clean up strange asserts & nearby code.
Mostly found by Klocwork: Issues #213,298-300,331,342-343,374,390,410.
2011-05-05 15:55:29 +02:00
Hallvard Furuseth
e2e5a8504d klocwork#255 Fix sprintf(%d, u_int32_t) 2011-05-05 13:51:36 +02:00
Howard Chu
45ce60c094 ITS#6909 blind fix. re-init creds for retry.
Move retry so that cred validity is also re-checked.
2011-04-23 21:11:52 -07:00
Howard Chu
81687b321c ITS#6915 fix op timestamps
This has always been broken since memberof was first written
2011-04-23 20:56:11 -07:00
Howard Chu
7a66c84783 More for ITS#6815, Unbind and Abandon 2011-04-20 12:31:27 -07:00
Howard Chu
9e00b6cc6c Add strictrefresh syncrepl option
Only affects delta-syncrepl - stop listening to clients while
refresh is running.
2011-04-15 11:13:38 -07:00
Howard Chu
d6eb465bca Log when delta-sync has to fallback 2011-04-15 10:41:31 -07:00
Howard Chu
b062dd67de Log entry DN on syncrepl errors 2011-04-14 22:07:12 -07:00
Hallvard Furuseth
76b7a83026 Merge missing files from cvs repo 2011-04-04 15:38:46 +02:00
Luke Howard
4f0dc06553 slapi_attr_add_value should use attr_valadd to set a_numvals 2011-03-30 21:03:39 +11:00
Howard Chu
1cfe042f53 ITS#6870 fix winsock wake_sds init 2011-03-24 10:38:09 +00:00
Ralf Haferkamp
f4e5030c22 First underlying LDAP database needs special treatment upon deletion 2011-03-22 16:14:02 +00:00
Ralf Haferkamp
33cab9b7ed Allow deletion of chain overlay's back-ldap databases 2011-03-22 15:37:11 +00:00
Hallvard Furuseth
471fb7ab3b Comment back-ldap/SampleLDAP.pm data structure 2011-03-18 15:36:32 +00:00
Ralf Haferkamp
c70165c294 Set appropriate error code, when trying to delete non-leaf
entry from cn=config
2011-03-18 10:50:44 +00:00
Howard Chu
0ae659ad87 sl_busy is used as a boolean so just set it, don't increment it 2011-03-17 17:19:25 +00:00
Kurt Zeilenga
868e11f6f5 use IANA assigned OID for dontUseCopy control, don't hide anymore 2011-03-16 19:24:41 +00:00
Howard Chu
31175da39e More for ITS#6853, check for trickle thread not yet started 2011-03-16 17:30:24 +00:00
Ralf Haferkamp
e6267d3317 Allow deleting Cft_Misc config entries by setting a delete
handler in the ConfigOCs structure
2011-03-16 17:29:10 +00:00
Ralf Haferkamp
bc00bee6c2 silence warning 2011-03-15 16:57:41 +00:00
Ralf Haferkamp
d4757e170b removing global overlays should work now as well 2011-03-15 16:26:05 +00:00
Ralf Haferkamp
fa4aa9845f plugged possible memory leak (e.g. when deleting syncrepl config) 2011-03-14 17:29:55 +00:00
Howard Chu
2399e2536f More for 6853, add condvar for end condition 2011-03-11 22:16:13 +00:00
Howard Chu
db13bc1d4c ITS#6858 fix segv if adding values out of order 2011-03-09 18:22:50 +00:00
Howard Chu
e8522e6cd1 More for prev commit - none of this is necessary if no_detach is true 2011-03-09 18:09:35 +00:00
Ralf Haferkamp
0ef6a3cc51 Removed missleading comments in ldap_chain_uri_cmp/_dup.
Likely a copy and paste left over.
2011-03-09 16:07:54 +00:00
Ralf Haferkamp
8359d5dcd9 ITS#6857 avoid overwriting be_flags of the underlying database
when setting up the chain overlay from slapd.conf
2011-03-07 16:55:57 +00:00
Pierangelo Masarati
821d2616b5 fix commit 1.268, related to ITS#6817 2011-03-05 10:30:21 +00:00
Pierangelo Masarati
16a1417a3f more about ITS#6817 2011-03-05 10:28:04 +00:00
Howard Chu
7dd1089706 ITS#6853 wait for trickle task to quit 2011-03-04 23:54:10 +00:00
Howard Chu
84361763f1 ITS#6850 from Raphael Ouazana @ Linagora 2011-03-04 23:02:23 +00:00
Howard Chu
14dd620ae3 ITS#6852 add ordering for uidNumber and gidNumber
corresponds to draft-howard-rfc2307bis-02
2011-03-04 22:58:36 +00:00
Howard Chu
bfa05a5e32 More for #6561 - delete returns NO_SUCH_ATTRIBUTE, not TYPE_OR_VALUE_EXISTS 2011-03-04 07:54:06 +00:00
Howard Chu
07147abadc Fix prev commit 2011-03-04 07:22:15 +00:00
Howard Chu
faa070d446 More for #6848 - drop -w option, just make it default behavior 2011-03-01 01:31:11 +00:00
Howard Chu
93da727d86 ITS#6848 Add -w option to wait for DB startup before parent exits 2011-03-01 01:19:37 +00:00
Howard Chu
d89b0d7604 ITS#6845 set a_flags in attr_alloc() 2011-03-01 00:28:37 +00:00
Howard Chu
640ff9c84b Revert prev commit 2011-03-01 00:15:16 +00:00
Howard Chu
4a4bf0bf39 Cleanup error messages 2011-02-28 11:38:19 +00:00
Howard Chu
bc2b9f54f7 ITS#6845 don't muck with save_attrs for index deletes, use a new array 2011-02-28 10:17:03 +00:00
Howard Chu
7288804425 ITS#6845 set sorted flag on newly created sorted attrs 2011-02-28 09:58:25 +00:00
Pierangelo Masarati
05b5405c5e fix potential deadlock in back-meta (ITS#6846) 2011-02-28 09:27:18 +00:00
Howard Chu
28f0f11c6c Fix uninit'd var 2011-02-25 05:32:05 +00:00
Howard Chu
0109f871bf Fix dnIsSuffix to use berval len 2011-02-25 03:25:20 +00:00
Ralf Haferkamp
db7304fc4e ITS#6843 Fix cn=config slapadd for global overlays with private
database instances (e.g. slapo-chain)
2011-02-24 17:50:08 +00:00
Howard Chu
eeb7603de6 Fix prev commit 2011-02-24 13:22:57 +00:00
Ralf Haferkamp
24eb35f9b7 fix bdb_cache_deref() definition to match prototype 2011-02-23 15:51:09 +00:00
Howard Chu
4f2949b1ce Use refcnt instead of keeping entry locked in Add response 2011-02-23 03:53:21 +00:00
Howard Chu
e92278b457 Tweak error message 2011-02-23 03:47:05 +00:00
Howard Chu
f5422a8eeb More for cn=config support 2011-02-23 03:46:06 +00:00
Howard Chu
028c176c85 ITS#6815 delimited verbstring parsing 2011-02-23 03:44:54 +00:00
Howard Chu
2063cc9db7 ITS#6815 add logbase option, to only log requests matching a given suffix 2011-02-23 02:47:19 +00:00
Howard Chu
a60c82b3ba ITS#6837 olcChainDatabase inherits from olcLDAPConfig 2011-02-19 02:49:18 +00:00
Howard Chu
6005349cbc ITS#6837 make sure objectclasses are processed in correct
inheritance order
2011-02-19 02:48:47 +00:00
Howard Chu
20655ca45a ITS#3272 link against libslapi.la 2011-02-17 02:57:47 +00:00
Hallvard Furuseth
1e76343406 Unlock new_cached_query->rwlock before destroying it.
Fixes rev 1.210 (new since last OpenLDAP release).
2011-02-11 11:43:18 +00:00
Howard Chu
61029a3ecf Add substring matching rules for some of the olc-schema attributes.
Allows for easy extraction of individual objectclass definitions using
matchedValues searches.
2011-02-11 04:27:17 +00:00
Ralf Haferkamp
6a6626b49d removed some used vars 2011-02-08 17:20:44 +00:00
Howard Chu
3a8720d3db Cleanup ASPERL ifdefs 2011-02-05 00:51:18 +00:00
Howard Chu
d1cc334deb Cleanup PERL_5_6 ifdefs 2011-02-05 00:48:22 +00:00
Hallvard Furuseth
2a9ef9badc Silence gcc -Wformat: Cast printf %p arg to void* 2011-02-04 21:24:13 +00:00
Hallvard Furuseth
824ea93d84 Fix ITS#6814: Restore filter2bv_x() prototype.
It was removed in proto-slap.h 1.814, but the function is still in use.
2011-02-04 21:12:48 +00:00
Howard Chu
09cd5ebc4e Overlay result is in rs->sr_err 2011-02-04 17:36:49 +00:00
Howard Chu
586c52c38d config OID for back-perl 2011-02-04 17:13:29 +00:00
Howard Chu
6e0d483f62 Backward compatibility - treat unknown directives as perlModuleConfig's 2011-02-04 17:07:35 +00:00
Howard Chu
1c59810a89 Fixup config init 2011-02-04 16:42:06 +00:00
Howard Chu
6c7654d484 Fix typo from rev 1.15. Apparently nobody has used this module since 2007. 2011-02-04 16:21:10 +00:00
Ralf Haferkamp
41352ea34d Fixed the overlay delete code to allow removing
cn=config overlays again.
2011-02-04 16:10:11 +00:00
Howard Chu
95f014d02f Cleanup config items on destroy 2011-02-04 15:25:42 +00:00
Howard Chu
4e96cd4605 More cleanup / old perl compat 2011-02-04 15:03:16 +00:00
Howard Chu
a815d1821c Dynamic config support - not fully backward compatible 2011-02-04 15:00:10 +00:00
Howard Chu
e3eecf85c4 Dynamic config for back-shell 2011-02-04 13:09:15 +00:00
Howard Chu
aa0153ee88 Fix typo 2011-02-04 12:22:55 +00:00
Howard Chu
e3a5e9d060 Dynamic config for back-passwd 2011-02-04 12:22:17 +00:00
Howard Chu
999b6407b0 Add overlay config stuff, handle overlay responses 2011-02-04 10:52:34 +00:00
Pierangelo Masarati
5d9baf3e85 use (noncritical) whoami extop during SASL bind (ITS#6817) 2011-02-03 23:35:56 +00:00
Pierangelo Masarati
ddbcb565d4 use (noncritical) authzid control during SASL bind (ITS#6817) 2011-02-03 23:20:15 +00:00
Howard Chu
cfd29403c0 Just use back-sock OID arc for overlay 2011-02-03 21:54:11 +00:00
Howard Chu
bef7970e8b As an overlay, always return SLAP_CB_CONTINUE 2011-02-03 21:34:45 +00:00
Howard Chu
d678a83720 Add response message for overlays 2011-02-03 21:24:26 +00:00
Howard Chu
9ca9459ece More for overlay use, add connid extension 2011-02-03 20:47:38 +00:00
Howard Chu
8ab45884e3 Add overlay wrapper, use for triggers etc. 2011-02-03 20:17:23 +00:00
Pierangelo Masarati
fb2092328c do not set c_authz_backend unless needed (ITS#6824, thanks to Howard) 2011-02-03 20:04:56 +00:00
Howard Chu
14b7b19c0d ITS#6821 make sure objectclass is processed before other mods 2011-02-03 00:15:09 +00:00
Hallvard Furuseth
4225acc07a Revert last ITS#6532 commit, it is incomplete.
Needs better MUTATION support in filter.c first.
2011-02-02 23:28:42 +00:00
Hallvard Furuseth
b508c611a6 More ITS#6532: Support (:UUIDOrderingMatch:=foo) 2011-02-02 23:15:17 +00:00
Hallvard Furuseth
e74964d51b More ITS#6532: Support (:csnOrderingMatch:=foo) 2011-02-02 22:24:39 +00:00
Pierangelo Masarati
4e3eac93f7 prefix undef attrs with undef: (ITS#6823) 2011-02-02 21:45:34 +00:00
Howard Chu
e72c093a55 ITS#6711 minimal tweaks for aclbind/idassertbind for privileged connection
in dobind_int().
2011-02-02 20:56:58 +00:00
Howard Chu
d626977848 Cleanup priv/idassert choice: check for configured bind method, not authcDN 2011-02-02 20:32:48 +00:00
Howard Chu
aec5adac17 ITS#6711 use idassert TLS conf for priv connection if aclbind not set 2011-02-02 20:06:28 +00:00
Ralf Haferkamp
c9e49778f4 ITS#6822 fix back-config's default ACL when overlays are in place 2011-02-02 19:56:08 +00:00
Pierangelo Masarati
e4fcc294fa ignore attrs in search request that do not conform to RFC 4511 4.5.1.8. or standard track extensions (ITS#6819) 2011-02-01 23:13:58 +00:00
Pierangelo Masarati
15c8ad1f46 make sure data is reset 2011-02-01 22:58:41 +00:00
Howard Chu
6059ffaa00 Use larger key buffer 2011-02-01 21:24:38 +00:00
Howard Chu
acf502d99d ITS#6806 fix uninit'd NA.txn 2011-02-01 21:21:31 +00:00
Pierangelo Masarati
aef310e4d8 do not return void (ITS#6820) 2011-02-01 17:49:27 +00:00
Pierangelo Masarati
75e3a1931d ignore empty attrs in search requests (ITS#6819; see also ITS#6652) 2011-02-01 13:09:11 +00:00
Pierangelo Masarati
293b5e51a5 first cut at SASL bind issues in idassert (related to ITS#6817) 2011-01-31 22:07:04 +00:00
Pierangelo Masarati
67a9ef8c33 give the caller a chance to use undefined filters (more about ITS#6814) 2011-01-31 21:53:56 +00:00
Pierangelo Masarati
6d35c255d3 do not cause f_result to override undefined ava 2011-01-31 21:33:54 +00:00
Pierangelo Masarati
539a6902de do not denormalize attrs without equality rule (ITS#6818) 2011-01-31 21:20:33 +00:00
Hallvard Furuseth
4064e3c15d Re-fix ITS#6793 (back-ldap bad free of matchedDN).
Previous fix opened for a ITS#6758-style double free if the
caller was broken.  Using REP_MATCHED_MUSTBEFREED is more robust.
2011-01-31 05:30:05 +00:00
Pierangelo Masarati
36d0a161ab also handle RFC 4526 t-f filters in back-ldap (more about ITS#6814) 2011-01-29 14:23:53 +00:00
Pierangelo Masarati
4acb60f808 also handle RFC 4526 t-f filters in back-ldap (more about ITS#6814) 2011-01-29 14:16:02 +00:00
Pierangelo Masarati
b996c17eb2 handle undefined filters in back-ldap (more about ITS#6814) 2011-01-29 12:29:20 +00:00
Pierangelo Masarati
8fcc9b058b handle undefined objectClass values in search filters (ITS#6814) 2011-01-29 10:30:17 +00:00
Howard Chu
3f28eeb797 ITS#6812 cleanup error codes 2011-01-29 03:30:22 +00:00
Howard Chu
20e7176183 More for ITS#6807, make sure to check_syncprov() after initial startup 2011-01-28 22:01:18 +00:00
Hallvard Furuseth
42cb7f06f1 cleanup: Rename rs_ensure_entry_modifiable().
The name rs_entry2modifiable() is more reasonably sized.
For now, leave behind a macro rs_ensure_entry_modifiable in proto-slap.h.
2011-01-28 16:33:55 +00:00
Howard Chu
36563721bc Fix a couple FIXMEs: use ldif_put to allow for binary values in
compare and modify. Note that line wrapping is disabled; presumably
existing code expects the compare argument to use only a single line.
The manpage should be updated to note whether standard LDIF with
default line wrapping is expected or not. (Add uses default width already.)
2011-01-28 09:40:52 +00:00
Howard Chu
0a96599375 ITS#6809 add missing newline 2011-01-28 09:11:18 +00:00
Pierangelo Masarati
2a513ad623 cleanup monitor unregister (ITS#6808) 2011-01-27 22:27:22 +00:00
Howard Chu
2d37632286 ITS#6807 always use complete cookie on refresh requests 2011-01-27 20:50:08 +00:00
Howard Chu
68081c5a24 ITS#6804 fix ACL_RECORD_VALUE_STATE macro, was skipping past the ACL
instead of resuming from the intended one
2011-01-27 00:50:26 +00:00
Pierangelo Masarati
34a21b7f40 add support for subtree-include (ITS#6801); improve support for subtree-exclude 2011-01-22 15:47:37 +00:00
Ralf Haferkamp
35c2869e44 ITS#6794 Fixed slapadd -q for glued databases
Cleanup memory/threads more thoroughly in bdb_tool_entry_close() so that a
subsequent bdb_tool_entry_open() (e.g. for a glued database) can setup
things correctly again.
2011-01-21 17:11:21 +00:00
Hallvard Furuseth
a67100a7c1 ITS#6758 whitespace fix for rev 1.350 2011-01-21 12:09:47 +00:00
Hallvard Furuseth
ecc19f03a0 ITS#6758 Remove comment; broken rs.sr_type idea 2011-01-21 11:43:20 +00:00
Hallvard Furuseth
fb6aa52870 Support $NO_RS_ASSERT. Add comments.
Use a private rs_assert_() helper function instead of libc assert.
2011-01-21 11:41:45 +00:00
Hallvard Furuseth
2396759291 ITS#6758 Support rs_reinit(rs, rs->sr_type).
rs_reinit() looks like a function call, so it should act like one.
2011-01-21 11:23:00 +00:00
Howard Chu
d3b09ef2a9 ITS#5421 drop ldap-int.h 2011-01-19 21:27:16 +00:00
Pierangelo Masarati
f62b4a55c1 fix and improve candidate selection (ITS#6799) 2011-01-19 17:36:35 +00:00
Pierangelo Masarati
d829953dd0 empty query UUID means negative caching (ITS#6796) 2011-01-18 20:44:45 +00:00
Pierangelo Masarati
c4bdb76de0 count attr values; don't free dangling pointers (ITS#6797) 2011-01-18 20:33:12 +00:00
Howard Chu
4c1464f3cd ITS#6795 plug sr_ctrls memleak 2011-01-18 02:24:35 +00:00
Pierangelo Masarati
85ba0b81ed fix previous commit 2011-01-17 15:06:11 +00:00
Pierangelo Masarati
3c82ea09c7 make sure rwm_response returns SLAP_CB_CONTINUE (ITS#6792, as indicated by Hallvard) 2011-01-17 13:15:28 +00:00
Hallvard Furuseth
3866da50f5 ITS#6793 Fix back-ldap bad free on matchedDN change 2011-01-17 10:55:41 +00:00
Howard Chu
e3f344bcbd ITS#6717 refine mincsn check for MMR 2011-01-13 22:45:59 +00:00
Howard Chu
7da903a11d ITS#6716 partial revert, initialize sl_mincsn at db_open 2011-01-13 22:23:05 +00:00
Howard Chu
85532fc8c7 More cleanup 2011-01-13 02:23:04 +00:00
Howard Chu
9f692a8168 ITS#6787 release entry locks before sending entries 2011-01-13 01:11:08 +00:00
Howard Chu
afa4a82747 Fix typo 2011-01-12 22:54:58 +00:00
Howard Chu
b8cf299007 Minor cleanup 2011-01-12 22:53:43 +00:00
Howard Chu
62ee62c0b0 More for prev commit 2011-01-12 22:48:30 +00:00
Howard Chu
758c6e4dc9 ITS#6783 fix abandon processing, cleanup 2011-01-12 22:28:46 +00:00
Hallvard Furuseth
1ecaeb3b18 noop change: Silence signed vs unsigned warnings 2011-01-12 14:44:03 +00:00
Hallvard Furuseth
6223282235 Catch ber_scanf errors properly 2011-01-12 14:41:33 +00:00
Howard Chu
5ece155e14 More for #6503 2011-01-06 22:46:08 +00:00
Howard Chu
d4523d3142 ITS#6503 - record Adds in sessionlog too, to avoid excessive present phases 2011-01-06 22:37:23 +00:00
Kurt Zeilenga
966cef8c9a Happy New Year 2011-01-05 00:42:37 +00:00
Pierangelo Masarati
fc6bd40dfc make sure matched is NULL when err=SUCCESS (ITS#6774) 2011-01-04 18:27:02 +00:00
Pierangelo Masarati
8fcd55bdc0 no need for next control 2011-01-04 16:17:24 +00:00
Pierangelo Masarati
2b44bc5bf6 typo in error message 2011-01-04 16:16:59 +00:00
Hallvard Furuseth
eae5e37ebd Set sr_type=REP_SEARCH before be_operational 2011-01-04 15:12:45 +00:00
Hallvard Furuseth
a8c8ec5d4c ITS#6758 config_back_add: Don't set sr_text if compareTrue 2011-01-04 15:02:52 +00:00
Quanah Gibson-Mount
ed620b9ed3 s/producer/provider 2011-01-04 01:31:30 +00:00
Pierangelo Masarati
1a56a1934a quick fix for vc: allow custom controls tag 2011-01-04 00:09:10 +00:00
Pierangelo Masarati
342980d116 use Paged Results when talking to targets (in response to ITS#6664) 2011-01-03 17:52:55 +00:00
Pierangelo Masarati
53343b421c force the generation of a new CSN (ITS#6766) 2011-01-03 00:04:53 +00:00
Pierangelo Masarati
ab4eb5e673 skip operations when internal 2011-01-02 23:36:30 +00:00
Pierangelo Masarati
d562608e40 memberof handling of rename (ITS#6700) 2011-01-02 23:03:13 +00:00
Pierangelo Masarati
7c77d9b801 fix control value generation (ITS#6652) 2011-01-02 17:19:14 +00:00
Pierangelo Masarati
0a12ea91df hex digits need to be in pairs (ITS#6652) 2011-01-02 15:58:48 +00:00
Pierangelo Masarati
cddaeff565 fix reqControls validator (partially addresses ITS#6652) 2011-01-02 15:50:00 +00:00
Pierangelo Masarati
b672d8535d make sure initialization is only tried once; improve error messages 2011-01-02 15:06:11 +00:00
Pierangelo Masarati
f2df9f0cf5 add some logging (under TRACE) 2011-01-02 12:29:19 +00:00
Pierangelo Masarati
5c8d655bbb quick fix for null DN 2011-01-02 02:15:21 +00:00
Hallvard Furuseth
bdb078a778 ITS#6758 Reset dangerous REP_ENTRY_* flags.
If SlapReply.sr_un cannot contain an entry but does or soon may
contain another member than sru_search: Ensure nothing will see
leftover REP_ENTRY_* flags and try to clean up the "entry" there.
2010-12-31 20:53:17 +00:00
Hallvard Furuseth
b26c767ed6 ITS#6758 slap.h: Cast REP_* #defines to slap_mask_t 2010-12-31 20:02:41 +00:00
Hallvard Furuseth
9467059b0b ITS#6758 fix/add slap_send_search_entry() comments 2010-12-31 19:57:53 +00:00
Hallvard Furuseth
a4c2d54127 ITS#6758 result.c:Use rs_*(). Frees entries earlier.
For readability, use rs_flush_entry() where slap_send_search_entry() and
slap_send_search_reference() release entries before network operations.

This change also frees entires marked MUSTBEFREED earlier.
2010-12-31 18:14:31 +00:00
Hallvard Furuseth
f4a3304477 ITS#6758 Use rs_*() to manage SlapReply entries.
Some noop changes + fixes entry leaks and REP_ENTRY_MODIFIABLE flag leaks.
2010-12-31 17:55:36 +00:00
Hallvard Furuseth
15aa7c472a noop commit: cleanup 0 -> REP_RESULT in SlapReply 2010-12-31 14:08:34 +00:00
Hallvard Furuseth
713886ec07 ITS#6758, pcache.c: Avoid SlapReply reuse.
refresh_merge(): Do not reuse Search SlapReply parameter for a Modify,
use a local one and copy its sr_err to the parameter.  The parameter is
from refresh_query().  Move its SlapReply parameter to a local variable.
2010-12-31 13:46:48 +00:00
Hallvard Furuseth
6d7c1880a8 ITS#6758 Avoid SlapReply reuse.
Caller provides a SlapReply and reads the result after the operation,
then reuses it.  Reinitialize before reuse, or move declaration inwards.
2010-12-31 13:08:11 +00:00
Hallvard Furuseth
04f8fa5619 ITS#6760: Fix rwm entry handling 2010-12-31 12:01:03 +00:00
Hallvard Furuseth
13f52646b2 ITS#6758 Avoid SlapReply reuse, simple cases.
Caller provides and reuses a SlapReply it does not read after
initialization.  So reinitialize or move the declaration inwards.
In case of refint, move the rs parameter into refint_repair().
2010-12-31 10:46:22 +00:00
Hallvard Furuseth
cb15a4c687 ITS#6758 rs_reinit() += slap_reply_t parameter 2010-12-31 09:45:16 +00:00
Hallvard Furuseth
b120b2a05b ITS#6758 config_build_entry, avoid SlapReply reuse
Do not use the 'SlapReply *rs' passed to config_build_entry().  Instead
pass a new one to op->o_bd->be_add() and copy the output sr_err to rs.
This takes care of most SlapReply reuse in bconfig.c.
2010-12-31 09:02:34 +00:00
Hallvard Furuseth
ab1bc728fa ITS#6758 bconfig.c: ensure sr_text==NULL if sr_err==LDAP_SUCCESS
config_modify_internal(): Do not send rs->sr_text with success.
config_back_modify(): When slap_bv2ad() can set rs->sr_text,
set sr->sr_err too and catch failure.
2010-12-31 08:45:48 +00:00
Howard Chu
089cf2d421 ITS#6670 partial fix - ignore member/memberof pointing to same entry 2010-12-31 01:38:24 +00:00
Hallvard Furuseth
abf7f2efce ITS#6758 back-bdb: Delay setting sr->sr_entry until we know it will be used 2010-12-31 00:04:38 +00:00
Hallvard Furuseth
1ea8de9fda ITS#6758 Do not set sr_err=error before be_search.
glue_op_search() set LDAP_UNWILLING_TO_PERFORM before be_search() as
well as when there was no be_search.
2010-12-30 23:59:23 +00:00
Hallvard Furuseth
d2b024be4a ITS#6758 Reset some SlapReply flags & data.
Reset data more consistenlty.  When resetting sr_entry after sending
data, reset sr_flag as well.  Reset rs_attrs and Extended Operation
oid/data after setting and sending them.
2010-12-30 23:55:07 +00:00
Hallvard Furuseth
f7a77545ad noop commit for ITS#6758: simplify future commits 2010-12-30 23:48:41 +00:00
Hallvard Furuseth
98966abeef noop commit for ITS#6758: Remove no-effect code.
Unused variable resets, unused SlapReply parameters to some functions.
2010-12-30 23:43:12 +00:00
Hallvard Furuseth
cd6e9156e7 Remove lint (unused vars/labels/funcs/default:s) 2010-12-30 23:34:55 +00:00
Hallvard Furuseth
5c3f806fca ITS#6758 Add rs_reinit(), rs_flush_entry() 2010-12-30 23:32:07 +00:00
Hallvard Furuseth
ea2b675dca ITS#6758 Add rs_assert*, RS_ASSERT, USE_RS_ASSERT 2010-12-30 23:29:46 +00:00
Hallvard Furuseth
c9e85af35c ITS#6759: assert;Debug -> Debug;assert 2010-12-30 23:19:02 +00:00
Pierangelo Masarati
7443e6fc8c op->o_conn->c_sb may be 0 for internal operations 2010-12-30 21:41:07 +00:00
Rein Tollevik
a1a5affeb0 ITS#6754: Fail if there are unrecognized command-line arguments. 2010-12-30 19:45:08 +00:00
Howard Chu
97d9b07814 ITS#5862 Assert control for rootDSE/subschema 2010-12-30 17:28:19 +00:00
Hallvard Furuseth
027b6812ee ITS#6686 Fix last commit (declaration after code) 2010-12-28 15:59:48 +00:00
Howard Chu
e907ba219b ITS#6686 add multiple sorts per connection, from Raphael Ouazana @ Linagora 2010-12-23 22:29:57 +00:00
Howard Chu
56888eac30 Move assertion checking to slap_compare_entry() 2010-12-23 21:53:05 +00:00
Howard Chu
9bb47f74ae ITS#6753 use slap_compare_entry() 2010-12-23 21:45:36 +00:00
Howard Chu
149313fd25 ITS#6573 export compare_entry as slap_compare_entry() 2010-12-23 21:36:57 +00:00
Howard Chu
0393fe8974 Cleanup for #6660 2010-12-23 04:40:57 +00:00
Howard Chu
f58a646ad6 ITS#6660 preliminary fix. debug additions need to be cleaned up. 2010-12-23 00:16:19 +00:00
Hallvard Furuseth
720aa4b77e Plug mutex/rwlock leaks (destroy them) 2010-12-20 10:57:06 +00:00
Hallvard Furuseth
78a0be6a42 Plug memory leaks 2010-12-20 10:51:14 +00:00
Hallvard Furuseth
9e6331f14f ITS#6752 Remove OpenLDAP 2.[23] dynlist code 2010-12-20 10:25:11 +00:00
Hallvard Furuseth
e7df2ef95f ITS#6752 Handle REP_ENTRY_* flags correctly 2010-12-20 10:22:19 +00:00
Hallvard Furuseth
42a0f5efc2 ITS#6752 Fix dynlist Compare callback
Replace dynlist_sc_save_entry() with dynlist_sc_compare_entry() which
compares instead of saves the entry.  Check rs->sr_type == REP_SEARCH.
2010-12-20 10:20:38 +00:00
Hallvard Furuseth
abbf57fd79 ITS#6752 dynlist: Do less work, simplify a bit.
Rearrange dynlist_compare(), tweak dynlist_response().
2010-12-20 10:19:21 +00:00
Hallvard Furuseth
2a9c5154ef ITS#6748 Drop possibly-broken memberof log message 2010-12-14 15:26:42 +00:00
Hallvard Furuseth
5feeec67d7 ITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings 2010-12-14 15:06:32 +00:00
Hallvard Furuseth
0aa8c028b3 ITS#6746: Preserve error code, plug entry leak 2010-12-14 13:35:42 +00:00
Rein Tollevik
b4aa8dc68c ITS#6716: Keep sessionlog sorted by csn, compare mincsn with head. 2010-12-12 18:12:05 +00:00
Pierangelo Masarati
351bc07fcc re-fix ITS#6645 commit 2010-12-07 11:58:38 +00:00
Pierangelo Masarati
615d1c7703 fix ITS#6645 commit 2010-12-07 11:55:27 +00:00
Pierangelo Masarati
15f1e7bdb7 move ctxcsn and schema check code in helpers; also apply to slapmodify (ITS#6737) 2010-12-07 10:50:54 +00:00
Pierangelo Masarati
dc156d7f6e allow to set LDIF max line width (ITS#6645) 2010-12-07 10:14:51 +00:00
Hallvard Furuseth
87a9ee9e83 For ITS#6739: Fix last commit (private debuging) 2010-12-06 09:27:30 +00:00
Hallvard Furuseth
5fc18b9d66 For ITS#6739: Move variables into do_syncrep2 loop 2010-12-06 09:23:44 +00:00
Hallvard Furuseth
a5d1029f53 ITS#6736: Delay destruction of slap_listeners[] 2010-12-06 08:17:00 +00:00
Hallvard Furuseth
6be3671985 Fix rev 1.132 (ITS#6632): Initialize all of roc in rwm_callback_get() 2010-12-03 10:08:59 +00:00
Hallvard Furuseth
50b1c4e1b1 ITS#6620: Don't delete absent pwdChangedTime.
Based on patch by Martin Evans.
2010-12-02 12:19:31 +00:00
Hallvard Furuseth
4ed4c3a28f ITS#6731: Fix scrambled back-ldif error strings.
* Move apply_modify_to_entry():textbuf[] into caller.
* Reset rs->sr_text at end of functions that can set it to textbuf.
2010-12-02 10:24:19 +00:00
Hallvard Furuseth
3d48d5a360 ITS#6730: Only update modifiersName once per entry 2010-12-01 11:21:29 +00:00
Hallvard Furuseth
a36512660f ITS#6730: Fix missing refint updates with subtrees/subordinates 2010-12-01 11:19:17 +00:00
Hallvard Furuseth
9a9302a2f5 ITS#6663: Fix refint_nothing.
Also move callback trace output out of inner loop in callback.
2010-12-01 10:48:43 +00:00
Pierangelo Masarati
bce526a8cf test slap_dontUseCopy_propnames (ITS#6729) 2010-12-01 10:41:05 +00:00
Pierangelo Masarati
fa4dbb871b fix double free related to ITS#6720 2010-11-29 16:03:43 +00:00
Hallvard Furuseth
c9a63dc01a Fix a comment 2010-11-28 18:20:54 +00:00
Hallvard Furuseth
f23fb051d5 Add/fix comments. No other change. 2010-11-28 18:04:22 +00:00
Hallvard Furuseth
5f2af361ba ITS#6532 Support extensible match=...OrderingMatch
Handles:  caseExactOrderingMatch, generalizedTimeOrderingMatch,
         caseIgnoreOrderingMatch,         integerOrderingMatch,
        octetStringOrderingMatch,   numericStringOrderingMatch.
Based on patch from Daniel Pluta.
2010-11-24 13:10:29 +00:00
Hallvard Furuseth
def5d26f13 ITS#6722: Fix some matching rules to ensure strict ordering
booleanMatch, octetStringMatch, octetStringOrderingMatch, uniqueMemberMatch
2010-11-23 11:17:40 +00:00
Hallvard Furuseth
4484781b0d ITS#6721: Fix uninitialized tv_usec from ITS#6282 2010-11-23 10:10:45 +00:00
Hallvard Furuseth
0ab060091e Silence gcc -Wsign-compare (no real change) 2010-11-22 13:45:11 +00:00
Hallvard Furuseth
e1469fff44 For ITS#5421: Also LBER_FREE() -> ber_memfree() 2010-11-22 13:14:29 +00:00
Hallvard Furuseth
b39e9d151d For ITS#5421: Remove ldap-int.h dependencies.
LDAP_FREE() -> ber_memfree(), msg->lm_ber -> ldap_get_message_ber(msg).
2010-11-22 12:51:44 +00:00
Hallvard Furuseth
92986c3434 ITS#6715 cleanup: Handle attr_valfind(0 values) when SLAP_ATTR_SORTED_VALS 2010-11-22 12:16:08 +00:00
Pierangelo Masarati
b68703031b initialize rc in syncrepl_add_glue_ancestors (ITS#6719) 2010-11-22 12:09:45 +00:00
Hallvard Furuseth
2a9cbcc5b5 No-op change for ITS#6715: help compiler a bit in attr_valfind() 2010-11-22 12:09:43 +00:00
Rein Tollevik
d3cddce244 ITS#6718: Send NEW_COOKIE messages to all consumers. 2010-11-21 19:00:38 +00:00
Rein Tollevik
990d8f562f ITS#6710: Force clients to refresh if context is dirty. 2010-11-21 17:56:09 +00:00
Rein Tollevik
877fc0ab37 ITS#6709: Wait for active mods to finish before initiating new consumers. 2010-11-21 15:31:38 +00:00
Hallvard Furuseth
efcb0ad5a3 ITS#6715: Fix slap_sort_vals(attr with 1 value)
Also rearrange slightly to silence gcc -Wuninitialized, get a single
exit point, and skip the unnecessary sorting of the single value.
2010-11-19 12:21:34 +00:00
Pierangelo Masarati
9c1eae14a7 fix previous commit (ITS#6712) 2010-11-18 11:54:23 +00:00
Pierangelo Masarati
67f21784fd do not add hasSubordinates if already present (blind-fixes ITS#6712 for back-monitor) 2010-11-18 11:53:59 +00:00
Pierangelo Masarati
3dcc62503a do not add hasSubordinates if already present (blind-fixes ITS#6712 for back-sql) 2010-11-18 11:51:15 +00:00
Pierangelo Masarati
41858b7047 do not add hasSubordinates if already present (blind-fixes ITS#6712 for back-ndb) 2010-11-18 11:46:18 +00:00
Pierangelo Masarati
40831ba54f do not add hasSubordinates if already present (fixes ITS#6712 for back-bdb/hdb, other backends may need work) 2010-11-18 11:33:47 +00:00
Ralf Haferkamp
66fa1f6198 ITS#6693 value dependent ACL didn't work when they were the first ACL 2010-11-15 16:27:56 +00:00
Rein Tollevik
ba86259aa0 ITS#6708: Mutex protect fixing the filter. 2010-11-15 15:42:06 +00:00
Rein Tollevik
e1dfe6e911 ITS#6707: Free the presentlist (if any) before connecting. 2010-11-15 14:15:46 +00:00
Pierangelo Masarati
001b30ebc6 fix slapo-chain startup issue when using back-config, related to ITS#6540 2010-11-14 23:53:54 +00:00
Howard Chu
1e18b823a0 ITS#6699 search references must turn onelevel scope to base 2010-11-12 04:35:49 +00:00
Ralf Haferkamp
e1c2a67517 Unregister VLV control as well when last overlay instance
is removed (additional fix for ITS#6647)
2010-11-04 12:13:26 +00:00
Ralf Haferkamp
ccd5b3d52d Added -VVV to usage output 2010-11-01 15:20:39 +00:00
Ralf Haferkamp
c4d6e40ee1 List static overlays/backends when started with -VVV 2010-11-01 14:51:23 +00:00
Howard Chu
de6dbc981e ITS#6685 fix result code tag 2010-10-26 00:59:10 +00:00
Ralf Haferkamp
76c611ad42 Removed unused variables 2010-10-19 10:48:21 +00:00
Ralf Haferkamp
02753d1555 ITS#6677 moved one more #endif, addtional fix for previous commit 2010-10-19 10:47:41 +00:00
Howard Chu
2cd0b96158 ITS#6677 move #endif 2010-10-17 01:36:47 +00:00
Pierangelo Masarati
2ec0347152 set rebind proc if needed and bind succeeds (ITS#6665) 2010-10-08 22:42:55 +00:00
Pierangelo Masarati
85369497aa do not expose control until sssvlv overlay is actually instantiated at least once (ITS#6647) 2010-10-06 08:24:45 +00:00
Pierangelo Masarati
1c5d78ec95 line up with back-bdb/hdb (ITS#6661) 2010-09-30 14:27:26 +00:00
Pierangelo Masarati
55f88b5b49 do not assume sr_err == LDAP_SUCCESS; cleanup 2010-09-30 14:26:56 +00:00
Pierangelo Masarati
3ae8934f84 fix previous commit (ITS#6661) 2010-09-30 12:51:15 +00:00
Pierangelo Masarati
e04ff8fbf1 (blind) fix for ITS#6661 2010-09-29 16:34:36 +00:00
Pierangelo Masarati
aecd2f33d6 o_pagedresults_state not freed from slab (only noticeable when built with SLAP_NO_SL_MALLOC; could be related to ITS#6660, although unlikely) 2010-09-28 19:57:02 +00:00
Pierangelo Masarati
dc78654c0b make sure so is correctly initialized (spotted by valgrind, possibly related to ITS#6649) 2010-09-18 18:27:28 +00:00
Pierangelo Masarati
50a21d512f cleanup related to ITS#6565 (also plugs a leak) 2010-09-10 22:19:41 +00:00
Pierangelo Masarati
dfe1f2e572 hack to try as hard as possible to recover a broken database (ITS#6482) 2010-09-09 21:49:04 +00:00
Pierangelo Masarati
1760501cea add per-target tls options; start tls if required by idassert (ITS#6642) 2010-09-09 01:30:19 +00:00
Pierangelo Masarati
aa63f21e4f cleanup previous commit 2010-09-09 00:57:04 +00:00
Pierangelo Masarati
fa7d65bbbe minor cleanup 2010-09-09 00:56:22 +00:00
Pierangelo Masarati
65b042b4fb if required by the bindconf configuration, force TLS (partially addresses ITS#6642) 2010-09-09 00:12:01 +00:00
Pierangelo Masarati
00efc1c507 check return code (ITS#6643) 2010-09-08 17:31:50 +00:00
Pierangelo Masarati
79d4e4cf6a add support for ADD_IF_NOT_PRESENT and SOFTDEL internal modification types (ITS#6561) 2010-09-07 13:21:20 +00:00
Pierangelo Masarati
856f1b401a allow '-o value-check={yes|no}' for optional value checking, disabled in quick mode (ITS#6592) 2010-09-07 05:47:55 +00:00
Pierangelo Masarati
34f4f38acc cleanup option parsing 2010-09-07 05:45:36 +00:00
Pierangelo Masarati
c405143a0a ignore undefined attrs (ITS#6600, based on patch by Jonathan CLARKE) 2010-09-07 02:03:23 +00:00
Pierangelo Masarati
c78014bc5d make sure callback is freed (ITS#6640) 2010-09-07 02:01:35 +00:00
Pierangelo Masarati
938778ffd9 free controls, if needed (ITS#6629) 2010-08-29 17:23:08 +00:00
Pierangelo Masarati
8be2af29bb plug leak when ARG_OFFSET and ARG_BERVAL (ITS#6634) 2010-08-29 16:28:16 +00:00
Pierangelo Masarati
9146659c6c plug leak when presence filter with undef attr (ITS#6635) 2010-08-29 16:27:08 +00:00
Pierangelo Masarati
eb11ba008c let the error propagate to overlays (ITS#6633) 2010-08-29 15:35:47 +00:00
Pierangelo Masarati
df2573b4a9 hacks ITS#6632 2010-08-29 08:08:42 +00:00
Pierangelo Masarati
15d737badb fix potential leak introduced by fix to ITS#6574 2010-08-29 00:35:49 +00:00
Kurt Zeilenga
81912bd377 Remove extraneous ber_peek_tag() call 2010-08-27 21:44:00 +00:00
Pierangelo Masarati
3e2ca2f8b2 support back-config (ITS#6624, Ondrej Kuznik) 2010-08-17 18:56:29 +00:00
Pierangelo Masarati
672e87776a fix previous commit (ITS#6611) 2010-08-17 01:05:40 +00:00
Pierangelo Masarati
ab4f21d5a0 fix buffer overflow in ACL unparse (ITS#6611) 2010-08-17 00:54:11 +00:00
Pierangelo Masarati
abc5b002a7 blind fix for ITS#6621 2010-08-13 00:55:57 +00:00
Pierangelo Masarati
f6a693a4ed (blind) support for long long keys (ITS#6617; needs ITS#6622 patch) 2010-08-12 23:33:54 +00:00
Pierangelo Masarati
4a8d873529 fix function name in logs 2010-08-12 22:44:10 +00:00
Pierangelo Masarati
bca5e0ed1e (blind) addition of 'autocommit' configuration statement (ITS#6612) 2010-08-10 19:55:28 +00:00
Pierangelo Masarati
4fbbedcf29 quick fix for ITS#6616; root cause not clear yet 2010-08-07 22:34:36 +00:00
Pierangelo Masarati
7c19cf6547 minor cleanup 2010-08-07 22:32:59 +00:00
Pierangelo Masarati
41fe685d35 improve ID logging when arbitrary key is set (almost blind fix; compiles in both cases) 2010-08-07 22:30:53 +00:00
Howard Chu
5cf46a8820 Fix up winsock init 2010-08-06 03:32:42 +00:00
Howard Chu
8cddd34852 Add support for multiple listener threads. Lightly tested on Linux,
Winsock needs a couple more tweaks
2010-08-06 03:24:24 +00:00
Howard Chu
a8ffb63331 Better fix - avoid allocating callback for non-logged mod ops 2010-08-04 08:50:29 +00:00
Howard Chu
21d299e370 More for ITS#6608 - don't replicate ppolicy state changes on replicas 2010-08-04 08:14:59 +00:00
Howard Chu
9434a7d676 ITS#6608 don't update mod opattrs on single-master slaves 2010-07-28 02:43:21 +00:00
Howard Chu
7e7f24f13f ITS#6606 send error if consumer is newer than provider 2010-07-28 02:21:27 +00:00
Pierangelo Masarati
22e5e49f26 use request/referral DN, scope, filter according to RFC4511 (related to ITS#6565) 2010-07-22 19:17:20 +00:00
Howard Chu
c7305c4133 Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax 2010-07-12 03:20:57 +00:00
Howard Chu
ce11612e9b Add SLAP_SYNTAX_DN syntax flag 2010-07-12 03:17:02 +00:00
Pierangelo Masarati
08763f42ed cleanup connection release 2010-07-03 01:09:17 +00:00
Ralf Haferkamp
beb536298d use be_ctrls[cid] for counting the number of overlay instances that have
registered the control for a specific BackendDB to make sure that
the control is unregistered only after the last instance calls
overlay_unregister_control().
2010-07-02 11:31:34 +00:00
Ralf Haferkamp
81dcd3ca58 Fixed last commit. gcc was complaining about defined behavior. 2010-07-02 07:43:29 +00:00
Howard Chu
3b2cef17eb ITS#6577 real fix: keep dn2id cursor open until we re-acquire lock
on entryInfo, otherwise BDB locks in reader txn are released too soon
2010-07-01 16:38:32 +00:00
Ralf Haferkamp
c4f0c2cc2b unregister controls when removing syncprov, ppolicy, valsort, chain or
sssvlv overlay
2010-07-01 11:51:43 +00:00
Ralf Haferkamp
7f70a7aad6 New call to unregister controls registered form overlays 2010-07-01 11:28:47 +00:00
Ralf Haferkamp
b435efa694 new call unregister_supported_control(), will be
needed for cn=config delete support
2010-06-30 12:38:01 +00:00
Pierangelo Masarati
14fcbf4cfc implement unload_extop for symmetry (needs test) 2010-06-30 00:22:01 +00:00
Howard Chu
f12290c64f move slap_graduate_commit_csn() to after entry lock is released 2010-06-30 00:00:59 +00:00
Ralf Haferkamp
21bac1cbed Disallow removing global and cn=config overlays for now.
Those require some special handling.
2010-06-29 16:23:31 +00:00
Pierangelo Masarati
a6ab844c17 cleanup previous commit (ITS#6581) 2010-06-26 04:44:06 +00:00
Pierangelo Masarati
9785c24661 return error (ITS#6581) 2010-06-24 19:26:22 +00:00
Quanah Gibson-Mount
8d30f419d6 dyngroup schema in LDIF format 2010-06-24 01:04:40 +00:00
Pierangelo Masarati
6e2422d97d cleanup previous commit 2010-06-23 17:44:56 +00:00
Ralf Haferkamp
7b2dc4c059 Send error to active psearches upon overlay removal 2010-06-23 16:34:25 +00:00
Pierangelo Masarati
cec460d3ee make sure non-anonymous bind uses DN and creds (ITS#6574) 2010-06-23 00:13:50 +00:00
Pierangelo Masarati
e338733c97 don't risk leaving around client library error codes; try to return additional information 2010-06-22 23:26:06 +00:00
Pierangelo Masarati
1242443553 don't risk leaving around client library error codes 2010-06-22 23:10:48 +00:00
Pierangelo Masarati
127c533853 use realloc 2010-06-21 20:24:20 +00:00
Howard Chu
e43f0a2cf0 Fix rewriterule, free rewrite info in syncinfo_free 2010-06-21 18:01:29 +00:00
Howard Chu
995c4c5bb3 Fix prev commit, return NULL if rewrite returns original DN 2010-06-21 17:26:50 +00:00
Howard Chu
bdf52f4fc4 ITS#6577 potential fix, found using valgrind/drd. please test. 2010-06-20 21:28:04 +00:00
Howard Chu
6ee6739b48 Add suffixmassage processing 2010-06-19 03:15:41 +00:00
Howard Chu
bc82f314c3 Add config support for suffixmassage. Note - no actual massage code
present in this commit.
2010-06-19 01:29:39 +00:00
Howard Chu
9a0e94b4dc More for ITS#6572, fix copy/paste error 2010-06-17 22:05:33 +00:00
Howard Chu
8a197d1a6c Don't set bi_db_config since we have no config options 2010-06-13 22:02:15 +00:00
Howard Chu
28072167c7 ITS#6572 zero out freed DN vals. from mbackes@symas.com 2010-06-13 18:47:21 +00:00
Howard Chu
004540b360 ITS#6570 part #1 (again), reject RDNs with binary BER values 2010-06-07 00:02:32 +00:00
Howard Chu
007cd13010 ITS#6570 part #2, reject RDNs with empty values 2010-06-06 23:22:07 +00:00
Howard Chu
ea138247b3 ITS#6570 part #1 2010-06-06 20:32:53 +00:00
Howard Chu
c8c3847103 ITS#6566 use Debug, not fprintf(stderr) 2010-06-02 00:18:32 +00:00
Pierangelo Masarati
d43cabbcc1 make sure bind credentials are consistent 2010-05-24 22:22:53 +00:00
Howard Chu
a07d3630cb Quit send loops if slapd is shutting down 2010-05-21 17:47:17 +00:00
Ralf Haferkamp
a06696a1ef During the refresh phase the sync filter needs to be adjusted (skipping
the "(entrycsn>=cookie)" part that was inserted) when checking whether a
change needs to be replicated, otherwise we lose DELETES that happen during
the refresh phase (ITS#6555).
2010-05-20 17:08:28 +00:00
Howard Chu
c45fca65fc Init uninit'd vlv flag 2010-05-18 07:35:12 +00:00
Pierangelo Masarati
ba507dc27b try harder to compute hasSubordinates (ITS#6549) 2010-05-18 02:18:48 +00:00
Ralf Haferkamp
5743591419 Reset BackendInfo to original value after checkpoint. Plugs a memory leak
when deleting the syncprov overlay from a database (when compiled with
-DSLAP_CONFIG_DELETE)
2010-04-29 15:47:27 +00:00
Howard Chu
6273df07da ITS#6533 put rid first, in front of url 2010-04-26 12:07:08 +00:00
Pierangelo Masarati
68257f6c5c log rid when syncrepl stanza successfully added (ITS#6533) 2010-04-25 17:49:37 +00:00
Pierangelo Masarati
3a28608f0d allow successful binds to return control responses (ITS#6530) 2010-04-22 18:18:15 +00:00
Pierangelo Masarati
2189d8d4cb add slapmodify (ITS#6165; may need cleanup) 2010-04-20 06:00:16 +00:00
Quanah Gibson-Mount
fa428ed259 Agreed upon log messages for sl_malloc/zn_malloc when falling back 2010-04-19 22:55:51 +00:00
Pierangelo Masarati
993d377b68 remove redundant logs (underlying backends already log enough) 2010-04-18 18:42:44 +00:00
Pierangelo Masarati
c939422ae5 alreadyExists is a legitimate result code (further improve ITS#6472 commit; also fix ITS#6528) 2010-04-18 17:11:29 +00:00
Pierangelo Masarati
4480b22a91 don't use dangling stack pointers (more on ITS#6472 fix) 2010-04-18 06:53:22 +00:00
Pierangelo Masarati
8025becf91 fix syncrepl when attr has no matching rule (ITS#6458) 2010-04-18 05:37:36 +00:00
Pierangelo Masarati
a9990e8914 fix out of order add/rename, when rename to newly added new superior occurs while consumer is offline (ITS#6472) 2010-04-17 21:59:35 +00:00
Pierangelo Masarati
71a11b44e8 fix memory handling in rewrite parsing (ITS#6526) 2010-04-17 16:29:34 +00:00
Pierangelo Masarati
467a1da79f add support for don't use copy in SASL auxprops lookup/store (ITS#6475; TODO: document new directives) 2010-04-15 18:13:53 +00:00
Pierangelo Masarati
9d2e03f052 allow to specify a per-database list of attributes that need to be always collected, even if not explicitly requested by clients (addresses ITS#6513) 2010-04-15 05:26:21 +00:00
Pierangelo Masarati
a3a603eca6 malloc as much as possible on slab 2010-04-15 05:11:23 +00:00
Pierangelo Masarati
bbe7272c7f allow strict adherence to RFC4370 wrt/ control criticality (ITS#6523) 2010-04-14 21:37:03 +00:00
Pierangelo Masarati
ed92b02856 properly initialize acl_attrval_style (ITS#6520) 2010-04-14 17:01:39 +00:00
Howard Chu
68ce33cd77 ITS#6519 don't replicate purge deletes 2010-04-13 23:28:35 +00:00
Kurt Zeilenga
3dadeb3efe happy belated New Year 2010-04-13 22:17:29 +00:00
Pierangelo Masarati
6632ea601f use slab memory as much as possible 2010-04-13 05:03:34 +00:00
Pierangelo Masarati
9702081201 handle ordered values as appropriate (ITS#6516) 2010-04-12 18:01:37 +00:00
Pierangelo Masarati
5564ee0173 don't free before use 2010-04-12 16:24:01 +00:00
Pierangelo Masarati
f57a216f1c use slab allocation 2010-04-12 07:44:56 +00:00
Pierangelo Masarati
32048a5128 fix previous commit 2010-04-12 02:28:40 +00:00
Pierangelo Masarati
2355fb516a backout unintended commit commit 2010-04-12 00:08:11 +00:00
Pierangelo Masarati
0dc3a13c01 fix previous commit 2010-04-12 00:06:45 +00:00
Pierangelo Masarati
f75825881a honor X-ORDERED in olcDbIdAssertAuthzFrom; add olcDbIdAssertPassthru (ITS#6456); note: breaks binary compatibility with module back-meta.la 2010-04-09 22:47:55 +00:00
Pierangelo Masarati
81469d0ff1 more on ITS#6507 2010-04-08 19:51:18 +00:00
Pierangelo Masarati
a6298f97fc keep attrs count consistent (ITS#6508) 2010-04-08 17:24:44 +00:00
Pierangelo Masarati
a53019e688 don't set dummy cookie when dealing with last database (ITS#6507) 2010-04-08 17:16:38 +00:00
Pierangelo Masarati
cd5dda252a don't mix code and declarations 2010-04-08 00:27:18 +00:00
Pierangelo Masarati
de84e6a09d do not assume that someone parsed the paged results response; in case, re-parse (ITS#6507) 2010-04-07 00:53:36 +00:00
Pierangelo Masarati
5da876f5fc make sure cookies are set/reset as appropriate when a page ends at database boundaries (ITS#6507) 2010-04-06 22:04:58 +00:00
Pierangelo Masarati
bd3414e724 detect misplaced entries in glued databases (ITS#6506) 2010-04-06 20:33:05 +00:00
Pierangelo Masarati
8e96d76a95 rework temporary malloc of glued controls (fixes ITS#6504); fix glued paged results 2010-04-02 19:15:42 +00:00
Howard Chu
c99d8465b7 ITS#6501 zero lockobjs 2010-03-31 06:22:06 +00:00
Pierangelo Masarati
063c844b2a increment counter (ITS#6497) 2010-03-23 20:33:06 +00:00
Pierangelo Masarati
b8472e3756 handle valid non-entry internal search responses (ITS#6481) 2010-03-22 21:50:32 +00:00
Pierangelo Masarati
7ca6247395 check for NULL backend (ITS#6490) 2010-03-22 21:48:25 +00:00
Howard Chu
7cec659d74 Fix prev commit 2010-03-13 21:41:51 +00:00
Howard Chu
968663d6e4 Fix for CB_TAIL with cached results 2010-03-10 22:25:42 +00:00
Howard Chu
6dc52cc91d ITS#5195 - use connection's ssf for auxprop lookup 2010-03-04 00:16:49 +00:00
Howard Chu
e85ca5d49a ITS#6484 don't bypass other overlays' entry_release handler 2010-03-03 23:36:29 +00:00
Howard Chu
47f1c8c887 ITS#6473 fail delta-sync when unknown attrs are received 2010-03-02 21:45:25 +00:00
Howard Chu
f992b66f05 ITS#6484 - cache DB needs to release its own entries 2010-03-02 21:29:32 +00:00
Pierangelo Masarati
0394c805ab ignore non-critical control with unrecognized flags (ITS#6480) 2010-02-22 21:53:38 +00:00
Pierangelo Masarati
d85e24dfa3 fix return 2010-02-17 20:08:07 +00:00
Ralf Haferkamp
5ceb2cd4e0 ITS#6467, use memcpy instead for strcpy when copying across array
boundaries. To account for stricter checks when using -D_FORTIFY_SOURCE=2
with GCC 4.5
2010-02-15 15:25:47 +00:00
Pierangelo Masarati
3cd65c0a5d reduce code duplication 2010-02-12 08:55:34 +00:00
Ralf Haferkamp
bca52e1b18 ITS#6469, don't touch op_attrs when updatedn is modifying contextCSN 2010-02-05 11:49:49 +00:00
Howard Chu
32feda4478 Add pbind proxybind overlay. Just intercepts Bind requests on a regular DB
and proxies them to a remote server.
2010-02-04 01:59:58 +00:00
Howard Chu
66a58ae93a ConnTTL, NetworkTimeout, and ProtocolVersion were missing from the
config OC, thus inaccessible from cn=config
2010-02-04 01:02:51 +00:00
Rein Tollevik
1af4e43236 ITS#6468: Implement bi_access_allowed. 2010-02-02 15:51:32 +00:00
Ralf Haferkamp
1a9ef3b4ea ITS#6465, don't unparse empty uri string 2010-02-02 14:43:21 +00:00
Howard Chu
0e16b2ea55 ITS#6466 certificateListValidate: Empty Sequence-of is legal 2010-01-30 23:32:50 +00:00
Ralf Haferkamp
837320eaac plugged one time memory leak (found with valgrind) 2010-01-22 18:01:25 +00:00
Ralf Haferkamp
9e3517595d Plugged memory leak. Syncentry wasn't free'd when sending
LDAP_SYNC_NEW_COOKIE intermediate results. (ITS#6459)
2010-01-21 13:33:21 +00:00
Pierangelo Masarati
0cf528630f implement support for selective iteration in slaptools (ITS#6442) 2010-01-18 15:00:40 +00:00
Hallvard Furuseth
d58f4ff849 Gentler message when falling back to ch_malloc 2010-01-15 18:53:13 +00:00
Howard Chu
b8a1da95a2 dn2id_lock is no longer needed 2010-01-11 22:14:15 +00:00
Rein Tollevik
fdd2c3a5a7 ITS#6441 cyrus-sasl 2.1.24 auxprop_lookup plugin returns status. 2010-01-06 13:55:35 +00:00
Hallvard Furuseth
644506db6b ITS#6437: Fix pool version misalignment: It aligned heads, not returned blocks 2010-01-05 23:31:14 +00:00
Hallvard Furuseth
705bd5bf40 ITS#6437, move structs slab_object and slab_heap from slap.h to sl_malloc.c 2010-01-05 23:14:14 +00:00
Hallvard Furuseth
1af33a46c9 ITS#6437, save space: Do not allocate the tail, except if size==0.
Store a tail only in freed blocks.  (Alignment ensures there will
be room.)  Put the freed mark in next block's head.
2010-01-05 22:11:24 +00:00
Hallvard Furuseth
d515f24255 ITS#6437 cleanup (noop patch): Join SLAP_NO_SL_MALLOC code with identical
ctx==NULL code.  Add enum No_sl_malloc to avoid #ifdef SLAP_NO_SL_MALLOC.
2010-01-05 19:40:28 +00:00
Hallvard Furuseth
5d883c044a ITS#6437, follow up previous fixes:
Ensure Align >= sizeof(ber_len_t), to clarify the code's requirements.
Rearrange a slap_sl_malloc() branch to factor out ch_malloc fallbacks.
Fix range check (ptr+size >= endptr) -> (size >= endptr-ptr).  Fix debug msg.
2010-01-05 19:25:28 +00:00
Howard Chu
0c195fc013 ITS#6438 check for redundant syncops_free() ? 2010-01-05 03:50:10 +00:00
Hallvard Furuseth
40017c3874 Add comments 2010-01-02 23:42:31 +00:00
Hallvard Furuseth
4e66da4ec1 ITS#6437, slap_sl_calloc():
Check count*size overflow. Omit slap_sl_malloc failure check, it cannot fail.
2010-01-02 22:53:22 +00:00
Hallvard Furuseth
423c13a6d6 ITS#6437, failure/fallback/debug handling:
slap_sl_malloc could return failure. Exit instead, like the rest of sl_malloc.
Since we increase size, reduce it before Debug() and/or fallback to ch_malloc.
Debug() before exit() on failure.  Tweak debug formats and a comment.
2010-01-02 22:41:41 +00:00
Hallvard Furuseth
46b99131cb ITS#6437 cleanup (noop change):
Move thread/nothread code to macros SET_MEMCTX()/GET_MEMCTX().
Rename some thread/memory contexts 'ctx' to thrctx/memctx to avoid confusion.
2010-01-02 22:03:48 +00:00
Hallvard Furuseth
cc58227437 ITS#6437, fixes for stack implementation of slap_sl_realloc():
Preserve 2*int alignment on hosts where sizeof(int) == sizeof(ber_len_t).
If realloc of last block falls back to ch_malloc, free last block properly.
Fix range check (ptr + size < endptr) --> (size < endptr - ptr).
2010-01-02 21:39:46 +00:00
Hallvard Furuseth
5b164ba74c ITS#6437: Fix alignment after slap_sl_realloc().
Also use -Align instead of ~pad: Valid also for non-twos complement.
2010-01-02 21:05:11 +00:00
Hallvard Furuseth
4c36193a5c ITS#6437 cleanup (noop change): Simplify slap_sl_free() code reclaiming space 2010-01-02 18:42:33 +00:00
Hallvard Furuseth
d8d00ec45c ITS#6437 cleanup (noop change): Compute pad,order_start at compile time 2010-01-02 18:27:51 +00:00
Hallvard Furuseth
062021e731 ITS#6437, slap_sl_mem_create():
Bugfix: Switching implementation stack<->pool on an old context could
        crash or leak, it ran the wrong implementation's cleanup code.
Cleanup:  Factor out identical stack/pool code.  Call
          slap_sl_mem_destroy(NULL,) instead of copying its pool code.
API change: slap_sl_mem_destroy(key=NULL,) gets a new meaning.  Does
            not affect current OpenLDAP code, it never passed NULL.
2010-01-02 18:05:56 +00:00
Howard Chu
7946c100a4 ITS#6322 cleanup close_listeners() 2009-12-30 20:33:27 +00:00
Pierangelo Masarati
ade09a57da allow direct insert/delete of olcRwmMap (ITS#6436) 2009-12-21 18:58:21 +00:00
Pierangelo Masarati
0329d982a2 better fix to ITS#6434 (olcRwmMap needs work to allow atomic mods) 2009-12-21 17:32:05 +00:00
Rein Tollevik
874d7001cc ITS#6435: Added optional SLAP_SCHEMA_EXPOSE define. 2009-12-21 17:28:45 +00:00
Pierangelo Masarati
8ddb160ae8 fix in-database configuration of olcRwmMap (no ITS# yet) 2009-12-20 18:31:08 +00:00
Pierangelo Masarati
2047a0d784 plug one-time leaks 2009-12-18 19:07:16 +00:00
Hallvard Furuseth
703571f736 ITS#6403: do not require *ent == NULL on entry to null_back_entry_get() 2009-12-16 09:12:48 +00:00
Ralf Haferkamp
8542dfd6d7 declaration after code (introduced by ITS#6428 fix) 2009-12-11 18:09:47 +00:00
Hallvard Furuseth
198634e945 Fix typo in last commit (ITS#5340: REP_ENTRY_MUSTFLUSH) 2009-12-10 19:54:57 +00:00
Hallvard Furuseth
904ba0d317 Fix rev 1.403 (ITS#6428): C90 does not accept mixed declarations and code 2009-12-10 19:53:10 +00:00
Ralf Haferkamp
8133ec8b21 ITS#6428 fixes for olcTimeLimit 2009-12-10 14:57:12 +00:00
Ralf Haferkamp
414230c469 global limits can also be set in "cn=config" (more forITS#6428) 2009-12-10 14:22:26 +00:00
Ralf Haferkamp
c3de6ba19b apply frontend limits when deleting olcSizeLimit from a database (more forITS#6428) 2009-12-10 13:07:13 +00:00
Ralf Haferkamp
a0540f187c ITS#6428 apply global sizelimit changes to all databases 2009-12-10 11:56:52 +00:00
Hallvard Furuseth
1a7b18bcca ITS#5340: REP_ENTRY_MUSTFLUSH, rs_replace_entry(), rs_ensure_entry_modifiable() 2009-12-10 00:07:34 +00:00
Howard Chu
12affea4ac ITS#6425 fix uninit'd vars 2009-12-09 00:04:58 +00:00
Pierangelo Masarati
85621c882a guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (related to ITS#6423) 2009-12-08 20:53:39 +00:00
Pierangelo Masarati
48b8970dad issue a useful error message 2009-12-08 19:49:15 +00:00
Pierangelo Masarati
173873172c guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (ITS#6423) 2009-12-08 19:36:10 +00:00
Pierangelo Masarati
40065adb4d remove REP_ENTRY_MUSTRELEASE when copying (ITS#6423) 2009-12-08 18:47:17 +00:00
Howard Chu
c79267b88a Fix unparse in prev commit 2009-12-08 11:59:29 +00:00
Howard Chu
25a4e7806a ITS#6419 also init for ldaps:// URIs 2009-12-08 11:50:39 +00:00
Pierangelo Masarati
2c1c200662 log about invalid URI (more about ITS#6421) 2009-12-08 01:34:22 +00:00
Pierangelo Masarati
db852e4378 handle simple filters with no brackets (ITS#6421) 2009-12-08 00:17:25 +00:00
Howard Chu
dba33ec04c ITS#6419 starttls keyword should trigger bindconf TLS settings 2009-12-07 20:06:54 +00:00
Howard Chu
7c9e4df765 ITS#6412, refix #6304 - only check for writes if sockbuf NEEDS_WRITE 2009-12-04 02:44:00 +00:00
Hallvard Furuseth
300bba05e8 ITS#6414: Do not write outside database directory.
Also rename misnamed dn2path() to ndn2path() with different prototype.
2009-12-03 23:20:39 +00:00
Rein Tollevik
6c406f1737 ITS#6413 Ensure task don't get queued while being freed after config change. 2009-12-03 21:56:48 +00:00
Howard Chu
8373d9f9fc ITS#6408, fix r1.265 (from ITS#4884) - use correct ce_type 2009-12-01 22:21:18 +00:00
Hallvard Furuseth
07e5a4dda5 Silence warning in initializer 2009-11-30 14:07:12 +00:00
Hallvard Furuseth
ca563787ad Silence "maybe uninitialized" warning (eprev after 0 iterations, cannot happen) 2009-11-30 14:00:18 +00:00
Howard Chu
111b27cfd4 ITS#6270, refix patch from ITS#5511 2009-11-30 06:07:22 +00:00
Hallvard Furuseth
492b2cda2b ITS#6403: reset 'entry' output argument to overlay_entry_get_ov() 2009-11-29 19:53:01 +00:00
Howard Chu
3b2380254a ITS#6400 clarify... 2009-11-24 03:41:24 +00:00
Howard Chu
fae4df1ed6 more for #6397 2009-11-23 22:17:25 +00:00
Howard Chu
e72e0507f8 ITS#6397 cleanup psearch if cookie is stale 2009-11-23 22:13:42 +00:00
Hallvard Furuseth
bbd238e38b ITS#6398: plug memory leak of confdir 2009-11-23 21:52:11 +00:00
Hallvard Furuseth
da747ed63a Fix rev 1.200 commit: C90 forbids mixed declarations and code 2009-11-23 16:04:00 +00:00
Howard Chu
e3c01a32f8 Revert pending CSN if the update fails 2009-11-22 19:30:50 +00:00
Pierangelo Masarati
1cf63599fe revert previous commit 2009-11-22 19:09:24 +00:00
Howard Chu
faddd86f54 Revert prev commit, simpler fix... 2009-11-22 17:43:48 +00:00
Pierangelo Masarati
78a6a16615 silence signedness warnings 2009-11-22 14:58:18 +00:00
Pierangelo Masarati
f59337655e use keepalive stuff when connecting as a client via bindconf (second part of ITS#6389) 2009-11-22 13:05:58 +00:00
Pierangelo Masarati
14c3f7de57 allow parsing/unparsing of keepalive stuff in bindconf (first part of ITS#6389) 2009-11-22 12:51:45 +00:00
Pierangelo Masarati
1970251bb7 check result of str2filter; syncrepl: can be broken; retcode: can't; pcache: shouldn't (ITS#6391) 2009-11-22 11:57:17 +00:00
Howard Chu
993fbf4514 Short-circuit backend_operational; sent entry's e_private doesn't belong
to the backend any more
2009-11-22 04:43:34 +00:00
Howard Chu
c365ac359e ITS#6368 use dup'd entries in response queue 2009-11-22 04:42:00 +00:00
Howard Chu
77680f78a8 ITS#6394 partially revert ITS#5108. Use RID_MAX, as originally designed. 2009-11-22 00:08:52 +00:00
Pierangelo Masarati
c315ede9d5 connid is unsigned; offset real conns by maxrid + 1 2009-11-21 21:44:45 +00:00
Howard Chu
2fd6d4749a Cleanup pointless compare in debug msgs 2009-11-21 21:34:33 +00:00
Pierangelo Masarati
39f0d79485 use macros for fake connid 2009-11-21 21:02:49 +00:00
Howard Chu
4105ee462d ITS#6393 syncrepl internal connids are now <= -1000 2009-11-21 20:22:18 +00:00
Howard Chu
650ebba22b Fix prev commit 2009-11-21 11:54:59 +00:00
Howard Chu
4bdc6fcbc9 in op_response, rearrange contextCSN update checks 2009-11-21 11:43:01 +00:00
Howard Chu
75d1e515ee in updateCookie, no-op if nothing changed 2009-11-21 11:38:42 +00:00
Howard Chu
9992d5c43a Ignore attempts to Add cn=schema,cn=config 2009-11-21 07:13:48 +00:00
Howard Chu
f664cbfb4c Use unique IDs for fake syncrepl connections 2009-11-21 06:54:58 +00:00
Howard Chu
c6de7bf853 ITS#6392 fix authid-rewrite parsing 2009-11-21 04:44:51 +00:00
Howard Chu
572e16883c Braindead serialization for #6368/test050 2009-11-21 04:14:40 +00:00
Howard Chu
af0d762c1c Mostly revert prev commit, broke test054 2009-11-21 03:38:13 +00:00
Howard Chu
ae5af832db Always log outgoing cookie, just use op->o_csn instead of commit_csn since
all responses are now serialized.
2009-11-21 02:37:53 +00:00
Howard Chu
3dd04151f5 Always log rid with incoming cookie 2009-11-21 02:34:10 +00:00
Howard Chu
60d83e06b8 Fix typo in 1.487 2009-11-20 23:20:37 +00:00
Howard Chu
d283f02c45 Fix prev commit 2009-11-20 22:52:47 +00:00
Howard Chu
2aadfa5d86 Reject old ops based on pending ops, not just committed ops 2009-11-20 22:47:48 +00:00
Howard Chu
2f351f964d Move connection state enums to slap.h to ease debugging 2009-11-19 11:24:14 +00:00
Howard Chu
198cbd6ea8 ITS#6368 partially revert 1.273, always check for skips, not just on
first matchops call
2009-11-19 11:17:53 +00:00
Howard Chu
ddfe3cde10 ITS#6387 plug leaks 2009-11-18 23:58:39 +00:00
Howard Chu
ffb06848ff ITS#6368 add another call to check_syncprov to make sure cookie is fresh 2009-11-18 22:06:02 +00:00
Howard Chu
42e56b95d5 Don't allow any other jobs if a -q job is active 2009-11-18 21:08:48 +00:00
Pierangelo Masarati
272abc5561 don't test a NULL BackendDB * (ITS#6385) 2009-11-18 09:51:49 +00:00
Pierangelo Masarati
1ec443df53 trim unnecessary test 2009-11-16 10:02:47 +00:00
Pierangelo Masarati
3768fbbd30 warn if retry is not forever 2009-11-16 09:58:12 +00:00
Pierangelo Masarati
70a71edffb trim unwanted commit 2009-11-16 09:55:27 +00:00
Howard Chu
99381a43e1 ITS#6304 retry if tls_accept() returns 1 2009-11-15 22:39:35 +00:00
Howard Chu
4cabc24269 ITS#6363 cleanup prev commit 2009-11-15 21:36:23 +00:00
Howard Chu
c419a3e4f7 ITS#6367 use correct SID in our request cookie 2009-11-15 19:15:12 +00:00
Howard Chu
fbe532b099 Use sl_mfunc instead of direct reference to slap_sl_free 2009-11-15 19:13:51 +00:00
Pierangelo Masarati
07dc23f5ee treat bervals as bervals (related to ITS#6378,ITS#6379) 2009-11-15 18:26:53 +00:00
Howard Chu
ff98f4abc5 Use fake_init2 in db_open/db_close since they can execute from a
back-config operation (and could wipe out the state otherwise)
2009-11-15 10:38:13 +00:00
Howard Chu
68ab1a2272 Cleanup 2009-11-15 10:34:10 +00:00
Howard Chu
cd99d851a2 Fix uninit'd var 2009-11-15 08:59:56 +00:00
Howard Chu
c9d86af0ba Fix 1.49 sl_realloc 2009-11-15 03:02:09 +00:00
Howard Chu
1eebd22151 Add a note about sl_malloc stack-based behavior 2009-11-14 23:25:14 +00:00
Howard Chu
3fbbd8ea3f Mark freed regions so they can be reclaimed 2009-11-14 23:20:44 +00:00
Howard Chu
67edd75e48 Cleanup for #6373 2009-11-14 21:53:06 +00:00
Howard Chu
b800bd4729 ITS#6377, fix rev 1.478 2009-11-14 21:25:11 +00:00
Pierangelo Masarati
9cfa465107 handle embedded '\0' (ITS#6379) 2009-11-14 16:45:13 +00:00
Howard Chu
dd2f158b52 Fix prev commit 2009-11-14 09:35:23 +00:00
Howard Chu
fe911c5960 ITS#6376 plug potential leak 2009-11-14 09:34:29 +00:00
Howard Chu
d6fbe1c7ca ITS#6361 remove asserts 2009-11-13 23:48:51 +00:00
Howard Chu
480d306186 ITS#6373 fix subentry keyword 2009-11-11 04:09:26 +00:00
Howard Chu
3f9e8eeeec ITS#6373 more for subentry creation 2009-11-11 04:03:27 +00:00
Howard Chu
9ad558b78c ITS#6373 create subentry if missing 2009-11-11 03:36:46 +00:00
Howard Chu
46a97b9204 ITS#6373 sync_use_subentry support 2009-11-11 03:19:01 +00:00
Howard Chu
1e85952843 ITS#6373 add sync_use_subentry keyword 2009-11-11 03:06:32 +00:00
Howard Chu
6355380ee1 Use OperationBuffer for fake op 2009-11-11 03:05:31 +00:00
Howard Chu
a48e329fc8 ITS#6373 revert 2009/03/10 commit, resurrect sync subentry code 2009-11-11 03:01:48 +00:00
Howard Chu
dda8ccd8d5 ITS#6309 tweak invalid dn logmsg 2009-11-11 01:42:00 +00:00
Howard Chu
2a334baba6 ITS#6372 make wake_sds non-blocking 2009-11-11 00:21:03 +00:00
Pierangelo Masarati
17a185b32a unparse checkpoint time in minutes (ITS#6370) 2009-11-10 19:02:33 +00:00
Ralf Haferkamp
9d0c7b24c6 Initialize ConfigArgs before calling config_del_vals (ITS#6363) 2009-11-05 15:38:03 +00:00
Howard Chu
f685d9e78b Clean up prev commit 2009-11-04 06:09:51 +00:00
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