Commit Graph

9040 Commits

Author SHA1 Message Date
Howard Chu
3f20aa245f Partially revert prev commit, delete unused parameter, fix psearch response 2007-02-06 05:58:01 +00:00
Howard Chu
1403491288 Fixes for glue and persist chaining 2007-02-06 05:29:00 +00:00
Howard Chu
9467269cef ITS#4623, entry_get has to pass thru glue layer too 2007-02-06 04:19:56 +00:00
Howard Chu
9381fc42a5 Add overlay hooks for entry_get_rw / entry_release_rw 2007-02-06 04:18:14 +00:00
Howard Chu
578a2b0db4 Default to no sid in initial cookie 2007-02-06 01:19:06 +00:00
Howard Chu
448f584fe5 Fix typo 2007-02-06 01:18:17 +00:00
Howard Chu
4067b97cf4 Add equality match for olcSyncrepl 2007-02-06 00:22:49 +00:00
Howard Chu
d87d11eb09 Add a debug message when skipping an old entry. 2007-02-06 00:06:09 +00:00
Howard Chu
21e4eb3dcc Fix prev commit - cannot shortcut initial sync 2007-02-05 23:54:07 +00:00
Howard Chu
250cbd286a Optimization: send sid in cookie to avoid getting our changes sent
back to us.
2007-02-05 23:10:22 +00:00
Howard Chu
4e193bc5cb Fix typos 2007-02-05 12:39:37 +00:00
Howard Chu
5f1fdfa515 Fix prev commit 2007-02-05 11:23:50 +00:00
Howard Chu
b5d8341569 Add timeout / network timeout to bindconf 2007-02-05 11:03:59 +00:00
Howard Chu
2432378de8 Fix compare_csns to accept new cookie when there are more CSNs than
we knew about before
2007-02-05 11:03:36 +00:00
Howard Chu
55b29bedf8 Fix prev commit, don't generate a new ctxcsn if we're a consumer with
an empty DB
2007-02-05 09:19:46 +00:00
Howard Chu
42aca03eea Fix typos 2007-02-05 07:55:24 +00:00
Howard Chu
d57ad4f3c0 More for contextCSN checks 2007-02-05 07:36:07 +00:00
Howard Chu
36571123ca Fix prev commit 2007-02-05 06:47:32 +00:00
Howard Chu
f41343aa21 Add entryCSN comparison for consistency check 2007-02-05 06:07:27 +00:00
Howard Chu
9320f002e3 Fix prev commit, doesn't need permissive modify 2007-02-05 05:59:43 +00:00
Howard Chu
21b49a09e7 Use permissive modify on contextCSN 2007-02-05 05:25:13 +00:00
Howard Chu
fffaea79eb Preliminary multi-context support for syncrepl. Passes all single-master
tests, needs multi-master testing.
2007-02-05 04:50:07 +00:00
Howard Chu
7d2a744acf Fix prev commit 2007-02-04 00:16:54 +00:00
Howard Chu
51549d2e5d Add olcServerID for configuring serverID portion of CSN 2007-02-04 00:02:38 +00:00
Howard Chu
0787d0c434 Always initialize global_host 2007-02-03 02:53:10 +00:00
Howard Chu
4b1bb81452 Add lutil_gettime() returning structured time with microseconds. Use
microseconds in CSNs. Omit microseconds from modifyTImestamp...
2007-02-02 23:10:30 +00:00
Pierangelo Masarati
5509c20961 keep SlapReply clean (ITS#4828) 2007-02-01 21:58:48 +00:00
Howard Chu
8b43a8475f Fix ITS#4827, was losing the entryCSN mod. 2007-02-01 05:21:21 +00:00
Howard Chu
384979a07d Note for future - we should provide macros for all of the syntaxes
listed in RFC4517 and just let users use them.
2007-01-31 11:35:20 +00:00
Howard Chu
9fc2268c73 Allow identical duplicate OID macro definitions. Makes it harmless
if multiple schema files declare the same macros for common syntax OIDs.
2007-01-31 11:26:04 +00:00
Howard Chu
6d0c164753 More for syncrepl support 2007-01-30 07:29:11 +00:00
Howard Chu
51e58c671e Fix q[-1] ref in prev commit 2007-01-29 23:56:59 +00:00
Howard Chu
67f16caec0 ITS#4823 allow zero-length IA5String 2007-01-29 04:39:54 +00:00
Pierangelo Masarati
ff9b674899 cleanup back-meta according to back-ldap 2007-01-28 00:53:11 +00:00
Pierangelo Masarati
917ae32030 more about quarantine separation 2007-01-28 00:31:47 +00:00
Pierangelo Masarati
e07dc8c757 fix more spurious return stuff; split quarantine in: detection, exploitation, recovery; describe failure reasons 2007-01-28 00:24:10 +00:00
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