1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/script
Tim Beale b40daca6d4 traffic_replay: Generate users faster by writing to local DB
We can create user accounts much faster if the LDB connection talks
directly to the local sam.ldb file rather than going via LDAP. This
patch allows the 'host' argument to the tool to be a .ldb file (e.g.
"/usr/local/samba/private/sam.ldb") instead of a server name/IP.

In most cases, the traffic_replay tool wants to run on a remote device
(because the point of it is to send traffic to the DC). However, the
--generate-users-only is one case where the tool can be run locally,
directly on the test DC. (The traffic_replay user generation is handy
for standalone testing, because it also handles assigning group
memberships to the generated user accounts).

Note that you also need to use '--option="ldb:nosync = true"' to get
the improvement in performance.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2018-10-31 00:30:16 +01:00
..
git-hooks script/git-hooks: add check-trailing-whitespace 2018-04-26 03:54:38 +02:00
autobuild.py CI/Autobuild: Remove samba-none-env-py3 test 2018-10-23 09:10:22 +02:00
bisect-test.py PEP8: fix E401: multiple imports on one line 2018-08-24 07:49:30 +02:00
clean-source-tree.sh Improve output of check-clean-tree.sh script 2015-04-15 05:58:19 +02:00
commit_mark.sh script/commit_mark.sh: add the current branch name 2012-06-07 01:18:55 +02:00
compare_cc_results.py third_party: Add pam_set_items.so from pam_wrapper 2018-10-02 14:12:13 +02:00
configure_check_unused.pl
ctdb-import.msg-filter.sh script: add ctdb-import.* scripts 2013-11-13 14:12:51 +01:00
ctdb-import.tree-filter.sh script: add ctdb-import.* scripts 2013-11-13 14:12:51 +01:00
ctdb-import.txt script: add ctdb-import.* scripts 2013-11-13 14:12:51 +01:00
findstatic.pl
generate_param.py script/generate_param.py: remove unused imports 2018-10-25 21:45:54 +02:00
identity_cc.sh waf: add a cross-execute program that runs natively 2015-05-20 11:19:11 +02:00
random-sleep.sh random-sleep: add possiblity to override via environment variable 2013-11-13 14:53:45 +01:00
release.sh script/release.sh: fix off by 1 error in announce.${tagname}.mail.txt creation 2017-01-12 15:34:25 +01:00
show_test_time script/show_test_time: approach python 3 compatibility 2018-10-25 21:45:58 +02:00
show_testsuite_time Print number of slow tests from script rather than wscript. 2014-11-24 13:06:46 +01:00
traffic_learner scripts: Scripts to replay and generate samba traffic 2017-08-17 04:06:06 +02:00
traffic_replay traffic_replay: Generate users faster by writing to local DB 2018-10-31 00:30:16 +01:00
traffic_summary.pl traffic_summary: avoid uninitialised variable warning 2017-08-17 04:06:06 +02:00