traffic_packets: add trailing $ to fix packet_rpc_netlogon_30
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 1 May 2018 05:15:09 +0000 (17:15 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 12 May 2018 00:09:29 +0000 (02:09 +0200)
commit9cabb16b489b43495472b0e7229ba864daa7d479
tree3406e43c253e332bae58e7a3d3eb16cc4da3089e
parenteafda9137afba96e2375262f846f79597583ab82
traffic_packets: add trailing $ to fix packet_rpc_netlogon_30

For `NetrServerPasswordSet2`, the 2nd arg `account_name` must end with a
$, otherwise windows will return an `Access Denied` error.

Use `creds.get_username()` instead of `creds.get_workstation()` to
include the trailing $.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/emulate/traffic_packets.py