Commit Graph

54 Commits

Author SHA1 Message Date
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
Ronnie Sahlberg b8c9f70f2f From Luke H, a new function name and name of some structures/fields used by that function.
svn path=/trunk/; revision=6094
2002-08-27 12:33:15 +00:00
Ronnie Sahlberg 17e72016ac Changed two ulong REF pointers to just calle the uint32 dissector
directly instead of through a top level ref pointer
and changed the hf field to the proper one.

svn path=/trunk/; revision=6010
2002-08-18 07:24:42 +00:00
Ronnie Sahlberg d8d551c7ed Fix some incorrect poitner types. From Jean-Francois Micouleau
svn path=/trunk/; revision=6009
2002-08-18 07:18:55 +00:00
Ronnie Sahlberg 986d3d4a03 Added new function name LogonSamLogonEx
svn path=/trunk/; revision=6004
2002-08-17 00:45:03 +00:00
Ronnie Sahlberg 4d4df14ace Fixed incorrect NDR pointer type in Authenticate3
svn path=/trunk/; revision=6003
2002-08-17 00:35:46 +00:00
Tim Potter a8030c39d9 Convert some of the all caps names to more friendly names.
svn path=/trunk/; revision=6002
2002-08-16 22:24:07 +00:00
Ronnie Sahlberg 93164e3978 Changed some incorrect pointer types. MS interfaces seems never to use PTR
pointers.

svn path=/trunk/; revision=5978
2002-08-11 14:08:08 +00:00
Ronnie Sahlberg e8d3107fc4 Some more function updates
svn path=/trunk/; revision=5948
2002-08-04 01:37:07 +00:00
Ronnie Sahlberg 052b8d6a05 Updated LogonControl2 and ServerAuthenticate2 functions
svn path=/trunk/; revision=5935
2002-08-03 10:48:46 +00:00
Guy Harris e7dbdc13fa The time stamps in credentials, at least, sometimes appear to be
UNIX-style "time_t" values (seconds since January 1, 1970, 00:00:00 GMT
- yes, GMT, not local time as in UTIME values).

They also appear to require 4-byte alignment.

svn path=/trunk/; revision=5855
2002-07-10 06:54:24 +00:00
Ronnie Sahlberg c068194c6b Updated GetDCName LogonControl and GetAnyDCName
svn path=/trunk/; revision=5845
2002-07-09 13:32:29 +00:00
Ronnie Sahlberg c819581499 Updated ACCOUNTDELTAS and ACCOUNTSYNC functions
svn path=/trunk/; revision=5841
2002-07-08 14:01:46 +00:00
Ronnie Sahlberg 6f7c44df42 Update of DATABASESYNC function
svn path=/trunk/; revision=5840
2002-07-08 12:53:28 +00:00
Ronnie Sahlberg e6f71eff0d Update for NetrDatabaseDeltas function.
svn path=/trunk/; revision=5837
2002-07-07 13:41:31 +00:00
Ronnie Sahlberg a6ca5d5db2 Added the final two cases for the DELTA_UNION union. Fixed up DELTA_UNION.
svn path=/trunk/; revision=5836
2002-07-07 12:29:31 +00:00
Ronnie Sahlberg efff995e4d Updated DELTA_TRUSTED_DOMAINS and DELTA_ACCOUNTS
svn path=/trunk/; revision=5835
2002-07-07 11:04:09 +00:00
Ronnie Sahlberg ec515ae59f Updated DELTA_ALIAS_MEMBER and DELTA_POLICY
svn path=/trunk/; revision=5834
2002-07-07 09:49:16 +00:00
Ronnie Sahlberg 082e7f6317 Updated DELTA_GROUP_MEMBER and DELTA_ALIAS structures.
svn path=/trunk/; revision=5833
2002-07-07 05:15:54 +00:00
Ronnie Sahlberg f2260a13f6 Tiny DELTA_RENAME_USER and DELTA_RENAME_ALIAS update
svn path=/trunk/; revision=5832
2002-07-07 03:04:03 +00:00
Ronnie Sahlberg 956478dfe1 DELTA_RENAME_GROUP update
svn path=/trunk/; revision=5831
2002-07-07 02:39:51 +00:00
Ronnie Sahlberg fd0d7e8ebd Verified and changed name of DELTA_GROUP dissector.
svn path=/trunk/; revision=5830
2002-07-07 02:25:39 +00:00
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