aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-lsa.h
blob: 0bc85dc07869dabd7c3d77ea7e0341f8bc66a38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/* packet-dcerpc-lsa.h
 * Routines for SMB \PIPE\lsarpc packet disassembly
 * Copyright 2001, Tim Potter <tpot@samba.org>
 *
 * $Id: packet-dcerpc-lsa.h,v 1.10 2002/09/28 09:43:10 sahlberg Exp $
 *
 * Ethereal - Network traffic analyzer
 * By Gerald Combs <gerald@ethereal.com>
 * Copyright 1998 Gerald Combs
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#ifndef __PACKET_DCERPC_LSA_H
#define __PACKET_DCERPC_LSA_H

#define LSA_LSACLOSE	0x00
#define LSA_LSADELETE	0x01
#define LSA_LSAENUMERATEPRIVILEGES	0x02
#define LSA_LSAQUERYSECURITYOBJECT	0x03
#define LSA_LSASETSECURITYOBJECT	0x04
#define LSA_LSACHANGEPASSWORD	0x05
#define LSA_LSAOPENPOLICY	0x06
#define LSA_LSAQUERYINFORMATIONPOLICY	0x07
#define LSA_LSASETINFORMATIONPOLICY	0x08
#define LSA_LSACLEARAUDITLOG	0x09
#define LSA_LSACREATEACCOUNT	0x0a
#define LSA_LSAENUMERATEACCOUNTS	0x0b
#define LSA_LSACREATETRUSTEDDOMAIN	0x0c
#define LSA_LSAENUMERATETRUSTEDDOMAINS	0x0d
#define LSA_LSALOOKUPNAMES	0x0e
#define LSA_LSALOOKUPSIDS	0x0f
#define LSA_LSACREATESECRET	0x10
#define LSA_LSAOPENACCOUNT	0x11
#define LSA_LSAENUMERATEPRIVILEGESACCOUNT	0x12
#define LSA_LSAADDPRIVILEGESTOACCOUNT	0x13
#define LSA_LSAREMOVEPRIVILEGESFROMACCOUNT	0x14
#define LSA_LSAGETQUOTASFORACCOUNT	0x15
#define LSA_LSASETQUOTASFORACCOUNT	0x16
#define LSA_LSAGETSYSTEMACCESSACCOUNT	0x17
#define LSA_LSASETSYSTEMACCESSACCOUNT	0x18
#define LSA_LSAOPENTRUSTEDDOMAIN	0x19
#define LSA_LSAQUERYINFOTRUSTEDDOMAIN	0x1a
#define LSA_LSASETINFORMATIONTRUSTEDDOMAIN	0x1b
#define LSA_LSAOPENSECRET	0x1c
#define LSA_LSASETSECRET	0x1d
#define LSA_LSAQUERYSECRET	0x1e
#define LSA_LSALOOKUPPRIVILEGEVALUE	0x1f
#define LSA_LSALOOKUPPRIVILEGENAME	0x20
#define LSA_LSALOOKUPPRIVILEGEDISPLAYNAME	0x21
#define LSA_LSADELETEOBJECT	0x22
#define LSA_LSAENUMERATEACCOUNTSWITHUSERRIGHT	0x23
#define LSA_LSAENUMERATEACCOUNTRIGHTS	0x24
#define LSA_LSAADDACCOUNTRIGHTS	0x25
#define LSA_LSAREMOVEACCOUNTRIGHTS	0x26
#define LSA_LSAQUERYTRUSTEDDOMAININFO	0x27
#define LSA_LSASETTRUSTEDDOMAININFO	0x28
#define LSA_LSADELETETRUSTEDDOMAIN	0x29
#define LSA_LSASTOREPRIVATEDATA	0x2a
#define LSA_LSARETRIEVEPRIVATEDATA	0x2b
#define LSA_LSAOPENPOLICY2	0x2c
#define LSA_LSAGETUSERNAME	0x2d
#define LSA_LSAQUERYINFORMATIONPOLICY2	0x2e
#define LSA_LSASETINFORMATIONPOLICY2	0x2f
#define LSA_LSAQUERYTRUSTEDDOMAININFOBYNAME	0x30
#define LSA_LSASETTRUSTEDDOMAININFOBYNAME	0x31
#define LSA_LSAENUMERATETRUSTEDDOMAINSEX	0x32
#define LSA_LSACREATETRUSTEDDOMAINEX	0x33
#define LSA_LSACLOSETRUSTEDDOMAINEX	0x34
#define LSA_LSAQUERYDOMAININFORMATIONPOLICY	0x35
#define LSA_LSASETDOMAININFORMATIONPOLICY	0x36
#define LSA_LSAOPENTRUSTEDDOMAINBYNAME	0x37
#define LSA_LSAFUNCTION_38	0x38
#define LSA_LSALOOKUPSIDS2	0x39
#define LSA_LSALOOKUPNAMES2	0x3a
#define LSA_LSAFUNCTION_3B	0x3b

int
lsa_dissect_LSA_SECURITY_DESCRIPTOR(tvbuff_t *tvb, int offset,
                             packet_info *pinfo, proto_tree *tree,
                             char *drep);
int
lsa_dissect_LSA_SECURITY_DESCRIPTOR_data(tvbuff_t *tvb, int offset,
                             packet_info *pinfo, proto_tree *tree,
			     char *drep);
int
lsa_dissect_LSA_SECRET(tvbuff_t *tvb, int offset,
			packet_info *pinfo, proto_tree *parent_tree,
			char *drep);

int
lsa_dissect_POLICY_DNS_DOMAIN_INFO(tvbuff_t *tvb, int offset,
			packet_info *pinfo, proto_tree *parent_tree,
			char *drep);

/* Specific access rights */

#define POLICY_VIEW_LOCAL_INFORMATION    0x00000001
#define POLICY_VIEW_AUDIT_INFORMATION    0x00000002
#define POLICY_GET_PRIVATE_INFORMATION   0x00000004
#define POLICY_TRUST_ADMIN               0x00000008
#define POLICY_CREATE_ACCOUNT            0x00000010
#define POLICY_CREATE_SECRET             0x00000020
#define POLICY_CREATE_PRIVILEGE          0x00000040
#define POLICY_SET_DEFAULT_QUOTA_LIMITS  0x00000080
#define POLICY_SET_AUDIT_REQUIREMENTS    0x00000100
#define POLICY_AUDIT_LOG_ADMIN           0x00000200
#define POLICY_SERVER_ADMIN              0x00000400
#define POLICY_LOOKUP_NAMES              0x00000800

#endif /* packet-dcerpc-lsa.h */