Commit Graph

32 Commits

Author SHA1 Message Date
Ronnie Sahlberg a06d496b18 Renamed SAM_DOMAIN_INFO into DELTA_DOMAN.
Added names for all structure fields and fixed up bottom half of the structure which was completely broken and wrong.
Added IDL definition for this structure. Implementors may want to look at it.

svn path=/trunk/; revision=5829
2002-07-07 01:07:23 +00:00
Ronnie Sahlberg 4809fcca33 NETLOGON update.
Changed the name of SAM_ACCOUNT_INFO to the real name : DELTA_USER
also fixed some bugs in this structure. Surprised that ethereal could
dissect this structure at all previously since the structure description was
broken. Pure luck I guess.
Other implementors of NETLOGON would benefit from looking at ethereal source
in the future since it seems the public IDL definitions for this interface is
very buggy.

svn path=/trunk/; revision=5823
2002-07-06 00:22:05 +00:00
Ronnie Sahlberg 78a1b4f460 Fixed stupid bug I added when updating a structure preparing for the rewrite/update.
Fixed some other buglets as well at the same time.

svn path=/trunk/; revision=5820
2002-07-05 08:59:31 +00:00
Ronnie Sahlberg ba8a7bfdc2 More NETLOGON updates
svn path=/trunk/; revision=5814
2002-07-02 14:41:51 +00:00
Ronnie Sahlberg b84e41cf95 More NETLOGON updates
svn path=/trunk/; revision=5813
2002-07-02 10:11:20 +00:00
Ronnie Sahlberg d2c6e25aef tiny netlogon update
svn path=/trunk/; revision=5808
2002-07-01 13:20:55 +00:00
Ronnie Sahlberg 777b598595 Update to NETLOGON dissector
svn path=/trunk/; revision=5807
2002-07-01 13:18:21 +00:00
Ronnie Sahlberg 59de9ba8f8 NETLOGON update
svn path=/trunk/; revision=5804
2002-06-30 11:42:47 +00:00
Ronnie Sahlberg c8c5643a23 First checkin for NETLOGON cleanup
svn path=/trunk/; revision=5803
2002-06-30 11:33:27 +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 501daf1770 Removed some trailing commas from various DCERPC dissectors.
svn path=/trunk/; revision=5604
2002-05-31 00:31:13 +00:00
Guy Harris ae88c45ef0 From Joerg Mayer: make a pile of stuff not used outside one source file
static, and add a new "packet-data.h" to declare "proto_data".

Display escape sequences in octal in the IAPP dissector, as is now done
in the RADIUS dissector.

svn path=/trunk/; revision=5441
2002-05-10 23:20:38 +00:00
Guy Harris 12ec058306 From Joerg Mayer: mark unused arguments as such.
svn path=/trunk/; revision=5390
2002-05-04 10:41:16 +00:00
Ronnie Sahlberg e6b32ff74a Added some new discovered names for some NETLOGON functions
svn path=/trunk/; revision=5370
2002-05-03 11:16:55 +00:00
Guy Harris 9a80f0a521 Removal (or, at least, #ifdeffing out) of unused variables and
functions, from David Frascone.

svn path=/trunk/; revision=5288
2002-04-29 08:20:18 +00:00
Tim Potter 21c3c06391 Dissect ntstatus codes instead of uint32 for response packets.
Display pretty names in COL_INFO for commonly used functions
(RequestChallenge, Auth2, SamLogon).

svn path=/trunk/; revision=5207
2002-04-20 07:15:19 +00:00
Guy Harris 92e27e03c1 Add a "proto_register_dcerpc_smb()" which registers ett_ values for
"packet-dcerpc-nt.c", and registers "dcerpc_smb_init()" as an
initialization routine.  Take the ett_ registration out of the latter
routine, and also take out the "do this only once" stuff.

Get rid of the initialization routines for netlogon, samr, and spoolss;
they just call "dcerpc_smb_init()", which is now an initialization
routine of its own.

The policy hash initialization should be done before every capture, so
it should be done in an initialization routine, and should not do any
"do this only once" stuff.  It should also be called only once before
every capture, rather than 3 times.

The ett_ initialization should, however, be done at the same time all
other ett_ initialization is done - at protocol registration time - so
it should be done in a "proto_register_" routine.

This fixes a bug I saw wherein

	1) the tree for Unicode strings was open by default

and

	2) if you closed one and then exited, Ethereal would crash.

The problem is that "proto_register_subtree_array()" doesn't expand the
array, it just bumps the number of registered ett_ values; the array is
allocated in "proto_init()".  As such, if you register ett_ values with
"proto_register_subtree_array()" *after* "proto_init()" is called - and,
even for the first capture, initialization routines are called after
"proto_init()" is called - you will get ett_ numbers that go past the
number of elements in the array.

Move the declaration of "ett_nt_unicode_string" to "packet-dcerpc-nt.h",
as it's exported from "packet-dcerpc-nt.c".

Get rid of the declaration of "dcerpc_smb_init()" in
"packet-dcerpc-nt.h", and make it static, as it's no longer called from
outside "packet-dcerpc-nt.c".

