summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-08-07 16:04:48 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-08-15 07:08:25 +0200
commit371c5c70f78a65af6fcc4d124eae8c10b26bdc48 (patch)
tree320b996801104ca966d19aaed7cf4bacac87dedb
parentceed07fe89d6bf80440b9951549c7247cb952388 (diff)
downloadsamba-371c5c70f78a65af6fcc4d124eae8c10b26bdc48.tar.gz
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 <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
-rw-r--r--python/samba/emulate/traffic.py1
1 files changed, 1 insertions, 0 deletions
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