1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/python/samba/emulate
Tim Beale 5ad7fc7335 traffic_replay: Prevent users having 1000+ memberOf links
When adding 10,000 users, one user would end up in over 1000 groups.
With 100,000 users, it would be more like 10,000 groups. While it makes
sense to have groups with large numbers of users, having a single user
in 1000s of groups is probably less realistic.

This patch changes the shape of the Pareto distribution that we use to
assign users to groups. The aim is to cap users at belonging to at most
~500 groups. Increasing the shape of the Pareto distribution pushes the
user assignments so they're closer to the average, and the tail (with
users in lots of groups) is not so large).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2018-11-04 23:55:16 +01:00
..
__init__.py scripts: Scripts to replay and generate samba traffic 2017-08-17 04:06:06 +02:00
traffic_packets.py python/samba/emulate: PY3 port of samba.tests.emulate.traffic_packet 2018-09-05 23:27:13 +02:00
traffic.py traffic_replay: Prevent users having 1000+ memberOf links 2018-11-04 23:55:16 +01:00