svn path=/trunk/; revision=5196
2002-04-18 00:29:17 +00:00
Ronnie Sahlberg 7a2e668b0a Remove some temporary functions from NETLOGON now that the real functions
exist in LSA.

svn path=/trunk/; revision=5183
2002-04-17 09:32:48 +00:00
Ronnie Sahlberg cfbe21e383 LSA dissector updates. Adds a lot of LSA functions to the dissector.
Also export dissect-nt-GUID() from netlogon since this structure is common to
other interfaces as well.

svn path=/trunk/; revision=5181
2002-04-17 09:24:09 +00:00
Tim Potter 8241e67243 Use policy handle hash code in DCERPC/SMB SAMR dissector.
Start to move some common stuff into packet-dcerpc-nt.[ch]

svn path=/trunk/; revision=5176
2002-04-17 07:52:26 +00:00
Guy Harris 02115cdb39 Fix "dissect_ndr_nt_UNICODE_STRING_str()" so that the "di->levels" value
is decremented after every level is appended to, so that it correctly
specifies the number of levels up the tree to which to append stuff.

Fix some arguments to various printing routines to specify the correct
level.  This includes making "dissect_ndr_nt_UNICODE_STRING()" add 1 to
the level argument it's passed before passing it on to
"dissect_ndr_pointer()".

Add a "netlogon_dissect_UNICODE_STRING()" routine to put the fields of a
bunch of NDR_POINTER_REF UNICODE_STRING values into subtrees.

Fix the labels passed as arguments in a bunch of "dissect_ndr_pointer()"
calls.

svn path=/trunk/; revision=5011
2002-03-24 12:25:40 +00:00
Ronnie Sahlberg 6836cadee8 Some minor bugfixes for netlogon
svn path=/trunk/; revision=4960
2002-03-17 07:43:11 +00:00
Ronnie Sahlberg 7791aabe52 Added a value_string for the countreis which have their MS contry code listed
at www.unicode.org and made samr and netlogon use it.

svn path=/trunk/; revision=4943
2002-03-14 10:04:02 +00:00
Ronnie Sahlberg 5906cde27a hf_netlogon_code did not have an hf_[] entry.
some cruft removed from LSA_SECURITY_DESCRIPTOR that is not used anymore since
we call the dissector in packet-smb.c

svn path=/trunk/; revision=4942
2002-03-14 09:19:17 +00:00
Guy Harris e4832c8ca8 Fix a typo.
svn path=/trunk/; revision=4941
2002-03-14 05:46:59 +00:00
Ronnie Sahlberg 5012aa7acd Make LSA_SECURITY_DESCRIPTOR dissector call dissect_nt_sec_desc()
instead of just displaying it as some hex string.

svn path=/trunk/; revision=4937
2002-03-13 11:19:16 +00:00
Ronnie Sahlberg 40edb36c07 Added mockups for LSA_SECRET and LSA_SECURITY_DESCRIPTOR inside
packet-dcerpc-netlocon.c so that SamDelta_reply packets will be dissected properly.

svn path=/trunk/; revision=4936
2002-03-13 10:52:22 +00:00
Ronnie Sahlberg 7224c4f42a Fixed bug in SAMDELTAS_request.
There is still a bug in the dissection of SAMDELTA_reply but this is due to
LSA_SECRET not being implemented yet which is embedded in one of the
netlogon structures.

svn path=/trunk/; revision=4935
2002-03-13 09:03:28 +00:00
Ronnie Sahlberg 5a801aacfa Update dissect_ndr_nt_STRING so it can also accept FT_BYTES and for that type
display the data as a hexadecimal string.

Update netlogon so that nt and lm challenge response bytes are displayed
in hexadecimal form and not pseudo-ascii

svn path=/trunk/; revision=4934
2002-03-13 07:38:34 +00:00
Ronnie Sahlberg 385c80e202 Small fix for dissect_ndr_nt_UNICODE_STRING_str() in packet-dcerpc-nt.c
so that NETLOGON will not dump core (since netlogon has these structs as top
level reference pointers)

Addition of full netlogon dissection. Full in the sense as it assumes the idl
is correct and complete.
Many calls and fields are unknown so they get dissected with "unknown long,
 contact ethereal-dev@... if you know what it is".

svn path=/trunk/; revision=4929
2002-03-12 08:16:41 +00:00
Guy Harris ee5ca25d31 Include files from the "epan" directory and subdirectories thereof with
"epan/..." pathnames, so as to avoid collisions with header files in any
of the directories in which we look (e.g., "proto.h", as some other
package has its own "proto.h" file which it installs in the top-level
include directory).

Don't add "-I" flags to search "epan", as that's no longer necessary
(and we want includes of "epan" headers to fail if the "epan/" is left
out, so that we don't re-introduce includes lacking "epan/").

svn path=/trunk/; revision=4586
2002-01-21 07:37:49 +00:00
Guy Harris 81d7ded14e Rename the "packet-msrpc-XXX.[ch]" files to "packet-dcerpc-XXX.[ch]", as
per Todd Sabin's suggestion.

svn path=/trunk/; revision=4242
2001-11-21 02:08:57 +00:00