diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-01-25 18:04:29 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2018-02-21 14:19:18 +0100 |
commit | 1a258b6b0f667ec077639a7cfe826e5e25f46768 (patch) | |
tree | e575e37be0c5b3809ecbc9520703d3b212938f13 /python/samba | |
parent | da784305e7b306664b79d30a734d45582f5bf4dd (diff) | |
download | samba-1a258b6b0f667ec077639a7cfe826e5e25f46768.tar.gz |
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>
Diffstat (limited to 'python/samba')
-rw-r--r-- | python/samba/emulate/traffic_packets.py | 16 |
1 files 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 @@ def packet_lsarpc_14(packet, conversation, context): 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 @@ def packet_lsarpc_15(packet, conversation, context): 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 @@ def packet_lsarpc_76(packet, conversation, context): 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 @@ def packet_lsarpc_77(packet, conversation, context): 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 |