summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-05-02 05:04:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2018-05-12 02:09:29 +0200
commitfd2bcd5d1033d7801e0b955d25279b2d8849c0ae (patch)
treeb6dc32e5071453e79a0f74ed7544300ab2a3e912 /python
parent7c93fb57f598a8d0d2528c950b9eec2cf5e14189 (diff)
downloadsamba-fd2bcd5d1033d7801e0b955d25279b2d8849c0ae.tar.gz
samba-fd2bcd5d1033d7801e0b955d25279b2d8849c0ae.tar.bz2
samba-fd2bcd5d1033d7801e0b955d25279b2d8849c0ae.zip
traffic: set domain on user_creds and machine_creds
The domain is missing in traffic user and machine credential, this will cause some packet tests fail against windows. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r--python/samba/emulate/traffic.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/samba/emulate/traffic.py b/python/samba/emulate/traffic.py
index 03a24f4161c..eaa0c934049 100644
--- a/python/samba/emulate/traffic.py
+++ b/python/samba/emulate/traffic.py
@@ -456,6 +456,7 @@ class ReplayContext(object):
self.user_creds.set_workstation(self.netbios_name)
self.user_creds.set_password(self.userpass)
self.user_creds.set_username(self.username)
+ self.user_creds.set_domain(self.domain)
if self.prefer_kerberos:
self.user_creds.set_kerberos_state(MUST_USE_KERBEROS)
else:
@@ -513,6 +514,7 @@ class ReplayContext(object):
self.machine_creds.set_secure_channel_type(SEC_CHAN_WKSTA)
self.machine_creds.set_password(self.machinepass)
self.machine_creds.set_username(self.netbios_name + "$")
+ self.machine_creds.set_domain(self.domain)
if self.prefer_kerberos:
self.machine_creds.set_kerberos_state(MUST_USE_KERBEROS)
else: