Commit Graph

92 Commits

Author SHA1 Message Date
Ronnie Sahlberg 6c963907d9 Added LSACloseTrustedDomainEX
svn path=/trunk/; revision=5345
2002-05-02 06:33:39 +00:00
Ronnie Sahlberg 9dba75997a Added LSAStorePrivateData and LSARetrievePrivateData
svn path=/trunk/; revision=5344
2002-05-02 06:21:52 +00:00
Ronnie Sahlberg 9eee5a67be Added LSALookupPrivilegedDisplayName
svn path=/trunk/; revision=5343
2002-05-02 06:13:07 +00:00
Guy Harris a06dd1c724 From Joerg Mayer: get rid of unused "pinfo" argument to
"dissect_nt_sec_desc()".

Also, get rid of code to handle lengths of -1 in "dissect_nt_sec_desc()"
- we never pass it a length of -1, as security descriptors aren't sent
over the wire with NDR syntax.

svn path=/trunk/; revision=5317
2002-04-30 23:48:15 +00:00
Ronnie Sahlberg 3db3147785 Added LSACreateAccount
svn path=/trunk/; revision=5310
2002-04-30 10:17:53 +00:00
Ronnie Sahlberg f4699e7346 Added LSALookupNames2
svn path=/trunk/; revision=5309
2002-04-30 10:14:34 +00:00
Ronnie Sahlberg 7eae4eaa8c Added LSAFunction_2e , LSAFunction_2f, LSAQueryDomainInformationPolicy and LSASetDomainInformationPolicy
svn path=/trunk/; revision=5308
2002-04-30 10:02:11 +00:00
Ronnie Sahlberg 1812a849c9 Added LSAOpenTrustedDomainByName
svn path=/trunk/; revision=5307
2002-04-30 09:46:48 +00:00
Ronnie Sahlberg d4f5fe8249 Added LSAQueryTrustedDomainInfo and LSASetTrustedDomainInfo
svn path=/trunk/; revision=5306
2002-04-30 09:40:41 +00:00
Ronnie Sahlberg 1931eb5880 Added LSAQueryTrustedDomainByName and LSASetTrustedDomainByName
svn path=/trunk/; revision=5305
2002-04-30 09:35:10 +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
Ronnie Sahlberg 6c553bf998 Added LSAAddAccountRights and LSARemoveAccountRights
svn path=/trunk/; revision=5286
2002-04-29 06:23:03 +00:00
Ronnie Sahlberg 3508d634d9 Added LSAEnumerateAccountRights
svn path=/trunk/; revision=5285
2002-04-29 06:15:31 +00:00
Guy Harris 8729e8b514 From Ronnie Sahlberg: the LSA_REFERENCED_DOMAIN_LIST pointer in a
LsaLookupNames reply appears to be a UNIQUE pointer rather than a REF
pointer.

svn path=/trunk/; revision=5284
2002-04-29 01:25:51 +00:00
Ronnie Sahlberg 67bb2c4457 Added LsaDeleteObject and LSAEnumerateAccountsWithUserRight
svn path=/trunk/; revision=5269
2002-04-28 10:33:30 +00:00
Ronnie Sahlberg faa2c52f4d Added LSAOpenSecret, LSASetSecret and LSAQuerySecret
svn path=/trunk/; revision=5268
2002-04-28 10:24:40 +00:00
Ronnie Sahlberg a665066485 Added LSAQueryInfoTrustedDomain and LSASetInfoTrustedDomain and support functions
svn path=/trunk/; revision=5267
2002-04-28 10:09:25 +00:00
Ronnie Sahlberg 18e5ef9640 LSAOpenAccount added according to lsarpc.idl
svn path=/trunk/; revision=5266
2002-04-28 07:06:30 +00:00
Ronnie Sahlberg 5937b3db4c LSACreateSecret added according to lsarpc.idl
svn path=/trunk/; revision=5265
2002-04-28 07:00:06 +00:00
Ronnie Sahlberg a01dfc55b1 Added LsaLookupNames according to lsarpc.idl hopefully it is correct
svn path=/trunk/; revision=5258
2002-04-27 03:54:17 +00:00
Guy Harris 1f1fb86df3 Fix typos.
svn path=/trunk/; revision=5220
2002-04-22 07:45:38 +00:00
Guy Harris 89e3b4275d Get rid of an extra colon.
svn path=/trunk/; revision=5216
2002-04-22 02:08:17 +00:00
Guy Harris 677ad9ee25 Correctly dissect LSA security descriptors, at least as they appear
inside a Netlogon security descriptor.

Correctly dissect NT security descriptors as they appear inside an LSA
security descriptor (at least as those appear inside a Netlogon security
descriptor) - they get sent over the wire, apparently, as an opaque blob
from the point of view of DCE RPC, at least from one capture I've seen,
they do *not* get sent over the wire in DCE RPC NDR syntax.

svn path=/trunk/; revision=5212
2002-04-22 01:07:19 +00:00
Ronnie Sahlberg 9a1a6bd888 More LSA updates
svn path=/trunk/; revision=5200
2002-04-18 10:40:30 +00:00
Tim Potter 56c4ae48cf Removed init routine as the dcerpc/smb init is now done in the correct
location.

