Wireshark-bugs: [Wireshark-bugs] [Bug 5071] New: NetrLogonControl2 - Control_data_information "n
Date: Mon, 2 Aug 2010 08:43:19 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5071

           Summary: NetrLogonControl2 - Control_data_information "name"
                    not being decoded
           Product: Wireshark
           Version: 1.4.0
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Enhancement
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: fschorr@xxxxxxxxxxx


Build Information:
Version 1.4.0rc1 (SVN Rev 33190 from /trunk-1.4)

Copyright 1998-2010 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.16.6, (32-bit) with GLib 2.22.4, with WinPcap (version
unknown), with libz 1.2.3, without POSIX capabilities, without libpcre, with
SMI
0.4.8, with c-ares 1.7.1, with Lua 5.1, without Python, with GnuTLS 2.8.5, with
Gcrypt 1.4.5, with MIT Kerberos, with GeoIP, with PortAudio V19-devel (built
Jun
 9 2010), with AirPcap.

Running on Windows XP Service Pack 3, build 2600, with WinPcap version 4.1.1
(packet.dll version 4.1.0.1753), based on libpcap version 1.0 branch 1_0_rel0b
(20091008), GnuTLS 2.8.5, Gcrypt 1.4.5, without AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729
--
NetrLogonControl2 - Control_data_information "name" not being decoded

On line 4884-4890 of packet-dcerpc-netlogon.c states:

/* XXX
 * According to muddle this is what CONTROL_DATA_INFORMATION is supposed
 * to look like. However NetMon does not recognize any such informationlevels.
 *
 * Ill leave it as CONTROL_DATA_INFORMATION with no informationlevels
 * until someone has any source of better authority to call upon.
 */

I had found the following information on MSDN at
http://msdn.microsoft.com/en-us/library/cc237115(PROT.13).aspx that shows the
Information type for each information level:

"2.2.1.7.1 NETLOGON_CONTROL_DATA_INFORMATION

The NETLOGON_CONTROL_DATA_INFORMATION union is used as input to the
NetrLogonControl2 method, as specified in section 3.5.5.8.2, and the
NetrLogonControl2Ex method, as specified in section 3.5.5.8.1. This union
selects a data type, based on the FunctionCode parameter passed to the method.
For details about FunctionCode values, see NetrLogonControl2Ex, section
3.5.5.8.1.

typedef 
[switch_type(DWORD)] 
  union _NETLOGON_CONTROL_DATA_INFORMATION {
  [case(5,6,9,10)] 
    [string] wchar_t* TrustedDomainName;
  [case(65534)] 
    DWORD DebugFlag;
  [case(8)] 
    [string] wchar_t* UserName;
  [default]    ;
} NETLOGON_CONTROL_DATA_INFORMATION, 
 *PNETLOGON_CONTROL_DATA_INFORMATION;

TrustedDomainName: A pointer to a null-terminated Unicode string that contains
a trusteddomain name. Switched on the DWORD ([MS-DTYP] section 2.2.7) values
0x00000005, 0x00000006, 0x00000009, and 0x0000000A. The DWORD values are
equivalent to FunctionCode values. For a complete list of the Netlogon function
codes and their associated meanings, see NetrLogonControl2Ex, section
3.5.5.8.1.

DebugFlag: A DWORD that contains an implementation-specific debug flag.
Switched on the value 0x0000FFFE.

UserName: A pointer to null-terminated Unicode string that contains a user
name. Switched on the DWORD value 0x00000008."

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.