From: Joe Guo Date: Tue, 7 Aug 2018 04:04:48 +0000 (+1200) Subject: emulate/traffic: add sAMAccountName in create_group X-Git-Tag: tdb-1.3.17~2179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=371c5c70f78a65af6fcc4d124eae8c10b26bdc48;p=thirdparty%2Fsamba.git emulate/traffic: add sAMAccountName in create_group While using script/traffic_replay to generate users and groups, we get autogenerated group name like: $2A6F42B2-39FAF4556E2BE379 This patch specify sAMAccountName to overwriten the name. Signed-off-by: Joe Guo Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/emulate/traffic.py b/python/samba/emulate/traffic.py index cd1b6bb6421..49ad49a55cc 100644 --- a/python/samba/emulate/traffic.py +++ b/python/samba/emulate/traffic.py @@ -1708,6 +1708,7 @@ def create_group(ldb, instance_id, name): ldb.add({ "dn": dn, "objectclass": "group", + "sAMAccountName": name, }) end = time.time() duration = end - start