summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorTim Beale <timbeale@catalyst.net.nz>2019-06-13 16:18:27 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-07-24 02:24:27 +0000
commit6b1f9b4a5ff5450b0858d27dcc1af3021694be7d (patch)
tree5e043169c98a15006472a984b6dbdb24d70d06ac /python
parent9f504fd5a320edcbd3d763d4e0464f3cf7d270e1 (diff)
downloadsamba-6b1f9b4a5ff5450b0858d27dcc1af3021694be7d.tar.gz
traffic_replay: Make use of SCOPE_BASE explicit
i.e. avoid hard-coded numbers. 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_packets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/emulate/traffic_packets.py b/python/samba/emulate/traffic_packets.py
index 518bffac390..e42f7998f05 100644
--- a/python/samba/emulate/traffic_packets.py
+++ b/python/samba/emulate/traffic_packets.py
@@ -37,7 +37,7 @@ from samba.ntstatus import (
)
import samba
import dns.resolver
-
+from ldb import SCOPE_BASE
def uint32(v):
return ctypes.c_uint32(v).value
@@ -329,7 +329,7 @@ def packet_ldap_3(packet, conversation, context):
(scope, dn_sig, filter, attrs, extra, desc, oid) = packet.extra
if not scope:
- scope = 0
+ scope = SCOPE_BASE
samdb = context.get_ldap_connection()
dn = context.get_matching_dn(dn_sig)