aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-samr.c
AgeCommit message (Collapse)AuthorFilesLines
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-5636/+0
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-06-28From Jean-Baptiste Marchand: many small fixes for the samr dissector,Guy Harris1-73/+218
based on test trafic generated with Samba 4 smbtorture utility and Samba 4 samr.idl. svn path=/trunk/; revision=11257
2004-06-26From Jean-Baptiste Marchand: dissect the USER_INFO_25 samr structureGuy Harris1-1/+34
(used by Windows XP clients when joining a domain managed by a W2K3 domain controller). svn path=/trunk/; revision=11243
2004-06-24from JBM updates to SAMR CONNECTxRonnie Sahlberg1-15/+112
svn path=/trunk/; revision=11224
2004-06-05from JBM: updates to SAMR and LSARonnie Sahlberg1-9/+69
svn path=/trunk/; revision=11113
2004-05-19Remove hf argument to common routines for dissecting domain sids. MostTim Potter1-2/+2
of the callers passed -1 for this parameter anyway. svn path=/trunk/; revision=10919
2004-05-15Move common routines from packet-dcerpc-samr.c to packet-dcerpc-nt.cTim Potter1-397/+1
svn path=/trunk/; revision=10903
2004-03-30Add the mask for an NT ACL ACE to the summary list for each ACE. ThisRichard Sharpe1-10/+10
means we don't have to expand the ACE to see what the permission mask is. There are a couple of other places where this could be used, but I have not done anything about them. svn path=/trunk/; revision=10515
2004-03-23From Ronnie Sahlberg: small fix to prevent dereferencing null pointers.Guy Harris1-2/+7
svn path=/trunk/; revision=10464
2004-01-19char *drep -> guint8 *drepJörg Mayer1-203/+203
svn path=/trunk/; revision=9735
2003-09-29More operation names updates from Jean-Baptiste Marchand.Tim Potter1-4/+10
svn path=/trunk/; revision=8564
2003-09-23From JBMRonnie Sahlberg1-73/+76
Update all names for SAMR and LSA functions so they match the function names in the API svn path=/trunk/; revision=8516
2003-08-04Guy suggested that the dcerpc opnum value_string code could be simplifiedTim Potter1-9/+1
somewhat. Now the dynamic initialisation of the value_string is contained in the value_string_from_subdissectors() function instead of being distributed amongst the dcerpc dissectors. svn path=/trunk/; revision=8123
2003-07-24From Jean-Baptiste Marchand: add descriptions of permissions forGuy Harris1-31/+31
SAM_SERVER and SAM_USER objects in SAMR. svn path=/trunk/; revision=8080
2003-07-15Removed unused local variable.Tim Potter1-2/+1
svn path=/trunk/; revision=8022
2003-07-14Fix the decoding of SIDs and Attributes so that a SamLogon response with extraRichard Sharpe1-3/+3
SIDs can be dissected properly. However, I am not sure if this affects anything else. svn path=/trunk/; revision=8020
2003-06-26Dynamically create DCERPC opnum value_strings from the subdissectorTim Potter1-72/+10
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-05In the policy handle hashing, handle more than one policy handle havingGuy Harris1-120/+196
the same value, as an open might return handle XXX, handle XXX might then be closed, and a subsequent handle might return handle XXX, and we want to keep the two handles distinct to avoid, for example, displaying handles closed before they're opened. In policy handle open replies, store the handle name only if the operation succeeded. We can now do that without parsing the packet twice. Have "dissect_nt_policy_hnd()" optionally return, through a pointer, the protocol tree item for the handle, so that its caller can decorate the item with the name of the handle - that's done on opens, where we do that only if the operation succeeds. svn path=/trunk/; revision=7787
2003-05-30Update SAMR to change the last few calls to dissect a context handle toRonnie Sahlberg1-9/+9
use dissect_nt_policy_hnd() instead. svn path=/trunk/; revision=7766
2003-05-27Fix typoes.Guy Harris1-3/+3
svn path=/trunk/; revision=7750
2003-05-22remove unused include that was added by mistakeRonnie Sahlberg1-2/+1
svn path=/trunk/; revision=7714
2003-05-22make dissect_nt_sid() return a sid string that also contains the proper name ↵Ronnie Sahlberg1-3/+5
for the sid. this prettifies some dcerpc interfaces svn path=/trunk/; revision=7712
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