]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
emulate/traffic: add sAMAccountName in create_group
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 7 Aug 2018 04:04:48 +0000 (16:04 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2018 05:08:25 +0000 (07:08 +0200)
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 <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/emulate/traffic.py

index cd1b6bb6421830d00b168d9f4ace9bb123032c3c..49ad49a55cc34b9c79119a494395a45103adb6f5 100644 (file)
@@ -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