svn path=/trunk/; revision=5199
2002-04-18 02:42:43 +00:00
Tim Potter 1b96c64729 Use common policy handle hashing code in packet-dcerpc-nt.c
Fix for lsa_open_policy request dissection.

svn path=/trunk/; revision=5198
2002-04-18 02:35:45 +00:00
Ronnie Sahlberg a7c4e209cb bugs found when verifying agains muddle generated idl file
svn path=/trunk/; revision=5195
2002-04-17 15:39:27 +00:00
Ronnie Sahlberg 1e24ac236f Bugfixes for LSA dissector and a small change to the security_descriptor dissector in packet-smb.c so we can call it from DCERPC NDR encoded services.
svn path=/trunk/; revision=5194
2002-04-17 15:11:30 +00:00
Ronnie Sahlberg b6bde1d150 Tiny bugfix. One element was declared as of the wrong type.
svn path=/trunk/; revision=5193
2002-04-17 13:48:56 +00:00
Ronnie Sahlberg 08042dae37 Added LSAENUMERATEPRIVILEGESACCOUNT, LSAADDPRIVILEGESTOACCOUNT and LSAREMOVEPRIVILEGESFROMACCOUNT function dissectors and support functions to LSA.
svn path=/trunk/; revision=5190
2002-04-17 11:01:38 +00:00
Ronnie Sahlberg 26c388b3aa Added dissection of LSA functions LSALOOKUPPRIVILEGENAME and LSALOOKUPPRIVILEGEVALUE
svn path=/trunk/; revision=5188
2002-04-17 10:41:05 +00:00
Ronnie Sahlberg 2a9a827445 Added dissection and support functions for LSAENUMERATEPRIVILEGES
function.

svn path=/trunk/; revision=5187
2002-04-17 10:29:09 +00:00
Ronnie Sahlberg 332340c868 Change the way not implemented functions are commented out so thast ethereal
will still print the name of the function even if no dissector for it exists.

svn path=/trunk/; revision=5185
2002-04-17 09:51:11 +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
Guy Harris ad8b000445 There is no guarantee that a buffer obtained using "tvb_get_ptr()" is
neatly aligned on a 2-byte or a 4-byte boundary, and there is no
guarantee that a misaligned pointer can be dereferenced without getting
a fault.

Furthermore, there is no guarantee that, even if you *can* dereference a
pointer to a 2-byte or 4-byte quantity in a packet, the resulting number
you get back is in the right byte order; the data in the packet might
have a different byte order from the machine on which you're running.

Therefore, we change "prs_uint8s()", "prs_uint16s()", and
"prs_uint32s()" to return the starting offset, in the tvbuff, of the
collection of 8-bit, 16-bit, or 32-bit integral values, rather than a
pointer to the raw packet data, and change their callers to fetch the
data using "tvb_get_guint8()", "tvb_get_letohs()", and
"tvb_get_letohl()" (the stuff in all the NT protocols is presumed to be
little-endian here).  We also change "fake_unicode()" to take a tvbuff
and an offset, rather than a data pointer, as arguments, and to use
"tvb_get_letohs()" to fetch the Unicode characters (again, we assume
little-endian Unicode).

This requires "fake_unicode()" to establish a cleanup handler, so we
don't leak memory if it throws an exception.

We also make "fake_unicode()" use "g_malloc()" to allocate its buffer
(we weren't checking for allocation failures in any case; with
"g_malloc()", we'll abort on an allocation failure - if we can come up
with a cleverer way of handling them, fine), and the matching frees to
use "g_free()".  (We also insert some missing frees....)

Fix some formats to print unsigned quantities with "%u", not "%d".

Don't append text to items in the tree for non-string values in
"dissect_ndr_nt_STRING_string()".

svn path=/trunk/; revision=4986
2002-03-19 22:09:23 +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 98b2ecb304 SPOOLSS RPC dissector, from Tim Potter. This includes adding additional
DOS error codes to the table of them, and exporting that table to other
dissectors for protocols using DOS error codes.

svn path=/trunk/; revision=4470
2002-01-03 20:42:41 +00:00
Guy Harris d0e97c05e8 Get rid of some more "goto"s with the same problem.
svn path=/trunk/; revision=4412
2001-12-17 08:31:26 +00:00
Guy Harris 9f92391a51 Get rid of a "goto"; the problem was found by Motonori Shindo, as it was
another case of a goto label with no statement after it, but it's a
little bit cleaner without the goto.

svn path=/trunk/; revision=4411
2001-12-17 08:27:00 +00:00
Guy Harris da82313eb3 From Tim Potter: dissect some of the LSA RPCs stub data.
svn path=/trunk/; revision=4407
2001-12-16 20:17:10 +00:00
Guy Harris 446e7ed7ed "msrpc" -> "dcerpc", and comment cleanups, from Tim Potter.
svn path=/trunk/; revision=4365
2001-12-09 00:07:37 +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