traffic_replay: fetch domain from creds other than opts
authorJoe Guo <joeg@catalyst.net.nz>
Sun, 6 May 2018 22:18:42 +0000 (10:18 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 12 May 2018 00:09:29 +0000 (02:09 +0200)
commit7181af9f9459d65df9df59ed447729e1c13a958c
treed6604edd83b1b9975bdfc51c00fe2481ce545fc0
parentfd2bcd5d1033d7801e0b955d25279b2d8849c0ae
traffic_replay: fetch domain from creds other than opts

For traffic_replay script, when user provides `--workgroup` or `-W` option,
it will be set on the creds option group, not the default opts one.

The previous code will not work properly when smb.conf file is missing.

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