Commit Graph

9205 Commits

Author SHA1 Message Date
Pierangelo Masarati
fd71fdf83e plug one-time leaks related to configuration 2007-01-27 21:15:11 +00:00
Howard Chu
f92dc7b5fa Partially revert prev commit, just omit the sl_mem_destroy 2007-01-27 18:38:24 +00:00
Pierangelo Masarati
60f48c1932 fix NULL attr value in accesslog (second bit of ITS#4821; might be made cleaner...) 2007-01-27 18:03:30 +00:00
Pierangelo Masarati
5bf79a5686 fix modify opattrs sync replication (ITS#4820; test019 can't be fixed right now) 2007-01-27 16:38:20 +00:00
Pierangelo Masarati
f5d26ed730 add helper (and cleanup) 2007-01-27 14:12:59 +00:00
Howard Chu
e6a009a43b Delete olcInclude support 2007-01-27 05:58:18 +00:00
Pierangelo Masarati
196fd6308d do not allow back-meta with no targets 2007-01-26 23:03:46 +00:00
Howard Chu
f58ea89c20 Must use case-insensitive comparisons on attr types 2007-01-26 02:18:44 +00:00
Pierangelo Masarati
6155d91143 don't return adminLimitExceeded unless LDAPv3; use largest among candidates timeouts 2007-01-26 01:59:30 +00:00
Pierangelo Masarati
cf226fb029 implement search timeout when the remote server does not respond in the specified timeout 2007-01-26 01:39:05 +00:00
Pierangelo Masarati
5a228fa87a implement search timeout when the remote server does not respond in the specified timeout 2007-01-26 00:40:54 +00:00
Pierangelo Masarati
ecc28ff57c fix cached connection taint in case of timeout 2007-01-26 00:40:05 +00:00
Howard Chu
9b5dbf9e35 Remove extraneous debug statements 2007-01-25 13:53:08 +00:00
Howard Chu
df31c884b4 Free main-thread keys in db_close, can't do it later because the env
will be gone.
2007-01-25 12:24:52 +00:00
Howard Chu
ba68a94f11 Plug global_host race condition/leak 2007-01-25 12:16:55 +00:00
Howard Chu
ea8a2894c4 Free main-thread keys in db_close, can't do it later because the env
will be gone.
2007-01-25 12:00:40 +00:00
Howard Chu
8d03970944 Fix debug args 2007-01-25 11:56:49 +00:00
Howard Chu
4b4072eb44 Use thread keys to plug slapi leak in connection_fake_init() 2007-01-25 11:55:40 +00:00
Howard Chu
2ec71598cd Don't muck with sl_mem 2007-01-25 10:33:28 +00:00
Howard Chu
540878020a Fix call to connection_fake_init, plug leak 2007-01-25 10:01:51 +00:00
Howard Chu
c49f17bfdd Check for duplicate UUIDs due to ITS#4813 patch 2007-01-25 08:35:27 +00:00
Howard Chu
0126348461 connection_fake_init can leak SLAPI extensions. 2007-01-25 07:22:39 +00:00
Howard Chu
5a263ba88f ITS#4805 plug remaining leak 2007-01-25 07:10:34 +00:00
Howard Chu
009e911a9d Listener commit broke test048, skip listener check on Hidden DBs 2007-01-25 05:57:47 +00:00
Howard Chu
183a0f3719 ITS#4810 bi_entry_get_rw() must return the entry regardless of whether
it's an alias or referral or not
2007-01-25 04:31:23 +00:00
Howard Chu
35e0956c26 Log the error code too 2007-01-25 04:10:57 +00:00
Howard Chu
7eeeaaf06d ITS#4810 log a message if be_entry_get doesn't return the entry we want 2007-01-25 04:10:18 +00:00
Howard Chu
1ce42136fb ITS#4813 don't limit the presence list to the current snapshot. add
some debug msgs for the sessionlog list.
2007-01-25 02:06:33 +00:00
Howard Chu
59ff8cc795 Don't touch any other opattrs when updating contextCSN 2007-01-24 09:29:28 +00:00
Howard Chu
d84d5e98fb ITS#4809 add reqMod attribute to modrdn records so that operational
attributes may be propagated. use them in delta-sync.
2007-01-24 09:10:37 +00:00
Howard Chu
c9dd0afdff Finish prev fix, entryUUID was getting dropped 2007-01-24 05:02:52 +00:00
Pierangelo Masarati
c635e068a2 make Solaris happy with printf of NULLs (ITS#4811?) 2007-01-23 01:30:13 +00:00
Howard Chu
11b1818b16 Partial fix for prev commit 2007-01-22 14:38:07 +00:00
Howard Chu
8b8995913c More LDIF-format schema, for test049 2007-01-22 13:43:11 +00:00
Howard Chu
b044d51709 More for syncrepl 2007-01-22 13:33:55 +00:00
Howard Chu
10942dceea Fixes for syncrepl compatibility 2007-01-22 10:53:48 +00:00
Howard Chu
c3545e6060 New modify handler, compares old and new entry and to generate deltas.
Avoids unnecessary rewrites of unchanged attributes.
2007-01-22 10:04:10 +00:00
Howard Chu
07aca1c9a6 Preliminary steps to enabling sync replication of config. Needs work.
Allow configuring a consumer on the provider that points to the provider
but is a no-op. This ensures that the consumer will continue to be a
consumer after the replication occurs.
2007-01-21 13:44:32 +00:00
Howard Chu
67b08ebe77 Don't use ldap_pvt_thread_pool_context_reset(), it interferes with
dynamic adds.
2007-01-21 13:02:05 +00:00
Howard Chu
fc30db2190 Fix - don't just generate missing cn=schema entry in memory, write it
out as well.
2007-01-21 11:22:52 +00:00
Kurt Zeilenga
3297be046b silence warnings 2007-01-19 07:31:02 +00:00
Pierangelo Masarati
814b8a1438 don't bail out if all targets are too lazy... 2007-01-18 01:13:39 +00:00
Pierangelo Masarati
02af23c4c1 allow modules to muck with connection tree and so 2007-01-18 00:02:29 +00:00
Pierangelo Masarati
7701c82b68 fix ITS#4802 2007-01-17 22:22:00 +00:00
Pierangelo Masarati
b604ef8d52 test mapped error code (ITS#4808) 2007-01-17 21:52:13 +00:00
Howard Chu
9a8b3f711e Only sort the first time 2007-01-17 10:43:37 +00:00
Howard Chu
5d4c8f86bf Fix prev commit 2007-01-17 10:02:53 +00:00
Howard Chu
ecb06964c5 Cleanup prev commit 2007-01-17 02:46:41 +00:00
Howard Chu
9898983d58 Minor tweaks, put dup EntryInfo's on free list instead of destroying them 2007-01-17 02:43:05 +00:00
Pierangelo Masarati
4b9f4c688a allow to specify the required access privileges in internal operations (ITS#4806) 2007-01-16 22:13:44 +00:00
Pierangelo Masarati
dfff749f04 fix dumb overparanoid test 2007-01-16 11:30:24 +00:00
Pierangelo Masarati
8b2e8ece5c fix leak (ITS#4805) 2007-01-15 15:02:14 +00:00
Howard Chu
1f853acfc9 Shortcut when no index info is present 2007-01-15 01:27:02 +00:00
Howard Chu
e5285894ce Keep attr list intact, glued DBs may need it 2007-01-15 01:23:02 +00:00
Howard Chu
a94c74987e ITS#4554 2007-01-15 01:20:08 +00:00
Howard Chu
5d3f3c240d ITS#4554 slapindex takes a list of attributes to index 2007-01-15 01:14:14 +00:00
Pierangelo Masarati
ee2370bf42 one more round of cached connections fixes/improvements 2007-01-13 11:51:28 +00:00
Quanah Gibson-Mount
7b503e6290 logging cleanup 2007-01-12 22:55:39 +00:00
Howard Chu
f2be5ad0e7 Log errors in delta sync 2007-01-12 09:59:15 +00:00
Howard Chu
b941856404 Set upper bound on EntryInfos, fixed at 4x Entry cachesize.
Probably should be tunable. Probably should add hit/miss counters
to monitor to assist in tuning...
2007-01-12 07:35:34 +00:00
Pierangelo Masarati
270dfe4db8 free entry in a cleaner manner (ITS#4801?) 2007-01-11 22:13:54 +00:00
Pierangelo Masarati
78362d5acf fix entry deallocation 2007-01-11 21:33:39 +00:00
Pierangelo Masarati
aba0eacaee don't list (other) structural classes 2007-01-11 20:57:43 +00:00
Pierangelo Masarati
53d6d3c957 streamline group attr specification/diagnostics 2007-01-11 20:41:43 +00:00
Pierangelo Masarati
fb2e448e87 cleanup 2007-01-11 18:57:37 +00:00
Hallvard Furuseth
8ce3f67c99 Delete unused label. 2007-01-11 12:04:49 +00:00
Hallvard Furuseth
d16754c81b Delete unused variables. 2007-01-11 12:04:22 +00:00
Hallvard Furuseth
a8eacbb355 assert expects int. (int)<nonnull ptr> can be 0. Use assert(arg!=NULL). 2007-01-11 12:03:20 +00:00
Howard Chu
5bcd9243f2 Don't zero out attr value flags 2007-01-10 20:48:37 +00:00
Kurt Zeilenga
3cdba151ad trim listed modules 2007-01-10 01:57:26 +00:00
Pierangelo Masarati
fc20e15556 further cleanup 2007-01-10 00:53:05 +00:00
Howard Chu
a2e299eb22 ITS#4799 remove kerberos / kbind 2007-01-10 00:23:28 +00:00
Howard Chu
15eb08e562 ITS#4799 additional patches 2007-01-10 00:19:24 +00:00
Howard Chu
c2bba7e258 ITS#4799 remove kbind references. (kind of moot, since slurpd
itself is also deprecated...)
2007-01-09 23:55:13 +00:00
Pierangelo Masarati
e79580d203 disallow invalid per-syntax shortcuts 2007-01-09 15:33:54 +00:00
Pierangelo Masarati
3042c57ac0 allow forcing abandon of search operations on a connection basis 2007-01-09 12:19:04 +00:00
Pierangelo Masarati
b73915d36f fix build without TLS 2007-01-09 12:17:46 +00:00
Howard Chu
afabf44493 Fix prev commit 2007-01-09 02:09:44 +00:00
Howard Chu
99a1d0f979 Fix TLS parsing 2007-01-09 01:35:31 +00:00
Pierangelo Masarati
e2d65fb69b fix previous commit(s) 2007-01-09 00:59:17 +00:00
Howard Chu
a6a8fb514b Add TLS context configuration 2007-01-08 23:36:24 +00:00
Pierangelo Masarati
7bcca30623 better handling of critical conditions 2007-01-08 21:37:45 +00:00
Howard Chu
1cc1f9b18a Make syncrepl inherit default TLS settings from main slapd config (except
for reqcert, default demand)
2007-01-08 20:16:45 +00:00
Howard Chu
813cca89a6 ITS#4797 2007-01-08 19:10:23 +00:00
Pierangelo Masarati
82de650b19 fix idassert mode=self for anonymous operations (ITS#4798) 2007-01-08 18:34:59 +00:00
Pierangelo Masarati
3c012a606b fix response code mapping 2007-01-08 00:13:28 +00:00
Pierangelo Masarati
671330a051 better async connection and partial error handling 2007-01-07 22:06:13 +00:00
Pierangelo Masarati
da8dd8066d don't leave attrs with no values 'round; fix description 2007-01-07 18:53:09 +00:00
Pierangelo Masarati
0e835b0c32 self-document thread monitoring 2007-01-06 16:19:15 +00:00
Pierangelo Masarati
45edf395eb cleanup ITS#4781 enhancement 2007-01-06 00:45:02 +00:00
Pierangelo Masarati
b0f06da400 improve disconnect handling 2007-01-05 16:18:42 +00:00
Pierangelo Masarati
d132415e5f cleanup 2007-01-05 10:34:32 +00:00
Howard Chu
2082b1f9f0 Avoid calling purge too often 2007-01-05 06:49:25 +00:00
Pierangelo Masarati
c56564e2b5 disconnect without notice 2007-01-04 20:17:53 +00:00
Pierangelo Masarati
963eaf63b6 return unsolicited responses 2007-01-04 19:58:29 +00:00
Howard Chu
001ce8e493 Partially revert prev commit, fix lru_purge loop 2007-01-04 11:01:59 +00:00
Howard Chu
57fa57b1d1 Fix HDB - don't use IDL cache when it's not configured 2007-01-04 10:56:18 +00:00
Howard Chu
e48f72c1b5 Unify use of BDB lockers 2007-01-04 08:36:59 +00:00
Howard Chu
23a2339090 Fix prev commits... 2007-01-04 03:26:54 +00:00
Howard Chu
f2acc11976 Simpler fix 2007-01-04 03:17:59 +00:00
Howard Chu
831d1cccc7 Fix idl_cache teardown again - skip if cache is empty 2007-01-04 03:14:46 +00:00
Pierangelo Masarati
bce4063a17 shortcut schema mapping if not configured 2007-01-03 21:35:18 +00:00
Pierangelo Masarati
3284f54ec0 silence warnings 2007-01-03 21:34:49 +00:00
Howard Chu
e094bef172 Remember our own success code in case an overlay changes it 2007-01-03 20:28:56 +00:00
Howard Chu
f206f3ddc0 Just return API errors to the frontend, don't attempt to send them. 2007-01-03 20:21:07 +00:00
Howard Chu
5cfd2f6d97 Use Clock algorithm for IDL cache too 2007-01-03 19:00:07 +00:00
Howard Chu
6d1ca0a769 Delete unused idl_cache_entry rwlock field 2007-01-03 05:36:49 +00:00
Howard Chu
d5a7e252b3 #if out unnecessary code in prev commit 2007-01-03 02:10:30 +00:00
Howard Chu
2c1f91dd0f Tweak entry alignment, play with STRIPE/STRIDE definitions to test. 2007-01-03 02:06:06 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Howard Chu
1f79382c4f FWIW, SIGBREAK on Windows should only be ignored when running as a Service. 2007-01-02 10:10:16 +00:00
Howard Chu
68a0e0d922 Revert to ordering behavior of original attrs_free() 2007-01-01 13:42:36 +00:00
Howard Chu
822888eafc Bypass a few redundant locks 2007-01-01 11:44:39 +00:00
Howard Chu
6074f48fa7 Tweak cache_lru_print 2007-01-01 11:17:13 +00:00
Howard Chu
a5546a22a8 Fix prev commit, hdb_cache_find_parent 2007-01-01 07:09:22 +00:00
Howard Chu
dcd5c74914 Drop unnecessary memset()s 2007-01-01 06:46:47 +00:00
Howard Chu
cd35516bdc Fix typo in prev commit 2007-01-01 02:16:25 +00:00
Howard Chu
37dfbd3e8b Fix prev commit 2007-01-01 01:07:57 +00:00
Howard Chu
d7fa1e764d partial revert - keep acquiring BDB lock in lru_purge. 2007-01-01 01:00:19 +00:00
Howard Chu
b8309b4cf8 Cleanup db_lock/unlock parameters 2006-12-31 23:37:06 +00:00
Howard Chu
a720011c8a Ditch LRU cache replacement in favor of 2nd-chance/clock.
Much better concurrency.
2006-12-31 16:16:48 +00:00
Howard Chu
ff93c6bef7 Don't log EAGAIN returns from ber_get_next() 2006-12-31 16:15:45 +00:00
Howard Chu
598ef9e685 Fix prev commit 2006-12-30 12:47:17 +00:00
Howard Chu
e844a6956d In bdb_cache_add use a readlock outside the txn to protect the entry
until send_ldap_result completes.
2006-12-30 12:05:55 +00:00
Howard Chu
6222b79bc8 streamline attrs_free 2006-12-29 01:00:24 +00:00
Pierangelo Masarati
0544badf19 move slapo-denyop to contrib/slapd-modules/debyop/ 2006-12-28 16:30:53 +00:00
Pierangelo Masarati
26c2c98196 move slapo-lastmod to contrib/slapd-modules/lastlog/ (ITS#4701) 2006-12-28 16:23:57 +00:00
Pierangelo Masarati
bd33fc8678 fix filter structure leak (ITS#4794) 2006-12-28 10:32:46 +00:00
Howard Chu
d0467a5961 cleanup debug msg 2006-12-27 01:15:05 +00:00
Howard Chu
d2fc667fe7 Fix connection_get race condition on Windows 2006-12-26 23:40:00 +00:00
Howard Chu
a2dc5dd494 Fix prev commit 2006-12-26 11:34:33 +00:00
Howard Chu
03dbc30deb Use temporary AttributeDescriptions to prevent unbounded growth 2006-12-26 04:51:08 +00:00
Howard Chu
90b2976413 ITS#3707 changed SLAPD_FILTER_COMPUTED 2006-12-26 00:00:48 +00:00
Howard Chu
3bf226382e ITS#3707 preserve filter input, allow (and ignore) undefined attributes 2006-12-25 23:30:45 +00:00
Pierangelo Masarati
7e8242d50d pool privileged connections (ITS#4791) 2006-12-24 18:23:36 +00:00
Pierangelo Masarati
1939ed3fc2 apparently, structural_class() args changed 2006-12-24 15:45:48 +00:00
Pierangelo Masarati
6193ee4003 don't leak callbacks if stuff cannot be registered; provide a means to dispose of private stuff if required 2006-12-24 15:44:56 +00:00
Pierangelo Masarati
c3960b98d3 fix RID format 2006-12-24 15:43:43 +00:00
Pierangelo Masarati
186d30288d silence warning 2006-12-24 15:43:01 +00:00
Pierangelo Masarati
9edb2d518e plug rootDSE info one-time leak 2006-12-24 10:51:07 +00:00
Pierangelo Masarati
3de9659781 (blind) compile fix; please review 2006-12-24 10:50:22 +00:00
Howard Chu
01744806a3 ITS#4788 op->o_no_schema_check allows unknown attrs in slap_mods_check 2006-12-24 07:14:54 +00:00
Howard Chu
45fbb173b7 Pass op to slap_mods_check() 2006-12-24 06:55:02 +00:00
Howard Chu
e955bbeaf5 Unify rs_modlist in Add/Modify/Modrdn req structs 2006-12-24 06:45:57 +00:00
Howard Chu
79885438e7 Revert prev commit, need a different solution 2006-12-24 06:26:01 +00:00
Howard Chu
b60644a07f Fix prev commit, renaming schema 2006-12-24 03:51:08 +00:00
Howard Chu
58886b6a9c ITS#4337 insert EntryInfo in proper slot 2006-12-24 03:44:08 +00:00
Howard Chu
36317874b7 ITS#4337 allow suffix overlap when inserting new DB before existing ones 2006-12-24 01:27:35 +00:00
Howard Chu
6020a6d81d ITS#4337 implement modrdn for back-config 2006-12-24 00:56:37 +00:00
Howard Chu
fcc51c0497 Fix modrdn, must also rename the directory if it exists. 2006-12-24 00:54:14 +00:00