traffic_replay: Generate machine accounts as well as users
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 22 Oct 2018 22:16:31 +0000 (11:16 +1300)
committerTim Beale <timbeale@samba.org>
Sun, 4 Nov 2018 22:55:17 +0000 (23:55 +0100)
commitbe51b51263a460e9790b8a210914a68499af7953
tree0c88b93013d4bf7e9099c80f0fc6b94a5ad3a99c
parent1906312c097812fbdca1e04f6fe70f5af6bbd596
traffic_replay: Generate machine accounts as well as users

Currently the tool only generates the machine accounts needed for
traffic generation. However, this isn't realistic if we're trying to use
the tool to generate users to simulate a large network.

This patch generates machine accoutns along with the user accounts.
Note we assume there will be more computer accounts than users in a real
network (e.g. work laptops, servers, etc), so generate slightly more
computer accounts.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/emulate/traffic.py