Pierangelo Masarati
2132aa3b16
add support for CSNSIDMatch; use it to set contextCSN as appropriate when slapadd'ing -w
2007-08-26 15:39:45 +00:00
Howard Chu
6d9e2cac21
Fix prev commit
2007-08-25 16:00:15 +00:00
Howard Chu
a1c088ed02
ITS#5077 again
2007-08-25 15:40:39 +00:00
Pierangelo Masarati
96611ac703
getting an abnormal number of empty syncUUID...
2007-08-25 15:15:05 +00:00
Pierangelo Masarati
25d46e7578
rework controls API
2007-08-22 22:35:14 +00:00
Howard Chu
df2dcbcbe6
More for ITS#5077
2007-08-20 20:00:15 +00:00
Pierangelo Masarati
ca1aed557b
make lutil_uuidstr_from_normalized() return the length of the string
2007-08-17 15:08:47 +00:00
Pierangelo Masarati
403704b7bc
move uuid normalized to string to liblutil
2007-08-17 12:42:52 +00:00
Hallvard Furuseth
f5d1a15fec
Remove lint
2007-08-16 14:41:48 +00:00
Pierangelo Masarati
1f3d88f32b
recent check for syncrepl searchbase broke test048; fixing...
2007-08-13 20:51:42 +00:00
Howard Chu
cd47824bbb
ITS#5077 fix attr_cmp loop termination
2007-08-10 23:10:59 +00:00
Howard Chu
856bf9bd48
ITS#5065 don't crash if old cookieCSN is sent
2007-08-10 22:52:04 +00:00
Pierangelo Masarati
caf89557ab
syncrepl searchbase must be within the database naming context (ITS#5073)
2007-08-08 18:23:22 +00:00
Ralf Haferkamp
3a9310431e
Reworked recent backend API changes, now using a separate struct,
...
(ConfigReply) for the error messages.
2007-08-03 12:02:07 +00:00
Howard Chu
f28d9e800f
Fix mirrormode/tool mode
2007-07-14 00:12:47 +00:00
Howard Chu
88cbe052e0
Fallout from ITS#4986 - remove unused param of select_backend()
2007-07-13 03:18:20 +00:00
Howard Chu
10264919f4
Fix uninit'd op req DN
2007-06-19 13:07:12 +00:00
Howard Chu
299d19506a
ITS#4933 use ldap_set_option for search timelimit
2007-06-19 11:49:50 +00:00
Pierangelo Masarati
9ff76148ab
test goes __after__ done (ITS#5014 :)
2007-06-16 10:53:48 +00:00
Pierangelo Masarati
844f13fbe8
don't forget to log errors (ITS#5014)
2007-06-14 23:07:40 +00:00
Pierangelo Masarati
74ca4680db
more ITS#4973 initialization
2007-05-19 14:12:24 +00:00
Hallvard Furuseth
93fbb87545
Give OperationBuffer normal struct members instead of using
...
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Howard Chu
8726062e1d
Fix typo in prev commit
2007-05-10 20:15:40 +00:00
Howard Chu
2779af4730
ITS#4952 use memcmp to compare CSN values
2007-05-10 18:46:15 +00:00
Hallvard Furuseth
d72acf7250
Struct/array initializers must be constant expressions in C89
2007-05-09 19:09:32 +00:00
Howard Chu
626e9aabea
coverity scan, ch_realloc won't return NULL
2007-05-08 14:01:16 +00:00
Howard Chu
97d0de6c1f
ITS#4915 log failure retry status
2007-04-06 01:16:55 +00:00
Howard Chu
64000c5fc7
ITS#4904 fix delta-sync modlist free
2007-04-02 21:22:43 +00:00
Pierangelo Masarati
639d678592
cleanup struct declarations
2007-03-20 01:07:10 +00:00
Pierangelo Masarati
5ed0fc3749
re-fix previus commit the other way 'round (rids are < 1000)
2007-02-24 18:29:55 +00:00
Pierangelo Masarati
b0f63112be
fix type/format mismatch
2007-02-24 18:00:46 +00:00
Howard Chu
06212e9de9
Plug leaks
2007-02-16 02:22:24 +00:00
Howard Chu
7dc2199bfd
Fix rev 1.312
2007-02-14 00:08:26 +00:00
Howard Chu
59d4b38a7c
syncinfo_free must be able to free multiple syncinfos
2007-02-13 14:35:53 +00:00
Howard Chu
ab2a55d222
Coverity error
2007-02-13 11:03:41 +00:00
Howard Chu
c5b33893f0
Fix fetching of initial contextCSN, updating from syncprov
2007-02-07 06:26:22 +00:00
Howard Chu
04f46aa880
ITS#4832 fix unint'd var
2007-02-07 00:41:15 +00:00
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
d87d11eb09
Add a debug message when skipping an old entry.
2007-02-06 00:06:09 +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
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
d57ad4f3c0
More for contextCSN checks
2007-02-05 07:36:07 +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
8b43a8475f
Fix ITS#4827, was losing the entryCSN mod.
2007-02-01 05:21:21 +00:00
Pierangelo Masarati
fd71fdf83e
plug one-time leaks related to configuration
2007-01-27 21:15:11 +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
Howard Chu
c49f17bfdd
Check for duplicate UUIDs due to ITS#4813 patch
2007-01-25 08:35:27 +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
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
Howard Chu
11b1818b16
Partial fix for prev commit
2007-01-22 14:38:07 +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
Pierangelo Masarati
8b2e8ece5c
fix leak (ITS#4805)
2007-01-15 15:02:14 +00:00
Howard Chu
f2be5ad0e7
Log errors in delta sync
2007-01-12 09:59:15 +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
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Pierangelo Masarati
c3960b98d3
fix RID format
2006-12-24 15:43:43 +00:00
Howard Chu
45fbb173b7
Pass op to slap_mods_check()
2006-12-24 06:55:02 +00:00
Quanah Gibson-Mount
0523f0e3a7
cleanup
2006-12-16 03:33:27 +00:00
Howard Chu
69c4495bc2
ITS#4768 more be_add fallout
2006-12-12 21:00:12 +00:00
Pierangelo Masarati
41c4afb331
improve error message
2006-12-02 16:17:01 +00:00
Howard Chu
28bd54a06d
ITS#4755 add rid to syncrepl debug msgs
2006-11-17 02:11:57 +00:00
Howard Chu
510c2b881e
ITS#4746 additional leaks
2006-11-13 02:57:05 +00:00
Howard Chu
c9da788f78
ITS#4746 plug leaks
2006-11-13 02:44:45 +00:00
Howard Chu
b14e6e00b5
ITS#4695 same fix for delta-sync
2006-10-06 01:57:50 +00:00
Howard Chu
4e9c39d626
ITS#4695 fix modrdn newSup
2006-10-05 03:56:23 +00:00
Pierangelo Masarati
8eb455e7b2
add sb_version to slap_bindconf;
...
rework slap_client_connect() and slap_discover_feature() accordingly
2006-09-11 00:52:43 +00:00
Pierangelo Masarati
5c9eb73df7
make sure we got the right control...
2006-09-11 00:06:03 +00:00
Howard Chu
78172aa0cf
Entry/Attribute struct caching, to minimize malloc fragmentation
...
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Pierangelo Masarati
cc84163f30
factor connection code out of syncrepl
2006-08-04 19:20:59 +00:00
Howard Chu
5757065736
ITS#4622
...
syncrepl: don't save contextCSN on incoming context entry
syncprov: delete contextCSN on checkpoint if ctxcsn is empty
2006-07-27 10:44:22 +00:00
Howard Chu
acea44af02
ITS#4622 additional fix
2006-07-26 21:36:44 +00:00
Howard Chu
04d7e356a7
ITS#4534, don't update the context cookie with the delete syncID set
...
cookie, that's only an intermediate value.
ITS#4622, don't update the context cookie until all the nonpresent
deletes are finished.
2006-07-26 21:23:21 +00:00
Howard Chu
5934d696eb
ITS#4582 complain if no rootDN was set when configuring syncrepl
2006-06-08 11:54:10 +00:00
Howard Chu
78809a70c5
Fix modrdn with back-ldap
2006-05-29 07:24:21 +00:00
Howard Chu
62437022ab
ITS#4567 use unique timestamps for ops for cascading delta-sync
2006-05-27 10:26:15 +00:00
Howard Chu
837e9466b8
ITS#4534 propagate CSN for delete syncID sets
2006-05-11 10:46:44 +00:00
Howard Chu
966c47e5b4
Detect TLS config changes
2006-05-03 02:48:23 +00:00
Howard Chu
442a3f1fde
searchbase is a required config parameter, log missing params.
2006-04-29 09:24:14 +00:00
Howard Chu
fd20e683df
Add logging for ITS#4423
2006-04-27 09:18:43 +00:00
Pierangelo Masarati
95b29919a3
more ITS#4503 cleanup
2006-04-25 19:30:48 +00:00
Pierangelo Masarati
a2a9298080
cleanup
2006-04-13 14:46:16 +00:00
Howard Chu
c6d0edc3b7
Use TLS context stuff in syncrepl
2006-04-07 02:57:39 +00:00
Hallvard Furuseth
da0c0360e4
Warnings: Unused vars. funcptr=0, not =NULL. if(b=...) -> if((b=...) != NULL).
2006-04-02 19:54:24 +00:00
Howard Chu
afa10c3486
Add "subord" alias for subordinate scope
2006-03-07 22:39:09 +00:00
Howard Chu
937bc5bbb7
Fix ITS#4401 teardown persistent clients when unconfiguring
2006-02-15 07:38:17 +00:00
Howard Chu
88c3a5a5b6
Add debug message when deleting nonpresent entries
2006-02-08 21:24:43 +00:00
Howard Chu
f96e6378d6
filter2bv can't de-normalize UUIDs, must do it explicitly for back-ldap
...
in test045
2006-02-05 01:05:38 +00:00
Howard Chu
3d3ba13f92
ITS#4369 add log messages for delta syncrepl ops
2006-01-25 01:47:48 +00:00
Pierangelo Masarati
90fad5a3a3
(incorrect) variable used before set (ITS#4331)
2006-01-11 21:30:53 +00:00
Pierangelo Masarati
c9ef14afca
fix typos in previus commit
2006-01-11 08:36:37 +00:00
Howard Chu
3ecd52e0b8
Don't update in-memory cookie until db update succeeds
2006-01-11 08:10:17 +00:00
Howard Chu
3e682cdac4
Propagate local errors up, fix test045
2006-01-11 07:37:42 +00:00
Pierangelo Masarati
857a43d398
o_csn memory handling cleanup and more resource release
2006-01-06 16:31:57 +00:00
Kurt Zeilenga
acbb5cf689
Happy new year!
2006-01-03 23:11:52 +00:00
Pierangelo Masarati
7e535f8018
__should__ fix ITS#4296
2006-01-03 18:07:01 +00:00
Pierangelo Masarati
fdce5f2f7e
fix another crasher
2006-01-02 17:36:48 +00:00
Luke Howard
b6fffd1417
Add orr_modlist member to request structure, containing a list of
...
modifications to be applied by the backend atomically with a modify
RDN request.
Handle updating of RDN values in frontend.
Code that calls a backend's be_modrdn should call slap_modrdn2mods(op, rs)
before invoking the backend and cleanup with slap_mods_free( op->orr_modlist, 1 ).
See do_modrdn() for an example.
2006-01-01 09:23:24 +00:00
Pierangelo Masarati
81bafb9935
fix potential overflow in syncrepl_unbind() and related helpers
2005-12-20 14:31:16 +00:00
Pierangelo Masarati
e2fb0213ed
note to developers
2005-12-20 14:03:04 +00:00
Pierangelo Masarati
46a88603dd
add more checks on input values
2005-12-20 13:07:38 +00:00
Howard Chu
e6f624b48a
ATTRSONLY doesn't take a value (ITS#4146, #4266 )
2005-12-20 12:18:01 +00:00
Pierangelo Masarati
9df97ba114
use macros to handle retry
2005-12-15 19:14:54 +00:00
Pierangelo Masarati
f0ee55c9df
fix filter generation (back-ldap uses string form)
2005-12-15 13:07:56 +00:00
Pierangelo Masarati
ed0bed72b9
plug leaks
2005-12-06 23:10:14 +00:00
Howard Chu
a342ee4d88
ITS#4227 delta-sync should use subtree search
2005-11-29 11:44:43 +00:00
Kurt Zeilenga
48cb85865d
Remove some unnecessary #ifdefs
2005-11-26 07:38:18 +00:00
Pierangelo Masarati
f3c007229f
detect if trying to make back-monitor shadow
2005-11-25 15:16:54 +00:00
Pierangelo Masarati
0fd295a321
first round of number/time parsing fixes
2005-11-23 17:29:16 +00:00
Howard Chu
9ca041c9a6
Fix retry on stale cookie result
2005-11-21 05:38:28 +00:00
Pierangelo Masarati
28aca605c7
more URI into bindconf
2005-11-16 21:52:14 +00:00
Pierangelo Masarati
474dfbc8fd
don't trust strchr/strrchr with bervals
2005-11-13 22:26:53 +00:00
Pierangelo Masarati
52db580cdb
error if syncUUID is empty
2005-11-08 00:03:58 +00:00
Howard Chu
f7ebf67355
ITS#4135 fix prev commit
2005-11-03 02:40:52 +00:00
Kurt Zeilenga
ecd86725f2
Update result code to IANA-assigned values
...
Provide some backwards compatibility.
Misc cleanup
2005-11-03 01:27:07 +00:00
Howard Chu
9ee48976e2
ITS#4135 remove client socket from frontend control before unbinding
2005-11-03 00:15:50 +00:00
Howard Chu
4f4d91d8a9
Fix fallback retries
2005-10-15 06:14:12 +00:00
Howard Chu
1872357e3b
Trim down delta attr list
2005-10-15 05:37:10 +00:00
Howard Chu
f2f948ddf8
Fix delta deletes
2005-10-15 05:13:28 +00:00
Howard Chu
17a7ce8de5
Better delta syncrepl support, fallback to full refresh.
2005-10-15 03:26:31 +00:00
Howard Chu
711c702943
Send reloadHint TRUE by default
2005-10-15 00:43:47 +00:00
Howard Chu
7dcb68f6fa
Move CSN invocations to backends
2005-10-13 11:58:44 +00:00
Kurt Zeilenga
6db7e605ee
Align Operation buffers using LBER_ALIGNED_BUFFER
2005-10-12 23:17:28 +00:00
Howard Chu
8b783dace6
Use ldap_unbind_ext, don't depend on ldap-int.h
2005-10-11 03:05:13 +00:00
Howard Chu
82998790bb
Cleanup
2005-10-06 19:11:13 +00:00
Howard Chu
024c4bb13f
ITS#4050 compare normalized DNs when detecting modrdn
2005-09-30 06:39:37 +00:00
Howard Chu
5fd0e53b15
ITS#4031 don't update syncCookie if it has invalid ctxcsn
2005-09-22 21:22:00 +00:00
Howard Chu
1c2e20527e
Silence return val warnings in prev commit
2005-09-15 02:02:27 +00:00
Howard Chu
37ad7614de
Add syncdata keyword, to select different sync data formats. Defaults
...
to "default", can be set to "accesslog" or "changelog". changelog is
not fully implemented yet.
2005-09-14 15:27:20 +00:00
Pierangelo Masarati
afaf426231
need stricter sanity checks...
2005-08-25 08:57:08 +00:00
Pierangelo Masarati
e066ec210e
merge sml_managing into sml_flags (SLAP_MOD_MANAGING)
2005-08-18 08:48:10 +00:00
Pierangelo Masarati
9487629061
zero out sml_managing any time a Modifications is built (use calloc?)
2005-08-18 08:12:26 +00:00
Pierangelo Masarati
6cd013b254
silence warning
2005-08-11 19:32:28 +00:00
Howard Chu
0b2a428a29
ITS#3917 don't check csn syntax if schema isn't inited yet
2005-08-08 23:56:40 +00:00
Howard Chu
9365649dad
ITS#3922 fix syncrepl ctxcsn leak
2005-08-08 12:38:19 +00:00
Luke Howard
71d76fbeba
slap_mods2entry() should not zero pointers into the modifications
...
list because checking is performed on these, rather than the entry.
slap_mods_free() now takes an extra argument indicating whether to
free the values or not.
2005-08-01 02:16:02 +00:00
Hallvard Furuseth
e404a15082
Cleanup
2005-07-31 18:17:13 +00:00
Hallvard Furuseth
81ecb0b153
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2005-07-18 06:22:33 +00:00
Hallvard Furuseth
f43a823c73
Add missing "static" for functions declared static but defined non-static
2005-07-18 05:14:41 +00:00
Hallvard Furuseth
d6cc947561
Silence "unused <something>" warnings
2005-07-14 19:52:08 +00:00
Pierangelo Masarati
61312e7989
fix ITS#3834
2005-07-05 12:05:47 +00:00
Pierangelo Masarati
a0d8a981ac
address ITS#3831 (mostly code readability)
2005-07-04 16:34:42 +00:00