From: Joe Guo Date: Wed, 2 May 2018 05:04:03 +0000 (+0000) Subject: traffic: set domain on user_creds and machine_creds X-Git-Tag: ldb-1.4.0~299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd2bcd5d1033d7801e0b955d25279b2d8849c0ae;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam --- 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: