Commit Graph

10077 Commits

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