diff options
author | Tim Beale <timbeale@catalyst.net.nz> | 2019-06-13 16:04:46 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-24 02:24:27 +0000 |
commit | 9f504fd5a320edcbd3d763d4e0464f3cf7d270e1 (patch) | |
tree | 4f0dbd1d700b33424d1c8e33a5d672d519e7ad90 /python | |
parent | a073799ded5d26dfc7b37b82e7309e06034f95b1 (diff) | |
download | samba-9f504fd5a320edcbd3d763d4e0464f3cf7d270e1.tar.gz |
traffic_replay: Store total conversations on the replay context
This is useful info to know, and will be used in subsequent commits.
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/emulate/traffic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/samba/emulate/traffic.py b/python/samba/emulate/traffic.py index 7f720c98671..c511fef6557 100644 --- a/python/samba/emulate/traffic.py +++ b/python/samba/emulate/traffic.py @@ -355,6 +355,7 @@ class ReplayContext(object): server=None, lp=None, creds=None, + total_conversations=None, badpassword_frequency=None, prefer_kerberos=None, tempdir=None, @@ -389,6 +390,7 @@ class ReplayContext(object): self.last_drsuapi_bad = False self.last_netlogon_bad = False self.last_samlogon_bad = False + self.total_conversations = total_conversations self.generate_ldap_search_tables() def generate_ldap_search_tables(self): @@ -1607,6 +1609,7 @@ def replay(conversation_seq, context = ReplayContext(server=host, creds=creds, lp=lp, + total_conversations=len(conversation_seq), **kwargs) if len(accounts) < len(conversation_seq): |