Commit Graph

83 Commits

Author SHA1 Message Date
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
Tim Potter 4eaff6dc18 Dissect a netlogon credential as eight FT_BYTES rather than two guint32
quantities.

svn path=/trunk/; revision=7768
2003-06-02 03:53:32 +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 2ef11527a3 Move dissection of NETLOGON secure channel auth verifier into
packet-dcerpc-netlogon.c

svn path=/trunk/; revision=7670
2003-05-15 04:58:53 +00:00
Tim Potter f6e347bbc5 Dissect authentication data for netlogon secure channel bind and bind acks.
svn path=/trunk/; revision=7667
2003-05-15 02:01:39 +00:00
Tim Potter 27607d89db Dissect a ntlmv2 response if found in a samlogon request.
svn path=/trunk/; revision=7657
2003-05-09 01:46:13 +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 b99ad855f0 Display user name in COL_INFO for ServerAuthenticate2 request.
Add note about putting DOMAIN\Username in COL_INFO when dissecting
LOGIN_IDENTITY_INFO (part of SamLogon RPC).

svn path=/trunk/; revision=7147
2003-02-14 06:17:20 +00:00
Guy Harris d06e3c57bd Decorate the top-level item for a PRIV_NAME_ARRAY with the privilege
names.

svn path=/trunk/; revision=7118
2003-02-10 23:45:56 +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
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 000f03fdca Decorate a PRIV_NAME_ARRAY with the privilege names in the array.
svn path=/trunk/; revision=7063
2003-01-31 07:37:12 +00:00
Guy Harris 2c598fa0ec Decorate a DELTA_DOMAIN structure's top-level item with the domain name.
svn path=/trunk/; revision=7062
2003-01-31 07:32:41 +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
Tim Potter a476a8b4c3 Add value_string for secure channel type used in ServerAuthenticate2.
svn path=/trunk/; revision=6920
2003-01-14 05:09:16 +00:00
Ronnie Sahlberg eb6384af0d Added some flags and value_Strings for netlogon
svn path=/trunk/; revision=6706
2002-11-30 08:34:28 +00:00
Ronnie Sahlberg f896a13596 From Like H, update to NETLOGON. DSROLEGETPRIMARYDOMAININFO is actually ENUMERATETRUSTEDDOMAINS
svn path=/trunk/; revision=6705
2002-11-29 23:20:41 +00:00
Ronnie Sahlberg b0e0a37e9e From Luke H. Update to GetDomainInfo
svn path=/trunk/; revision=6704
2002-11-29 22:35:54 +00:00
Ronnie Sahlberg cee6c74482 Bugfix.
Previous checkin did not make sense. We can not have a union without having the
union case value stored as a separate variable or else the receiving side will
not know how to decode the packet.
Therefore it can not be a union at all. Instead we have a REF pointer to a ulong
holding the number of elements, then a unique pointer to a conformant array
of structures.

Thus, the content of the reply packet for function_24 as well as
dsrolegetprimarydomaininfo can not be

 [ref] PRIMARY_DOMAIN_INFO_EX_UNION *pdi;

but instead MUST be
 long num_entries;
 [unique][size_is(num_entries)] PRIMARY_DOMAIN_INFO_EX *pdi;

svn path=/trunk/; revision=6559
2002-11-04 11:52:36 +00:00
Ronnie Sahlberg 299f6f8322 Bugfix for DSROLE_PRIMARY_DOMAIN_INFO
svn path=/trunk/; revision=6558
2002-11-04 09:06:15 +00:00
Ronnie Sahlberg e91ed1701a Fix for Netlogon function 0x22 which used the wrong pointer type.
Additional cleanups added when no longer nessecary to pass through two levels of pointers to get to the DOMAIN_CONTROLLER_INFO structure in the code.

svn path=/trunk/; revision=6550
2002-11-03 04:39:22 +00:00
Guy Harris 86576ce6ac When registering a protocol, make sure there are no other protocols with
the same long name, short name, or filter name, and abort if there are.

Fix the duplicate names that found (and another name error found while
fixing one of those errors).

svn path=/trunk/; revision=6425
2002-10-15 05:21:07 +00:00
Ronnie Sahlberg 1a07ef5b5c Some changes to netlogon. function 0x1d is still not right but maybe we are
getting closer.   from Luke H.

svn path=/trunk/; revision=6353
2002-09-29 10:28:27 +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
Ronnie Sahlberg f2cce7516c From Luke Howard: Small fix for NETLOGON: LogonGetDomainInfo
svn path=/trunk/; revision=6297
2002-09-15 06:36:16 +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
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