Commit Graph

445 Commits

Author SHA1 Message Date
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
Hallvard Furuseth
8a696d21b2 Format fixes (%d<->%lu etc) 2005-07-04 05:29:12 +00:00
Howard Chu
8f58409749 Add SLAP_MOD_INTERNAL flag to Modifications, allow internal ops to bypass
ACL checks when modifying user-modifiable attributes as non-root user.
2005-06-04 09:44:39 +00:00
Howard Chu
26eee89841 ITS#3710 add missing space 2005-05-06 05:14:02 +00:00
Howard Chu
cd1bdf99e2 Add task names to runqueue entries. Display running tasks under
cn=Runqueue,cn=Threads,cn=Monitor
2005-04-23 00:28:43 +00:00
Howard Chu
6d66968ab0 Cleanup task tracking 2005-04-22 14:50:28 +00:00
Howard Chu
8f78d064ee Isolate syncrepl stuff in syncrepl.c 2005-04-22 14:38:35 +00:00
Pierangelo Masarati
2d94c4bd52 set alias dereferencing (please check) 2005-04-21 21:19:35 +00:00
Pierangelo Masarati
c1885efd83 more bindconf cleanup 2005-04-10 23:43:17 +00:00
Pierangelo Masarati
f1e2d35bd6 rework few members of slap_bindconf; silence few warnings 2005-04-02 01:33:48 +00:00
Sang Seok Lim
d2af85fd08 Fixing memory leakage in attribute aliasing 2005-03-29 00:12:05 +00:00
Howard Chu
049a1dbca0 SASL/TLS fixes to prev commit 2005-02-24 09:07:40 +00:00
Howard Chu
c54cd8b7f1 Added replica retrieval 2005-02-23 12:03:14 +00:00
Howard Chu
3b34a6f81c ITS#3546 fix consumer crash on interrupt (provider crash still unresolved) 2005-02-17 15:07:27 +00:00
Sang Seok Lim
583242c9a3 initialize AttributeAssertion before using 2005-02-16 17:00:11 +00:00
Pierangelo Masarati
0d475ca4f0 cleanup 2005-01-19 00:12:46 +00:00
Howard Chu
9e8d2c5bb1 More cleanup 2005-01-14 16:20:15 +00:00
Pierangelo Masarati
53b8653730 small improvements; declare org_dn/org_ndn 2005-01-14 11:01:48 +00:00
Howard Chu
7f5589174a Fix cascading deletes 2005-01-14 05:11:38 +00:00
Howard Chu
495c315672 More consolidation for single consumer-context syncrepl 2005-01-14 04:26:59 +00:00
Howard Chu
f845c573b0 Single consumer context per database 2005-01-13 21:15:50 +00:00
Howard Chu
93c56951ed Use a single sessionlog per context, delete sid 2005-01-13 19:51:01 +00:00
Howard Chu
bf27ba977b Deleted syncrepl updatedn 2005-01-13 18:51:29 +00:00
Pierangelo Masarati
8cfda61cb4 cosmetic changes (the problem was not there) 2005-01-08 09:12:35 +00:00
Kurt Zeilenga
dc0eacd40b Happy New Year! 2005-01-01 20:49:32 +00:00
Howard Chu
8d4281d843 ITS#3443 fix shutdown test 2004-12-16 13:48:36 +00:00
Howard Chu
edde8c99d8 Fix ITS#3425, use less restrictive search filter when getting info about
an old entry that must be deleted.
2004-12-12 06:09:02 +00:00
Pierangelo Masarati
2f5e17d056 improve usability of global ovrlays for write operations; may need to anticipate SLAPI accordingly. More work needed for add (overlays need to understand they're global and call slap_mods2entry() explicitly) 2004-12-11 17:48:15 +00:00
Howard Chu
dced3cca04 Fix typo in prev commit 2004-12-09 21:16:16 +00:00
Howard Chu
dc7ec5c6db Fix delete/refresh switch 2004-12-09 20:30:48 +00:00
Howard Chu
97d7bdf0f4 ITS#3423 implement delete for ID sets 2004-12-08 04:47:29 +00:00
Howard Chu
5c8fd8bf11 Rename syncrepl_rq to slapd_rq, move to daemon.c 2004-12-03 16:49:23 +00:00
Howard Chu
4869523567 Add comments, fix search args in syncrepl_entry 2004-11-30 11:08:25 +00:00
Pierangelo Masarati
66a66db3da retry if addition of an entry previously added as glue fails; entryUUID must be added to mods in pretty and normalized form 2004-11-30 01:48:08 +00:00
Pierangelo Masarati
9114b1b116 glue also in case of no such object, indicating that the suffix entry is missing yet (unordered results of initial content poll) 2004-11-29 19:03:55 +00:00
Howard Chu
a88c78d64e Remove syncinfo si_UUID_dn, make consumer use modify/modrdn instead of
just deleting and adding modified entries.
2004-11-29 05:56:51 +00:00
Howard Chu
5f99f7c991 More migration of syncrepl from frontend to syncprov overlay
define OPERATION_BUFFER_SIZE for dummy Operations
2004-11-27 00:57:37 +00:00
Howard Chu
d413097d8b Fix prev commit 2004-11-26 17:32:36 +00:00
Howard Chu
c2b339d456 More syncprov fixes. test019 now passes. 2004-11-26 09:40:22 +00:00
Howard Chu
90cc409325 Split Operation into Opheader and op 2004-11-25 22:59:00 +00:00
Howard Chu
3a5bde98ba Disable back-bdb native syncrepl support, enable syncprov overlay,
remove syncrepl stuff from Operation struct
2004-11-25 21:16:54 +00:00
Howard Chu
47dd8d8732 Dynamic control management 2004-11-23 13:08:45 +00:00
Howard Chu
c5006f4b87 Fix modtail initialization in loop 2004-11-22 02:11:15 +00:00
Jong Hyuk Choi
42f8426b5b patch for ITS#3379 2004-10-28 21:40:42 +00:00
Jong Hyuk Choi
0af878ac3f syncrepl consistency patch: utilize BDB txn rollback 2004-10-12 17:53:50 +00:00
Jong Hyuk Choi
4efd705cc3 syncrepl consistency patch 2004-10-09 09:26:16 +00:00
Howard Chu
7e87f54716 Revert ITS#3353 patch, it needs to be reworked. 2004-10-06 05:51:38 +00:00
Pierangelo Masarati
02828499f0 cleanup & silence warnings 2004-10-05 21:41:41 +00:00
Jong Hyuk Choi
4241325600 simplify attrs parsing and process objectClass differently 2004-10-05 00:30:15 +00:00
Howard Chu
fda3d6260e ITS#3353 consolidate slapd globals into a single struct 2004-10-01 07:33:16 +00:00
Jong Hyuk Choi
e8f30c8d0b preserve attrs="*" 2004-09-27 16:16:53 +00:00
Pierangelo Masarati
d2c08ed8d3 misc syncrepl cleanup/fixes 2004-09-26 23:00:35 +00:00
Pierangelo Masarati
761f287943 multiple precision with BIGNUM/gmp/ulong 2004-09-26 22:58:47 +00:00
Jong Hyuk Choi
e4d199d7bb A follow-on commit to the previous @oc support change to use anlist 2004-09-23 19:23:17 +00:00
Jong Hyuk Choi
5c0581b184 Modified @oc supprot code to the share anlist routines; Revised anlist routines 2004-09-23 02:48:14 +00:00
Jong Hyuk Choi
ffbb5d4ed2 *oc support in attr list 2004-09-18 02:07:41 +00:00
Jong Hyuk Choi
1fe8f20516 release syncinfo mem upon syncrepl failure as well as shutdown 2004-09-11 22:37:21 +00:00
Jong Hyuk Choi
98dc97bcb9 memory leak fixes 2004-09-11 02:02:09 +00:00
Kurt Zeilenga
d611a4b49a unifdef -UNEW_LOGGING 2004-09-04 04:54:28 +00:00
Jong Hyuk Choi
899848181d added avl_free() at the end of do_syncrep2() 2004-09-02 18:12:37 +00:00
Howard Chu
559b746437 Avoid gratuitous reindexing of cn and objectclass in syncrepl_updateCookie 2004-09-01 04:18:56 +00:00
Jong Hyuk Choi
6f9025423f ITS#3289 - exattrs support 2004-08-29 22:28:28 +00:00
Jong Hyuk Choi
a6c08d747f Use global alloc for now 2004-08-29 20:01:21 +00:00
Jong Hyuk Choi
71f45bd40b Further fixes for ITS#3297 2004-08-29 19:19:22 +00:00
Kurt Zeilenga
c449fdd217 TLS SSF does not imply a transport_ssf. 2004-08-28 21:58:20 +00:00
Luke Howard
4fdefa106f ITS#3297 (double free) 2004-08-24 01:20:49 +00:00
Jong Hyuk Choi
37db80eadb attrs=*,+ becmoes the default behavior when attrs are not specified in syncrepl definition. When attrs are specified, operational attributes other than objectClass, structuralObjectClass, and entryCSN need to be explicitly specified to be included in the replication content. 2004-08-20 16:26:58 +00:00
Howard Chu
af8cb90ed8 ITS#3289 - add SLAP_AT_DYNAMIC flag for dynamically generated attributes.
Set flag for hasSubordinates and subschemaSubentry. Strip dynamic attributes
before storing entries in syncrepl.
2004-08-19 23:39:45 +00:00
Howard Chu
91033d6552 Reworked fix for ITS#3140 - add access parameter to backend_attribute 2004-08-18 17:14:22 +00:00
Jong Hyuk Choi
95e56c6243 Patch for ITS#3259 2004-07-28 17:24:54 +00:00
Pierangelo Masarati
b94d5e17e2 rework op/rs structures to deal with opeartional attributes 2004-07-18 21:44:29 +00:00
Jong Hyuk Choi
22df3f94e4 internal operation return value processing cleanup 2004-06-25 02:27:02 +00:00
Jong Hyuk Choi
28bd88d289 more timelimit cleanup 2004-06-22 23:23:37 +00:00
Jong Hyuk Choi
3917d2b15d limit checking in syncrepl 2004-06-22 18:15:29 +00:00
Jong Hyuk Choi
a1308f8dfa syncrepl retry code fix for correct timing 2004-06-21 07:03:49 +00:00
Pierangelo Masarati
97f96aaaa6 cleanup limits for internal searches... 2004-06-19 17:07:36 +00:00
Jong Hyuk Choi
763f8c76ee syncrepl retry-on-error code 2004-06-18 05:04:03 +00:00
Luke Howard
b44a79965e Fix ITS#3131 properly - set operation SSF to MAX(TLS, SASL) SSFs 2004-05-06 03:27:45 +00:00
Luke Howard
1bdbb9e4f5 ITS #3131 - propagate SSF to syncrepl operation 2004-05-05 05:41:43 +00:00
Kurt Zeilenga
1372965d89 ITS#3092: Rename sl_free() and friends to slap_sl_free() 2004-04-20 03:44:57 +00:00
Kurt Zeilenga
a54900be42 s/saslAuthz/authz/ 2004-04-16 06:12:13 +00:00
Pierangelo Masarati
eae82899ca silence warnings 2004-04-13 09:52:12 +00:00
Kurt Zeilenga
c7f0438044 bvalue cleanup 2004-04-08 06:49:17 +00:00
Jong Hyuk Choi
1c1b2bb6ee updatedn fix for syncrepl 2004-04-07 17:32:37 +00:00
Kurt Zeilenga
44725e7303 use BER_BVNULL 2004-04-07 04:11:43 +00:00
Jong Hyuk Choi
b844e7fe42 Fix for ITS#3055 2004-04-06 17:58:03 +00:00
Jong Hyuk Choi
4afcbf3131 fix for ITS#2995 2004-03-25 22:09:08 +00:00
Jong Hyuk Choi
c3d2afbbbe patch for ITS#2948 2004-03-25 19:20:19 +00:00
Kurt Zeilenga
56cdaa594c ITS#3032: retry when GSSAPI creds are not available 2004-03-19 06:16:45 +00:00
Howard Chu
2821d0bdd6 Add connection_fake_init() 2004-03-17 19:33:13 +00:00
Jong Hyuk Choi
33442d7ced for ITS#3105 2004-03-10 21:49:08 +00:00
Jong Hyuk Choi
4bb948620a checking limits at the frontend 2004-03-09 20:43:01 +00:00
Jong Hyuk Choi
ede2f47452 supress log message for glue add case 2004-03-09 00:34:32 +00:00
Jong Hyuk Choi
4e3c30bbf0 misc addition to the previous glueing commit 2004-02-24 01:55:59 +00:00
Jong Hyuk Choi
d7d19b7420 Glue entry pruning: delete parent entries when they are glues and become leaves 2004-02-23 22:49:24 +00:00
Jong Hyuk Choi
53d191e14d syncrepl update: 1) improve error handling 2) glueing support for non-leaf deletion (TODO : deletion of leaf glue entries in the delete / modrdn code) 2004-02-22 20:44:44 +00:00
Jong Hyuk Choi
7707a66d33 fix for ITS#2947 2004-02-06 22:41:55 +00:00
Howard Chu
c9d033ae30 Fix syncrepl slapd_shutdown detection, would not stop on a gentlehup. 2004-01-15 21:35:05 +00:00
Kurt Zeilenga
3c598e89fb Happy new year 2004-01-01 19:15:16 +00:00
Kurt Zeilenga
c7f1759e80 Misc cleanup 2003-12-30 01:26:38 +00:00
Howard Chu
be1a728c5b Added sc_next and sc_cleanup to slap_callback 2003-12-07 08:51:23 +00:00
Howard Chu
74db966ebb Move SLAB_SIZE def to slap.h 2003-12-06 22:30:45 +00:00
Hallvard Furuseth
1fc24a3a82 Fix format errors: %d -> %ld, and add (long) casts as appropriate. 2003-11-28 22:06:54 +00:00
Kurt Zeilenga
4e15a84452 Updated notices 2003-11-27 01:17:14 +00:00
Jong Hyuk Choi
4ae382fd79 misc updates
- syncrepl : id -> rid
 - man page update
