mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
9f504fd5a3
commit
6b1f9b4a5f
@ -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)
|
||||
|
Reference in New Issue
Block a user