1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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>
This commit is contained in:
Joe Guo 2018-08-07 16:04:48 +12:00 committed by Andrew Bartlett
parent ceed07fe89
commit 371c5c70f7

View 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