2003-11-26 21:37:44 +00:00
Jong Hyuk Choi
5d411fd963 Another patch for the multi syncrepl thread support 2003-11-26 20:40:16 +00:00
Jong Hyuk Choi
1fdda703e6 Support multiple sync replication at the consumer :
1) simultaneous operation of multiple active sync replication threads
2) cookie management for individual sync replication thread
   (include rid=%3d to the slapd cookie command line option (-c))
2003-11-26 19:49:47 +00:00
Jong Hyuk Choi
f97dc983ac Collective entryUUID transmission of PRESENT messages in a single PDU
(refer to draft-zeilenga-ldup-sync-04.txt)
2003-11-20 02:14:47 +00:00
Jong Hyuk Choi
e9115c2f09 exchange normalized entryUUID 2003-11-19 07:28:42 +00:00
Jong Hyuk Choi
9965ccc224 add slap_uuidstr_from_normalized() - any better place to put this ? liblutils ? 2003-11-19 00:45:20 +00:00
Jong Hyuk Choi
2d7481d662 adjust cookie precedence : command line cookie has higer precedence over stored cookie 2003-11-13 01:11:07 +00:00
Jong Hyuk Choi
64dd6a0760 fix for the cascading replication (reenabling test019) 2003-11-13 00:11:44 +00:00
Jong Hyuk Choi
0db0d4e005 fix typo 2003-11-12 07:05:12 +00:00
Jong Hyuk Choi
e36f1398f0 misc cleanup 2003-11-12 00:24:11 +00:00
Jong Hyuk Choi
f3586499d0 update ldapsync/syncrepl code according to the new version of
the protocol (draft-zeilenga-ldup-sync-04)
2003-11-11 20:25:19 +00:00
Jong Hyuk Choi
279760a467 1. Session history support
- memory based session history to minimize sync traffic
	- when client is covered by a session history, then
      [add+delete] mode is used
	- when client cookie is not covered by the history because
      the cookie is too outdated and/or the history is truncated,
	  [add+present] mode is used
2. Sync cookie syntax : comma separated name=value pairs
	- csn=yyyymmddhh:mm:ssZ#0xSSSS#r#ssssr,sid=nnn
2003-11-10 02:44:25 +00:00
Howard Chu
d46195d08d ITS#2805 fix core dump using LDBM 2003-11-03 09:54:28 +00:00
Howard Chu
ccf224a759 ITS#2808 fix UUIDNormalize, use it. 2003-11-03 08:22:13 +00:00
Howard Chu
8acb1a0466 Fix refresh mode rescheduling 2003-11-03 06:57:13 +00:00
Howard Chu
fab84134ba ITS#2806 fix abort 2003-11-01 23:03:44 +00:00
Howard Chu
5ed0318b79 Fix retry on failure 2003-10-25 22:07:31 +00:00
Howard Chu
782d1be0ad Fix prev commit, don't timeout outbound connections 2003-10-25 21:14:07 +00:00
Howard Chu
08676eb49d Add support for outbound connections in main listener.
Restructure syncrepl/persist to use outbound connection manager.
2003-10-24 12:57:24 +00:00
Howard Chu
645c2bcb02 Drop unused arguments from syncrepl_add_glue 2003-10-24 08:10:16 +00:00
Howard Chu
f9a8093c83 Drop SLAPI support 2003-10-24 06:06:55 +00:00
Howard Chu
01f7a7466b SLAPI fix - no-op when slapi_plugins_used == 0 2003-10-24 05:58:42 +00:00
Howard Chu
ac7404eabd Fix error recovery, cleanup session handles. Always reschedule task
at end of do_syncrepl; this fixes the problem of syncrepl never starting
if the master isn't up. Set sync interval to 60 seconds in persist mode;
it will retry connecting to the master when the master isn't up. Fail on
SASL at config time instead of at runtime when SASL is not enabled.
2003-10-24 04:11:28 +00:00
Howard Chu
72ace288e8 Fix prev commit, avoid abort when entry is NULL 2003-10-22 07:57:25 +00:00
Jong Hyuk Choi
11e23f6903 syncrepl_entry() return code fix (returns 1 when e needs to be freed) 2003-10-22 06:28:34 +00:00
Kurt Zeilenga
ce4b199485 Syncrepl code cleanup (namely prefix struct field names) 2003-10-22 05:19:30 +00:00
Jong Hyuk Choi
8b8383a85d fix for changing si->syncCookie to bvarray 2003-10-21 22:02:30 +00:00
Howard Chu
ab2a7195d0 Fix cookie search 2003-10-21 08:26:58 +00:00
Kurt Zeilenga
4821c2c6ed Avoid questionable use of strlen(), strcpy(), and strcat(). 2003-10-20 22:23:11 +00:00
Howard Chu
91ebcd87bd Fix prev commit, syncrepl_add_glue must start from sufix 2003-10-19 08:57:30 +00:00
Howard Chu
b144ca2169 ITS#2684 fix bogus entry_free(), connection problem remains 2003-10-19 04:42:02 +00:00
Howard Chu
f0c8dcc331 ITS#2778 use real malloc for new entry, not sl_malloc 2003-10-19 02:18:38 +00:00
Howard Chu
08407b5b00 More malloc cleanup 2003-10-19 00:30:55 +00:00
Howard Chu
b6835be962 ITS#2747, Reorganize syncrepl, fix some memleaks. More remain. 2003-10-18 14:13:37 +00:00
Jong Hyuk Choi
13f981fdd4 remove #include <db.h> (ITS#2765) 2003-10-14 20:22:09 +00:00
Jong Hyuk Choi
490d9e55d4 fix slap_syncrepl_cn_bv 2003-10-14 16:26:01 +00:00
Kurt Zeilenga
4f003dbdaf mv ldap_int_get_controls to ldap_pvt_get_controls 2003-10-12 08:14:28 +00:00
Jong Hyuk Choi
cdb7417765 misc syncrpel updates 2003-10-08 09:36:06 +00:00
Jong Hyuk Choi
a8574a450f slaptools update : replica promotion / demotion
new slapadd options
-p       : promote : If the ldif file contains syncConsumerSubentries, convert
                     them to a single syncProviderSubentry. Its contextCSN
                     attribute has the largest value of the syncreplCookie
                     attributes of the syncConsumerSubentries.
                     syncProviderSubentry in the ldif file is retained.
