git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f504fd
)
traffic_replay: Make use of SCOPE_BASE explicit
author
Tim Beale
<timbeale@catalyst.net.nz>
Thu, 13 Jun 2019 04:18:27 +0000
(16:18 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 24 Jul 2019 02:24:27 +0000
(
02:24
+0000)
i.e. avoid hard-coded numbers.
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/emulate/traffic_packets.py
patch
|
blob
|
history
diff --git
a/python/samba/emulate/traffic_packets.py
b/python/samba/emulate/traffic_packets.py
index 518bffac390581864ce46b6a00bc1193e42bbc67..e42f7998f05a9f26300224e7fd60ad5866d7892d 100644
(file)
--- 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)