Commit Graph

92 Commits

Author SHA1 Message Date
Jörg Mayer 3e2633a0f4 char *drep -> guint8 *drep
svn path=/trunk/; revision=9735
2004-01-19 20:10:37 +00:00
Tim Potter 5d483e957e More operation names updates from Jean-Baptiste Marchand.
svn path=/trunk/; revision=8564
2003-09-29 00:01:27 +00:00
Ronnie Sahlberg 3eb20bc78b From JBM
Update all names for SAMR and LSA functions so they match the function names
in the API

svn path=/trunk/; revision=8516
2003-09-23 12:06:20 +00:00
Ronnie Sahlberg 33662264ed Update to LSA LookupPrivilegeDisplayName
svn path=/trunk/; revision=8356
2003-09-03 09:48:50 +00:00
Richard Sharpe 68d7f5d47f packet-dcerpc-lsa had some idea that EnumDomainsEx had a funny NDR rep for
the array of domain info stuff returned. Removing the offending bit
fixed the dissection, at least of a capture we have.

svn path=/trunk/; revision=8195
2003-08-20 00:09:36 +00:00
Tim Potter 4ccbfa3edc Guy suggested that the dcerpc opnum value_string code could be simplified
somewhat.  Now the dynamic initialisation of the value_string is contained
in the value_string_from_subdissectors() function instead of being
distributed amongst the dcerpc dissectors.

svn path=/trunk/; revision=8123
2003-08-04 02:49:04 +00:00
Tim Potter 623f5b865d Dynamically create DCERPC opnum value_strings from the subdissector
list rather than duplicating this information in the dissector.  Some
of the opnum strings were starting to get out of date as developers
forgot to update the information in both places.

svn path=/trunk/; revision=7936
2003-06-26 04:30:31 +00:00
Guy Harris ef77cb578a In the policy handle hashing, handle more than one policy handle having
the same value, as an open might return handle XXX, handle XXX might
then be closed, and a subsequent handle might return handle XXX, and we
want to keep the two handles distinct to avoid, for example, displaying
handles closed before they're opened.

In policy handle open replies, store the handle name only if the
operation succeeded.  We can now do that without parsing the packet
twice.

Have "dissect_nt_policy_hnd()" optionally return, through a pointer, the
protocol tree item for the handle, so that its caller can decorate the
item with the name of the handle - that's done on opens, where we do
that only if the operation succeeds.

svn path=/trunk/; revision=7787
2003-06-05 04:22:04 +00:00
Ronnie Sahlberg ecc98ba7fc Some minor updates to LSA.
* Add a few missing dissections of return codes in reply packets
* fix a problem in LsaQuerySecret where two of the parameters are actually
unique pointer to unique pointer to object and not just one level of pointers.
* update the dissection of LSA_SECRET to look more correct in some captures.

Anyone that knows the content of the LSA_SECRET object is welcome to mail a description to me.

svn path=/trunk/; revision=7765
2003-05-30 11:30:09 +00:00
Tim Potter 07ab324c4e I don't think there is any such thing as a pointer to a policy handle.
Just dissect them in place.

svn path=/trunk/; revision=7722
2003-05-23 05:20:58 +00:00
Ronnie Sahlberg 1909e86e15 Add snooping of sid->domain mapping from POLICY_ACCOUNT_DOMAIN_INFO structures
svn path=/trunk/; revision=7713
2003-05-22 11:48:28 +00:00
Ronnie Sahlberg 5512ef4745 Rearrange sid snooping a bit.
Add snooping of sid->domain mapping for POLICY_DNS_DOMAIN_INFO

svn path=/trunk/; revision=7711
2003-05-22 11:03:15 +00:00
Ronnie Sahlberg 75f18ecfee Make one QIP infolevel specify a sid hf field and update the embryonic sid snooping framework to handle the new hw name
svn path=/trunk/; revision=7709
2003-05-21 10:39:19 +00:00
Ronnie Sahlberg 8271c6a106 Change the interface to dissect_ndr_nt_SID to take the extra parameter hf_sid
if the caller wants something else instead of "smb.sid"

svn path=/trunk/; revision=7707
2003-05-21 10:06:29 +00:00
Ronnie Sahlberg 1cedc6aab9 Change the interface to dissect_ndr_nt_PSID to take one extra parameter which if !=-1 is a hf field for the sid to use instead of the default smb.sid one.
svn path=/trunk/; revision=7706
2003-05-21 09:34:54 +00:00
Tim Potter cabe2eebf8 More work on dissecting generic and standard mappings for NT access masks.
svn path=/trunk/; revision=7668
2003-05-15 02:14:00 +00:00
Tim Potter e3dabb27e2 Move the specific rights dissection function and name into a structure
instead of passing them around as separate parameters.  This is a
prelude to adding generic and standard mapping to the access mask
dissection.

