1 /* packet-dcerpc-netlogon.h
2 * Routines for SMB \PIPE\NETLOGON packet disassembly
3 * Copyright 2001,2003 Tim Potter <tpot@samba.org>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __PACKET_DCERPC_NETLOGON_H
13 #define __PACKET_DCERPC_NETLOGON_H
15 #define NETLOGON_NETRLOGONUASLOGON 0x00
16 #define NETLOGON_NETRLOGONUASLOGOFF 0x01
17 #define NETLOGON_NETRLOGONSAMLOGON 0x02
18 #define NETLOGON_NETRLOGONSAMLOGOFF 0x03
19 #define NETLOGON_NETRSERVERREQCHALLENGE 0x04
20 #define NETLOGON_NETRSERVERAUTHENTICATE 0x05
21 #define NETLOGON_NETRSERVERPASSWORDSET 0x06
22 #define NETLOGON_NETRDATABASEDELTAS 0x07
23 #define NETLOGON_NETRDATABASESYNC 0x08
24 #define NETLOGON_NETRACCOUNTDELTAS 0x09
25 #define NETLOGON_NETRACCOUNTSYNC 0x0a
26 #define NETLOGON_NETRGETDCNAME 0x0b
27 #define NETLOGON_NETRLOGONCONTROL 0x0c
28 #define NETLOGON_NETRGETANYDCNAME 0x0d
29 #define NETLOGON_NETRLOGONCONTROL2 0x0e
30 #define NETLOGON_NETRSERVERAUTHENTICATE2 0x0f
31 #define NETLOGON_NETRDATABASESYNC2 0x10
32 #define NETLOGON_NETRDATABASEREDO 0x11
33 #define NETLOGON_NETRLOGONCONTROL2EX 0x12
34 #define NETLOGON_NETRENUMERATETRUSTEDDOMAINS 0x13
35 #define NETLOGON_DSRGETDCNAME 0x14
36 #define NETLOGON_NETRLOGONDUMMYROUTINE1 0x15
37 #define NETLOGON_NETRLOGONSETSERVICEBITS 0x16
38 #define NETLOGON_NETRLOGONGETTRUSTRID 0x17
39 #define NETLOGON_NETRLOGONCOMPUTESERVERDIGEST 0x18
40 #define NETLOGON_NETRLOGONCOMPUTECLIENTDIGEST 0x19
41 #define NETLOGON_NETRSERVERAUTHENTICATE3 0x1a
42 #define NETLOGON_DSRGETDCNAMEX 0x1b
43 #define NETLOGON_DSRGETSITENAME 0x1c
44 #define NETLOGON_NETRLOGONGETDOMAININFO 0x1d
45 #define NETLOGON_NETRSERVERPASSWORDSET2 0x1e
46 #define NETLOGON_NETRSERVERPASSWORDGET 0x1f
47 #define NETLOGON_NETRLOGONSENDTOSAM 0x20
48 #define NETLOGON_DSRADDRESSTOSITENAMESW 0x21
49 #define NETLOGON_DSRGETDCNAMEEX2 0x22
50 #define NETLOGON_NETRLOGONGETTIMESERVICEPARENTDOMAIN 0x23
51 #define NETLOGON_NETRENUMERATETRUSTEDDOMAINSEX 0x24
52 #define NETLOGON_DSRADDRESSTOSITENAMESEXW 0x25
53 #define NETLOGON_DSRGETDCSITECOVERAGEW 0x26
54 #define NETLOGON_NETRLOGONSAMLOGONEX 0x27
55 #define NETLOGON_DSRENUMERATEDOMAINTRUSTS 0x28
56 #define NETLOGON_DSRDEREGISTERDNSHOSTRECORDS 0x29
57 #define NETLOGON_NETRSERVERTRUSTPASSWORDSGET 0x2a
58 #define NETLOGON_DSRGETFORESTTRUSTINFORMATION 0x2b
59 #define NETLOGON_NETRGETFORESTTRUSTINFORMATION 0x2c
60 #define NETLOGON_NETRLOGONSAMLOGONWITHFLAGS 0x2d
61 #define NETLOGON_NETRSERVERGETTRUSTINFO 0x2e
62 #define NETLOGON_DSRUPDATEREADONLYSERVERDNSRECORDS 0x30
63 #define NETLOGON_NETRCHAINSETCLIENTATTRIBUTES 0x36 /* This is documented as 49 (0x31) but it's 54) */
64 #define NETLOGON_NETRSERVERAUTHENTICATEKERBEROS 0x3B
67 /* needed to decrypt PAC_LOGON_INFO in kerberos */
69 netlogon_dissect_PAC_LOGON_INFO(tvbuff_t
*tvb
, int offset
,
70 packet_info
*pinfo
, proto_tree
*tree
,
71 dcerpc_info
*di
, uint8_t *drep
);
73 /* needed to decrypt PAC_S4U_DELEGATION_INFO in kerberos */
75 netlogon_dissect_PAC_S4U_DELEGATION_INFO(tvbuff_t
*tvb
, int offset
,
76 packet_info
*pinfo
, proto_tree
*tree
,
77 dcerpc_info
*di
, uint8_t *drep
);
79 /* needed to decrypt PAC_DEVICE_INFO in kerberos */
81 netlogon_dissect_PAC_DEVICE_INFO(tvbuff_t
*tvb
, int offset
,
82 packet_info
*pinfo
, proto_tree
*tree
,
83 dcerpc_info
*di
, uint8_t *drep
);
85 #endif /* packet-dcerpc-netlogon.h */