1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-09 17:49:29 +03:00

traffic: assign context domain at start

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall
2018-10-19 17:15:30 +13:00
committed by Douglas Bagnall
parent 17579dd810
commit 65c02fd68c

View File

@ -359,9 +359,8 @@ class ReplayContext(object):
statsdir=None,
ou=None,
base_dn=None,
domain=None,
domain=os.environ.get("DOMAIN"),
domain_sid=None):
self.server = server
self.netlogon_connection = None
self.creds = creds
@ -459,11 +458,6 @@ class ReplayContext(object):
self.lp.set("state directory", self.tempdir)
self.lp.set("tls verify peer", "no_check")
# If the domain was not specified, check for the environment
# variable.
if self.domain is None:
self.domain = os.environ["DOMAIN"]
self.remoteAddress = "/root/ncalrpc_as_system"
self.samlogon_dn = ("cn=%s,%s" %
(self.netbios_name, self.ou))