-p -w    : promote : Recalculate contextCSN based on entryCSN of each entry.
           create    Existing syncConsumerSubentries and syncProviderSubentry
                     are ignored and not added to the directory.
-r       : demote  : If the ldif file contains syncProviderSubentry, convert it
                     to a syncConsumerSubentry having the default syncrepl id
                     of 0. syncConsumerSubentries in the ldif file are retained.
-r -w    : demote  : Recalculate syncreplCookie based on entryCSN of each entry.
           create    Existing syncConsumerSubentries and syncProviderSubentry
                     are ignored and not added to the directory. The default
                     syncrepl id of 0 will be used for the new
                     syncConsumerSubentry.
-r -w -i %d[,%d]*  : Using the comma separated list followed by the -i option,
                     it is possible to create multiple syncConsumerSubentries
                     having the syncrepl ids specified in the list.
                     syncreplCookie values of these sycnConsumerSubentries
                     will have the same value, either from the maximum
                     entryCSN value or from the contextCSN value of the
                     syncProviderSubentry.
2003-10-07 20:01:37 +00:00
Jong Hyuk Choi
d5823fa912 no caching flag in Operation structure 2003-09-25 07:48:53 +00:00
Jong Hyuk Choi
d2320dbd7a followup of the previous commit 2003-09-25 01:40:33 +00:00
Jong Hyuk Choi
cd108bb682 loose ends fixed 2003-09-25 00:59:27 +00:00
Howard Chu
c58ac9d8f1 Add memctx param to build_new_dn(). cleanup DN leaks. 2003-09-24 04:30:41 +00:00
Jong Hyuk Choi
3e99679ca4 log the cause of the error when ldap_result() returns -1 2003-09-23 23:41:57 +00:00
Jong Hyuk Choi
f6d883d901 error behavior fix and TODO 2003-09-18 06:04:28 +00:00
Jong Hyuk Choi
a0331a0487 missing or empty attrs list in a syncrepl specification
is changed to mean attrs="*"
2003-09-17 23:06:57 +00:00
Jong Hyuk Choi
537ccc3f5f fix for persistent search termination (ITS#2724)
- the consumer slapd did not terminate when the provider is alive
 - use a timeout in ldap_result() of syncrepl.c
2003-09-17 10:34:10 +00:00
Jong Hyuk Choi
3868f3b5a7 LDAP_SASL_INTERACTIVE -> LDAP_SASL_QUIET 2003-09-12 22:49:14 +00:00
Jong Hyuk Choi
c25a892e62 misc cleanup 2003-09-04 19:48:53 +00:00
Jong Hyuk Choi
7f882daf15 Schema checking option for LDAP Sync replication 2003-09-03 21:42:52 +00:00
Jong Hyuk Choi
aa8ff20012 Patch for ITS#2692 2003-09-03 08:21:51 +00:00
Jong Hyuk Choi
853c03e38d more patches for ITS#2692 (Thanks Luke!) 2003-08-29 17:02:53 +00:00
Jong Hyuk Choi
090ac0a772 unifdef LDAP_SYNC and LDAP_SYNCREPL 2003-08-27 22:16:04 +00:00
Jong Hyuk Choi
81a53a9a5c LDAP Sync protocol extension
- do not send updates in state mode when
  syncCookie >= contextCSN (or omitCSN if changelog is used)
2003-08-26 22:49:44 +00:00
Jong Hyuk Choi
660617ae66 Context CSN patch (1)
- currenty works for refreshOnly mode of LDAP Sync
- Context CSN for add / modify is implemented
- code for delete / modrdn / refreshAndPersist will be soon committed
2003-08-23 02:51:33 +00:00
Jong Hyuk Choi
6659cf3ea1 LDAP Sync protocol change : state mode (add+present) and log mode (add+delete) 2003-08-14 16:27:36 +00:00
Jong Hyuk Choi
b3e62ef604 SyncRepl updates for back-bdb / back-ldbm 2003-07-15 00:33:49 +00:00
Jong Hyuk Choi
2b803b0459 SyncRepl is changed to share the following routnines :
slap_mods_opattrs(), slap_mods_check(), slap_mods2entry()
2003-07-11 01:01:27 +00:00
Jong Hyuk Choi
b231c33efa export glueing code 2003-07-08 20:07:07 +00:00
Jong Hyuk Choi
cc6f31782d - partial attribute replication tested ok
- conf file processing udpate
- misc updates
2003-07-02 14:51:23 +00:00
Jong Hyuk Choi
9df9b1377a reinitialize presentlist & nonpresentlist 2003-06-25 23:21:18 +00:00
Jong Hyuk Choi
9faeffe8c6 fix the glueing code 2003-06-25 22:28:50 +00:00
Jong Hyuk Choi
90364acc0b - syncrepl uses per-thread memory allocator
- slimit, tlimit fix (ITS# 2592)
2003-06-23 14:13:38 +00:00
Jong Hyuk Choi
92988db5d3 cleanup 2003-06-12 15:11:08 +00:00
Jong Hyuk Choi
f07179ca61 syncrepl changes
- can handle multiple syncinfo
- ldap_sync_search() added
2003-06-11 17:03:57 +00:00
Kurt Zeilenga
fefb7a97e4 Misc cleanup (needs better error handling and general code cleanup) 2003-05-31 05:48:00 +00:00
Kurt Zeilenga
11f990a641 Fix intermediate responses 2003-05-31 05:32:57 +00:00
Kurt Zeilenga
12304f64e5 Merge partial and intermediate responses 2003-05-31 05:01:49 +00:00
Jong Hyuk Choi
771df8f75b remove DB_NOTFOUND in rc checking 2003-05-30 21:45:07 +00:00
Howard Chu
5d0ba372e5 Fix LBER_OPT_MEMCTX behavior 2003-05-28 22:17:08 +00:00
Jong Hyuk Choi
2e5fb908d1 - glue entry management change
- op->o_tmpmfunc setup
2003-05-23 13:32:13 +00:00
Jong Hyuk Choi
7e7429267e persistent search updates with recent changes 2003-05-20 20:21:39 +00:00
Hallvard Furuseth
3db60ba479 Fix debug output (print int as %d, not %s). 2003-05-20 18:13:39 +00:00
Jong Hyuk Choi
4f58efc4d1 - change in message to modlist conversion 2003-05-20 01:45:12 +00:00
Jong Hyuk Choi
986bcd52a9 -syncUUID search in syncrepl
-test017-syncreplication
2003-05-09 06:50:44 +00:00
Jong Hyuk Choi
35d1bd68b9 runqueue restructuring 2003-05-07 23:52:08 +00:00
Jong Hyuk Choi
580ae073e1 runqueue update 2003-05-07 22:29:26 +00:00
Jong Hyuk Choi
45776bff04 a runqueue for periodic thread execution (for syncrepl) 2003-05-07 02:06:01 +00:00
Jong Hyuk Choi
9543844d39 strdup cleanup 2003-05-02 18:00:33 +00:00
Hallvard Furuseth
c46cd36088 Insert missing %s in printf format to print ldap_err2string(). 2003-05-02 13:13:30 +00:00
Jong Hyuk Choi
e8cd5c2386 - LDAP_SYNCREPL defined in include/ldap.h
- add "updatedn" to the replication specification
- return referral to update to the slave server
2003-05-01 23:39:29 +00:00
Jong Hyuk Choi
0cafb28e31 syncrepl REFRESH : a master entry modify case fix 2003-05-01 02:14:47 +00:00
Jong Hyuk Choi
e08ba25101 syncrepl refresh mode : both scope-in & scope-out working fine 2003-04-30 16:35:23 +00:00
Jong Hyuk Choi
030d5a614d - mods memory allocation fix
- persistent syncreplCookie (in syncConsumerSubentry) access becomes reliable
2003-04-30 04:01:25 +00:00
Jong Hyuk Choi
e9bd75ae9b ber, bv memory cleanup 2003-04-23 16:29:31 +00:00
Jong Hyuk Choi
fd3cf2b5ed get_ldapmsg_ber() -> ldap_get_message_ber() 2003-04-22 22:09:25 +00:00
Jong Hyuk Choi
b67a3b9840 Misc cleanup - more to come. 2003-04-22 21:42:14 +00:00
Jong Hyuk Choi
f97a85db83 more cleanup for the backend API change 2003-04-22 17:59:54 +00:00
Jong Hyuk Choi
3efe7398c9 memory API change 2003-04-21 14:01:39 +00:00
Jong Hyuk Choi
437d2ce5a9 backend operations and callbacks conforms to the new API. 2003-04-09 16:37:00 +00:00
Kurt Zeilenga
c75be97ae9 #ifdef -DSLAP_NVALUES 2003-04-05 03:35:16 +00:00
Jong Hyuk Choi
86fecca9ec LDAP Content Synchronization based Replication :
This is a preliminary code drop. Patches will follow shortly.
2003-04-01 06:38:39 +00:00