aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-samr.c
AgeCommit message (Collapse)AuthorFilesLines
2003-05-21Make one QIP infolevel specify a sid hf field and update the embryonic sid ↵Ronnie Sahlberg1-2/+8
snooping framework to handle the new hw name svn path=/trunk/; revision=7709
2003-05-21Change the interface to dissect_nt_sid so that we can provide a hf field to useRonnie Sahlberg1-2/+2
to describe the sid instead of the default smb.sid one svn path=/trunk/; revision=7708
2003-05-21Change the interface to dissect_ndr_nt_SID to take the extra parameter hf_sidRonnie Sahlberg1-28/+36
if the caller wants something else instead of "smb.sid" svn path=/trunk/; revision=7707
2003-05-21Change the interface to dissect_ndr_nt_PSID to take one extra parameter ↵Ronnie Sahlberg1-5/+12
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-15More work on dissecting generic and standard mappings for NT access masks.Tim Potter1-6/+16
svn path=/trunk/; revision=7668
2003-04-28Move the specific rights dissection function and name into a structureTim Potter1-10/+35
instead of passing them around as separate parameters. This is a prelude to adding generic and standard mapping to the access mask dissection. svn path=/trunk/; revision=7591
2003-04-27Not all strings in MS interfaces are unicode.Ronnie Sahlberg1-3/+3
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-03When dissecting specific rights, pass a name string down so theTim Potter1-10/+10
proto item says "foo specific rights" instead of just "specific rights". svn path=/trunk/; revision=7401
2003-03-11When registering a string preference, if the value of the preference isGuy Harris1-2/+2
NULL, convert it to a copy of a null string, otherwise replace it with a copy of the string, so that we know that the variable for the preference always points to a string that can be freed. That also obviates the need to worry about a null-pointer value for a preference variable when checking to see whether a preference has changed. When checking for a string preference not being set, check for an empty string, not a null pointer - the above code turns null pointers into pointers to empty strings, *and* the GUI code does (and always did!) the same. svn path=/trunk/; revision=7342
2003-02-25hf_samr_mask is actually an nt_acct_ctrl.Tim Potter1-12/+7
svn path=/trunk/; revision=7193
2003-02-21Forgot to rename constant for bit 0x80 of SAMR domain handle permissions.Tim Potter1-2/+2
svn path=/trunk/; revision=7180
2003-02-21Apparently bit 0x80 of a SAMR domain handle is the permission to lookTim Potter1-6/+6
up alias members. svn path=/trunk/; revision=7178
2003-02-19Don't try to put the policy handle name into the Info column if we don'tGuy Harris1-6/+6
have a policy handle name. svn path=/trunk/; revision=7173
2003-02-14Display the policy handle name in COL_INFO for the ClosePolicy RPC.Tim Potter1-9/+19
Change the policy names slightly so they look nicer. svn path=/trunk/; revision=7148
2003-02-08Have "dissect_ndr_counted_string()" add 2, not 1, to its argument, as itGuy Harris1-19/+19
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-07Rename "dissect_ndr_char_string()" and "dissect_ndr_wchar_string()" toGuy Harris1-3/+3
"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-07Rename "dissect_ndr_char_array" and "disect_ndr_wchar_array" toGuy Harris1-3/+3
"dissect_ndr_char_string" and "dissect_ndr_wchar_string", to make it clearer what it does. svn path=/trunk/; revision=7095
2003-02-07Decorate several layers of the tree with the account name inGuy Harris1-3/+3
"USER_INFO_21" and in "LOOKUP_NAMES". svn path=/trunk/; revision=7090
2003-02-03Convert to new DCERPC string handling functions. There are still someTim Potter1-150/+95
cosmetic bugs to work out though. svn path=/trunk/; revision=7069
2003-02-02Decorate one level up with the string inGuy Harris1-2/+9
"samr_dissect_pointer_UNICODE_STRING()". Put in a comment asking why that routine exists. svn path=/trunk/; revision=7067
2003-01-31The handle returned by the OpenDomain RPC now has the SID in the handleTim Potter1-22/+119
name. Made OpenGroup and CreateGroup handle names contain appropriate RID values. Added some more COL_INFO bits & pieces (info levels etc). svn path=/trunk/; revision=7055
2003-01-30Generalize "cb_str_postprocess()" to allow the string to be appended toGuy Harris1-72/+72
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-30Display random useful tidbits in COL_INFO.Tim Potter1-43/+86
svn path=/trunk/; revision=7040
2003-01-28Convert dissector to callback based version of dissect_ndr_pointer().Tim Potter1-190/+179
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-11Put Unicode strings into the protocol tree with the appropriate protocolGuy Harris1-6/+1
tree item, not with hf_nt_str. Get rid of hf_nt_str, as it's no longer used. Put ASCII strings into the protocol tree only once. svn path=/trunk/; revision=6910
2003-01-11Get rid of an extra "." at the end of the name of the "nt.str" field.Guy Harris1-2/+2
svn path=/trunk/; revision=6908
2003-01-11Convert some incidental prs_* calls to dissect_dcerpc_*Tim Potter1-1/+6
equivalents. svn path=/trunk/; revision=6898
2002-12-11From Devin Heitmueller: make the RC4 support stateful.Guy Harris1-2/+4
svn path=/trunk/; revision=6777
2002-12-03Values in Microsoft protocols that don't have their byte order specifiedGuy Harris1-57/+64
by DCE RPC are usually little-endian; fix a bunch of "proto_tree_add_item()" calls (most are for byte-array or string fields, so the byte order doesn't make a difference, but one is a number). Put an item into the protocol tree for the encrypted NT password block. Mallocate the buffer for the Unicode version of the password, rather than assuming it'll fit in 256 bytes. "g_malloc()" never returns NULL - it either allocates memory or aborts - so don't check for a mallocation failure. Don't try to decrypt the NT password block if we don't have a password. svn path=/trunk/; revision=6731
2002-12-03From Devin Heitmueller:Guy Harris1-12/+164
add MD4 and RC4 crypto support; use it to decrypt the NT password encryption block in UnicodeChangePassword2. svn path=/trunk/; revision=6727
2002-11-10From Devin Heitmueller: show proper field names for SAMRGuy Harris1-9/+122
UnicodeChangePassword2. svn path=/trunk/; revision=6603
2002-11-10Bugfixes for two SAMR dissectors.Ronnie Sahlberg1-15/+34
svn path=/trunk/; revision=6599
2002-08-30Add some fixes from Albert ChinRichard Sharpe1-5/+5
svn path=/trunk/; revision=6134
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-464/+464
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-22Some cleanups and fixes from Guy:Tim Potter1-21/+8
- 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-21Call dissect_nt_access_mask() instead of dissect_ndr_uint32()Tim Potter1-20/+470
svn path=/trunk/; revision=6054
2002-08-13The unknown uint32 in create user2 reply is an access granted mask.Tim Potter1-13/+55
Assign some names to policy handles generated by open/create domain/user/group. svn path=/trunk/; revision=5987
2002-08-07Fix a return code in samr_dissect_query_information_domain_reply()Tim Potter1-5/+5
svn path=/trunk/; revision=5965
2002-08-06Update packet-dcerpc-samr.{c,h} to fix the names for the functions we nowRichard Sharpe1-3/+24
know are SamrConnect, SamrConnect2, SamrConnect3 and SamrConnect4. Thanks to Jim McDonnough and Tod Sabin. svn path=/trunk/; revision=5960
2002-07-16From Joerg Mayer: add #includes of "snprintf.h" in modules that usedGuy Harris1-1/+5
"snprintf()" but weren't including "snprintf.h". svn path=/trunk/; revision=5887
2002-07-06A small patch from Andrew Bartlett.Richard Sharpe1-3/+3
svn path=/trunk/; revision=5826
2002-07-02Fix up is_open and is_close arguments to dissect_nt_policy_hndTim Potter1-15/+9
calls in SAMR dissector. svn path=/trunk/; revision=5809
2002-06-24Change each DCERPC dissector to pass in a hf value on initialisationTim Potter1-2/+73
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-05-31Removed some trailing commas from various DCERPC dissectors.Tim Potter1-4/+4
svn path=/trunk/; revision=5604
2002-05-27Changed toplevel REF pointer dissection to create a subtree. Not creating a ↵Ronnie Sahlberg1-46/+48
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-11In "dissect_nt_policy_hnd()":Guy Harris1-62/+68
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-09Put in a comment noting that the previous change came from a realGuy Harris1-1/+5
capture, so if an IDL disagrees, the IDL is wrong. svn path=/trunk/; revision=5428
2002-05-09As Ronnie Sahlberg notes, the problem is that the QueryDomainInfoGuy Harris1-14/+3
response starts with a UNIQUE pointer to a DOMAIN_INFO, not with a REF pointer to a DOMAIN_INFO - and also not with a UNIQUE pointer to a DOMAIN_INFO REF pointer; fix the code to match that. svn path=/trunk/; revision=5427
2002-05-09In at least one capture, a QueryDomainInfo response starts with what is,Guy Harris1-2/+13
I guess, a UNIQUE pointer to a DOMAIN_INFO REF pointer; dissect it as such. svn path=/trunk/; revision=5426
2002-05-07Several bugfixes for SAMRRonnie Sahlberg1-39/+15
svn path=/trunk/; revision=5413