The Samba-Bugzilla – Attachment 13991 Details for
Bug 13284
traffic_packets.py: let Lookup{Sids,Names}() work against a sane server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.8 cherry-picked from master
bug13284-v48.patch (text/plain), 2.41 KB, created by
Ralph Böhme
on 2018-02-27 10:18:02 UTC
(
hide
)
Description:
Patch for 4.8 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2018-02-27 10:18:02 UTC
Size:
2.41 KB
patch
obsolete
>From d232ffa3e71bb250347e46709d0a685535654a80 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Thu, 25 Jan 2018 18:04:29 +0100 >Subject: [PATCH] traffic_packets.py: let Lookup{Sids,Names}() work against a > sane server > >In order to resolve predefined sids or names we need to use >level = LSA_LOOKUP_NAMES_ALL (1). > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=13284 > >Signed-off-by: Stefan Metzmacher <metze@samba.org> >Reviewed-by: Ralph Boehme <slow@samba.org> >(cherry picked from commit 1a258b6b0f667ec077639a7cfe826e5e25f46768) >--- > python/samba/emulate/traffic_packets.py | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/python/samba/emulate/traffic_packets.py b/python/samba/emulate/traffic_packets.py >index 185d1d57476..688c935cdc0 100644 >--- a/python/samba/emulate/traffic_packets.py >+++ b/python/samba/emulate/traffic_packets.py >@@ -384,7 +384,7 @@ packet_lsarpc_6 = null_packet > sids = lsa.TransSidArray() > names = [lsa.String("This Organization"), > lsa.String("Digest Authentication")] >- level = 5 >+ level = lsa.LSA_LOOKUP_NAMES_ALL > count = 0 > c.LookupNames(pol_handle, names, sids, level, count) > return True >@@ -406,7 +406,7 @@ packet_lsarpc_6 = null_packet > sids.sids = [sid] > sids.num_sids = 1 > names = lsa.TransNameArray() >- level = 5 >+ level = lsa.LSA_LOOKUP_NAMES_ALL > count = 0 > > c.LookupSids(pol_handle, sids, names, level, count) >@@ -464,10 +464,10 @@ packet_lsarpc_68 = null_packet > sids.sids = [sid] > sids.num_sids = 1 > names = lsa.TransNameArray2() >- level = 5 >+ level = lsa.LSA_LOOKUP_NAMES_ALL > count = 0 >- lookup_options = 0 >- client_revision = 2 >+ lookup_options = lsa.LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES >+ client_revision = lsa.LSA_CLIENT_REVISION_2 > c.LookupSids3(sids, names, level, count, lookup_options, client_revision) > return True > >@@ -478,10 +478,10 @@ packet_lsarpc_68 = null_packet > sids = lsa.TransSidArray3() > names = [lsa.String("This Organization"), > lsa.String("Digest Authentication")] >- level = 5 >+ level = lsa.LSA_LOOKUP_NAMES_ALL > count = 0 >- lookup_options = 0 >- client_revision = 2 >+ lookup_options = lsa.LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES >+ client_revision = lsa.LSA_CLIENT_REVISION_2 > c.LookupNames4(names, sids, level, count, lookup_options, client_revision) > return True > >-- >2.13.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 13284
: 13991