Commit Graph

58 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
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
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