svn path=/trunk/; revision=7591
2003-04-28 04:44:54 +00:00
Tim Potter fea3d754fd Call dissect_nt_status() instead of dissect_ndr_uint32() when dissecting
return status codes.

svn path=/trunk/; revision=7576
2003-04-27 04:33:10 +00:00
Ronnie Sahlberg bca3332efd Not all strings in MS interfaces are unicode.
Rename cb_str_postprocess which handles unicode strings to cb_wstr_postprocess.

Add cb_str_postprocess which handles ASCII strings

svn path=/trunk/; revision=7572
2003-04-27 00:49:14 +00:00
Tim Potter 795926735d When dissecting specific rights, pass a name string down so the
proto item says "foo specific rights" instead of just "specific
rights".

svn path=/trunk/; revision=7401
2003-04-03 05:43:59 +00:00
Guy Harris 64991e3fa1 Have "dissect_ndr_counted_string()" add 2, not 1, to its argument, as it
adds 2 levels to the tree.  Fix calls to it not to add 1 for that level.

The NT and LM challenges in a NETWORK_INFO structure are opaque arrays
of bytes, not Unicode strings; dissect them as such, adding a new
routine "dissect_ndr_counted_byte_array()" for that purpose.

Get rid of some extra colons in names - the colon is put there if a
string is appended, so putting a colon in there explicitly gives double
colons.

Decorate some higher-level tree nodes with strings.

svn path=/trunk/; revision=7107
2003-02-08 09:41:44 +00:00
Guy Harris e9f0f4b74f Rename "dissect_ndr_char_string()" and "dissect_ndr_wchar_string()" to
"dissect_ndr_char_cvstring()" and "dissect_ndr_wchar_cvstring()", to
indicate that they're for conformant varying strings.

Rename "dissect_ndr_character_array()" to "dissect_ndr_cvstring()", to
indicate that it's for conformant varying strings.

svn path=/trunk/; revision=7096
2003-02-07 22:44:54 +00:00
Guy Harris 9a348d5736 Rename "dissect_ndr_char_array" and "disect_ndr_wchar_array" to
"dissect_ndr_char_string" and "dissect_ndr_wchar_string", to make it
clearer what it does.

svn path=/trunk/; revision=7095
2003-02-07 22:31:32 +00:00
Guy Harris 5fbd5615c1 Decorate the top-level items for the account name in
POLICY_ACCOUNT_DOMAIN_INFO and the domain in TRUSTED_DOMAIN with the
string.

svn path=/trunk/; revision=7089
2003-02-07 08:33:07 +00:00
Guy Harris 6e33ba9d28 Decorate the top-level tree items for "LSA_TRANSLATED_NAME" and an
"LSA_TRUST_INFORMATION" with the account name.

svn path=/trunk/; revision=7088
2003-02-07 06:38:40 +00:00
Tim Potter e15193fa72 Fix callers to dissect_nt_sec_desc() to use new function interface.
Dissection of security descriptors in SPOOLSS RPC calls now display
the correct meaning of the specific access mask bits.

svn path=/trunk/; revision=7087
2003-02-07 06:04:28 +00:00
Tim Potter e2d77c2911 Remove out of date comment.
Display server name in COL_INFO for OpenPolicy2 request.

svn path=/trunk/; revision=7070
2003-02-04 05:22:41 +00:00
Tim Potter 6b8a47a691 Convert to new DCERPC string handling functions. There are still some
cosmetic bugs to work out though.

svn path=/trunk/; revision=7069
2003-02-03 02:14:01 +00:00
Guy Harris 892de6f27c Put in a missing assignment of the value of
"dissect_ndr_nt_UNICODE_STRING_cb()" to "offset".

svn path=/trunk/; revision=7061
2003-01-31 07:27:27 +00:00
Guy Harris 5dc66497b7 Generalize "cb_str_postprocess()" to allow the string to be appended to
items N levels up from the item being processed, and use that to
decorate the tree as it was decorated before.

svn path=/trunk/; revision=7043
2003-01-30 08:19:39 +00:00
Tim Potter 497042348b Display random useful tidbits in COL_INFO.
svn path=/trunk/; revision=7040
2003-01-30 05:38:56 +00:00
Tim Potter 1d6acba45c Convert dissector to callback based version of dissect_ndr_pointer().
Strings that used to call with levels != -1 should call the
callback helper which will append the string to the pointer item.

svn path=/trunk/; revision=7017
2003-01-28 06:39:41 +00:00
Guy Harris 522ef0a1b7 The LSA_REFERENCED_DOMAIN_LIST pointer in a LookupSIDs2 reply appears to
be a UNIQUE pointer, at least from one capture I'e seen, just as it is
in a LookupSIDs reply; make it so.

svn path=/trunk/; revision=6515
2002-10-28 20:12:30 +00:00
Ronnie Sahlberg 5f4545bce0 From Luke Howard: Bugfix for one NETLOGON command
svn path=/trunk/; revision=6348
2002-09-28 09:43:10 +00:00
Jörg Mayer 7c4176d868 Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.

svn path=/trunk/; revision=6117
2002-08-28 21:04:11 +00:00
Guy Harris e495c4917e "lsa.key" is a Unicode string, and is ultimately put into the protocol
tree with "proto_tree_add_string()", so it has to have the type
FT_STRING, not FT_BYTES.

svn path=/trunk/; revision=6096
2002-08-27 19:02:51 +00:00
Tim Potter 50b37822a0 Some cleanups and fixes from Guy:
- combine proto_tree_add_text() and proto_tree_append_text() calls in the
   access mask dissector

 - make the specific access bits dissector functions return void instead of
   an offset

I think Samba has the create user reply wrong.  There is perhaps a uint32
marked as unknown that shouldn't be there.  Removing this parses all the
captures I have.

svn path=/trunk/; revision=6057
2002-08-22 01:13:13 +00:00
Tim Potter bc792aa9a4 Call dissect_nt_access_mask() instead of dissect_ndr_uint32()
svn path=/trunk/; revision=6054
2002-08-21 21:31:15 +00:00
Ronnie Sahlberg fb477fa5a9 Updated LSA. Function 2f is called SetInformationPolicy2
svn path=/trunk/; revision=5974
2002-08-09 09:27:33 +00:00
Guy Harris 7f881fdcd4 From Jim McDonough: support for LsaQueryInformationPolicy2 in the LSA
dissector.

svn path=/trunk/; revision=5924
2002-07-31 21:22:39 +00:00
Tim Potter 6d6dce305d Change each DCERPC dissector to pass in a hf value on initialisation
for a value_string that corresponds to that dissectors opnums.  Pass
in -1 if no such table is available.

svn path=/trunk/; revision=5749
2002-06-24 00:03:18 +00:00
Tim Potter e77d6b098b Replace sub-dissector names with InterCaps names instead of the ugly
all caps version.

svn path=/trunk/; revision=5719
2002-06-21 02:17:32 +00:00
Ronnie Sahlberg 2cdcbf6d3c Added dissection of the request to NetrShareAdd
svn path=/trunk/; revision=5698
2002-06-18 13:18:30 +00:00
Tim Potter 501daf1770 Removed some trailing commas from various DCERPC dissectors.
svn path=/trunk/; revision=5604
2002-05-31 00:31:13 +00:00
Ronnie Sahlberg 259903dc66 Changed toplevel REF pointer dissection to create a subtree. Not creating a subtree was a design mistake which caused ugliness in the unicode string str dissector and in other places.
Dissectors will temporarily have less pretty output for topleve ref pointers until their output is retuned.

svn path=/trunk/; revision=5573
2002-05-27 09:50:58 +00:00
Guy Harris 6a79ad7e91 In "dissect_nt_policy_hnd()":
add arguments to specify whether the policy handle is being
	opened or closed, and don't set the "open frame" for the handle
	unless it's being opened and don't set the "close frame" for the
	handle unless it's being closed;

	store the policy handle before fetching it, so that an open or
	close is marked appropriately in the protocol tree on the first
	pass;

	if the policy handle has a name associated with it, put that
	name into the top-level item for the policy handle.

In "packet-dcerpc-spoolss.c":

	get rid of aun unused variable;

	make "setjob_commands[]" static, as it's not used outside
	"packet-dcerpc-spoolss.c";

	put a "VALS()" call around the reference to "setjob_commands",
	to squelch compiler warnings;

	give the SPOOLSS return code field the appropriate
	"value_string" array.

svn path=/trunk/; revision=5448
2002-05-11 22:29:43 +00:00
Ronnie Sahlberg aec8996522 Added LSA functions 0x38 and 0x3b. These were the two last LSA functions and now
all functions described in lsarpc.idl had been implemented.

svn path=/trunk/; revision=5351
2002-05-02 08:47:23 +00:00
Ronnie Sahlberg 67682ad896 Added LSAEnumerateTrustedDomainsEX and LSACreateTrustedDomainEX
svn path=/trunk/; revision=5350
2002-05-02 08:38:24 +00:00
Ronnie Sahlberg 49c9f431a0 Added LSAGetUserName
svn path=/trunk/; revision=5349
2002-05-02 08:18:53 +00:00
Ronnie Sahlberg 478548e282 Added LSALookupSIDs2
svn path=/trunk/; revision=5346
2002-05-02 06:46:31 +00:00