Commit Graph

50 Commits

Author SHA1 Message Date
Pierangelo Masarati
a6fd7fa95a add -S to slapadd to set desired SID in generated entryCSN/contextCSN 2007-08-28 19:35:57 +00:00
Pierangelo Masarati
9a0797004f if tool mode needs to add structuralObjectClass, override any database setting (rationale: if configured w/ mirror mode and syncrepl, a master is also a shadow, but we need to be able to slapadd to a master (possibly with the correct SID; will deal with this later) 2007-08-28 18:36:42 +00:00
Pierangelo Masarati
4db9863fa8 fix previous commit 2007-08-27 10:12:39 +00:00
Pierangelo Masarati
09cbbb92a7 need to copy the Entry to safely manipulate it 2007-08-27 07:13:25 +00:00
Pierangelo Masarati
7dc7c60c4b improve previous commit; fix ITS#5108 by letting both SID and RID be 0..4095, input/output in decimal, but consistently handled in hexadecimals within CSN 2007-08-26 17:03:22 +00:00
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
Hallvard Furuseth
f5d1a15fec Remove lint 2007-08-16 14:41:48 +00:00
Howard Chu
a87b4592a4 Remove tool_id2entry_get 2007-08-11 04:19:53 +00:00
Howard Chu
88cbe052e0 Fallout from ITS#4986 - remove unused param of select_backend() 2007-07-13 03:18:20 +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
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Howard Chu
2a9afa55a7 Avoid unnecessary calls to oc_bvfind 2006-11-27 19:59:59 +00:00
Howard Chu
35f6ef6fd6 Cleanup prev commit 2006-05-31 01:52:32 +00:00
Howard Chu
59ca2d198f ITS#4555 add "-j" option to jump to line of LDIF file before processing.
Fixed line number in error messages to give the line number of the beginning
of the offending entry.
2006-05-29 02:41:06 +00:00
Luke Howard
c51a71e5c2 Add -s option to slapadd to disable schema checking 2006-01-08 20:18:14 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Kurt Zeilenga
6db7e605ee Align Operation buffers using LBER_ALIGNED_BUFFER 2005-10-12 23:17:28 +00:00
Howard Chu
e66b6188bb ITS#4078 fix buffer alignment 2005-10-12 17:34:06 +00:00
Hallvard Furuseth
4faa77f440 Reject slapadd -w if not supported (partial ITS#3979 fix) 2005-08-31 23:23:13 +00:00
Luke Howard
12d006d17d Add o_no_schema_check to operation structure
entry_schema_check() nows takes Operation instead of Backend as first
argument, allows it to check o_no_schema_check
2005-08-01 15:26:13 +00:00
Hallvard Furuseth
f5dd017738 Silence warnings (rearrange if(dryrun) vs. if(verbose) 2005-07-27 08:48:43 +00:00
Hallvard Furuseth
d6cc947561 Silence "unused <something>" warnings 2005-07-14 19:52:08 +00:00
Howard Chu
21b8be393a Add slap_timestamp(), use mutex in slap_get_csn() 2005-06-07 04:12:14 +00:00
Kurt Zeilenga
feeeabcd68 manageDIT framework and obsolete objectclasses/DIT-content-rule override 2005-05-13 19:07:31 +00:00
Kurt Zeilenga
c83f7539ae Mostly remove global_schemacheck. More cleanup needed in
bconfig.c and back-sql.
2005-05-11 22:24:18 +00:00
Pierangelo Masarati
18d18d25dc more attr_merge cleanup (please check) 2005-04-21 23:36:37 +00:00
Howard Chu
7aac82d31c ITS#3616 allow adding entry with zero-length DN if the suffix is zero length 2005-04-09 11:27:35 +00:00
Howard Chu
632d7186c0 Don't crash on update_ctx if context entry has no contextCSN 2005-04-09 10:00:15 +00:00
Howard Chu
554c667ec7 Revert use_thread option, it didn't gain anything. 2005-02-17 15:18:30 +00:00
Pierangelo Masarati
14fc23c23a silence warning 2005-01-30 22:07:48 +00:00
Howard Chu
fcf787dc0f Rewritten str2entry, added str2entry2 2005-01-24 03:41:51 +00:00
Howard Chu
7b65f9bab4 Really fix synchronization 2005-01-22 00:13:00 +00:00
Howard Chu
e67e45f752 Minor cleanup 2005-01-21 22:46:06 +00:00
Howard Chu
123668e241 More fixes for prev commit 2005-01-21 22:27:24 +00:00
Howard Chu
7de2352868 Fix synchronization in prev commit 2005-01-21 22:14:08 +00:00
Howard Chu
f6ac16dff7 Add option to use a second thread for adds 2005-01-21 21:20:56 +00:00
Howard Chu
495c315672 More consolidation for single consumer-context syncrepl 2005-01-14 04:26:59 +00:00
Howard Chu
93c56951ed Use a single sessionlog per context, delete sid 2005-01-13 19:51:01 +00:00
Kurt Zeilenga
dc0eacd40b Happy New Year! 2005-01-01 20:49:32 +00:00
Howard Chu
7e87f54716 Revert ITS#3353 patch, it needs to be reworked. 2004-10-06 05:51:38 +00:00
Howard Chu
fda3d6260e ITS#3353 consolidate slapd globals into a single struct 2004-10-01 07:33:16 +00:00
Kurt Zeilenga
d611a4b49a unifdef -UNEW_LOGGING 2004-09-04 04:54:28 +00:00
Jong Hyuk Choi
9978007997 slapadd -i <rid list> fix 2004-07-31 00:03:58 +00:00
Pierangelo Masarati
4c16e67094 minor cleanup 2004-07-19 21:43:03 +00:00
Pierangelo Masarati
512a70af47 more cleanup 2004-07-17 15:35:06 +00:00
Pierangelo Masarati
854863f0b6 normalize authcDN (ITS#3246); don't touch databases when running slapadd in dryryn mode (ITS#3244); release lock when acquiring entry in tool mode (ITS#3245) 2004-07-17 14:45:07 +00:00
Kurt Zeilenga
44725e7303 use BER_BVNULL 2004-04-07 04:11:43 +00:00
Jong Hyuk Choi
c1b50022e5 reintroduce changes made in tools/slapadd.c v1.64 (looks like missing during code move) 2004-03-26 21:54:06 +00:00
Jong Hyuk Choi
964dcc04a2 patch to fix consumer replica cookie format in slaptools 2004-03-09 00:34:01 +00:00
Howard Chu
57ba4cac66 Merged slap tools with main slapd binary; installs symlinks.
tools directory is now obsolete.
2004-02-26 19:03:41 +00:00