summaryrefslogtreecommitdiffstats
path: root/mof/Cura_Account.mof
blob: eb5256db273482dcbe22afd455eae84a970272d0 (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
//
// Cura_Account.mof
//
// Copyright (C) 2012  Red Hat, Inc.  All rights reserved.
//
// 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, see <http://www.gnu.org/licenses/>.
//
// Red Hat Author(s): Roman Rakus <rrakus@redhat.com>
//

[ Description("Class representing Linux Account"),
  Provider("cmpi:Account")
]
class Cura_Account : CIM_Account
{
  [Description("User's home directory")]
  string HomeDirectory;

  [Description("User's login shell")]
  string LoginShell;

  [Description("The date when was password last changed")]
  datetime PasswordLastChange;

  [Description("The minimal date when can be password changed")]
  datetime PasswordMinLifetime;

  [Description("The maximal date when can be password changed")]
  datetime PasswordMaxLifetime;
};

[ Description("Cura_AccountManagementService creates, manages, and if necessary destroys Linux Accounts on behalf of other SecuritySerices."),
  Provider("cmpi:Account")
]
class Cura_AccountManagementService : CIM_AccountManagementService
{
};

[ Provider("cmpi:Account") ]
class Cura_AccountManagementCapabilities : CIM_AccountManagementCapabilities
{
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_AccountOnSystem : CIM_AccountOnSystem
{
  [ Override ("GroupComponent"),
    Min ( 1 ),
    Max ( 1 ),
    Description ( "The hosting System." )]
  CIM_ComputerSystem REF GroupComponent;

  [ Override ("PartComponent"),
    Description ( "The managed Account on the System" )]
  Cura_Account REF PartComponent;
};

[ Provider("cmpi:Account") ]
class Cura_AccountSettingData : CIM_AccountSettingData
{
};

[ Provider("cmpi:Account") ]
class Cura_Identity : CIM_Identity
{
};

[ Provider("cmpi:Account") ]
class Cura_Group : CIM_Group
{
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_AssignedAccountIdentity : CIM_AssignedIdentity
{
  [ Override ("IdentityInfo"),
    Description ( "The managed Identity" ) ]
  Cura_Identity REF IdentityInfo;

  [ Override ("ManagedElement"),
    Description ( "The managed Account on the System" ) ]
  Cura_Account REF ManagedElement;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_AssignedGroupIdentity : CIM_AssignedIdentity
{
  [ Override ("IdentityInfo"),
    Description ( "The managed Identity" ) ]
  Cura_Identity REF IdentityInfo;

  [ Override ("ManagedElement"),
    Description ( "The managed Group on the System" ) ]
  Cura_Group REF ManagedElement;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_AccountManagementServiceCapabilities : CIM_ElementCapabilities
{
  [ Override ("ManagedElement"),
    Description ( "The Central Instance of Account Management" ) ]
  Cura_AccountManagementService REF ManagedElement;

  [ Override ("Capabilities"),
    Description ( "The supported Capabilities for managing Linux Accounts" ) ]
  Cura_AccountManagementCapabilities REF Capabilities;
};

[ Provider("cmpi:Account") ]
class Cura_EnabledAccountCapabilities : CIM_EnabledLogicalElementCapabilities
{
};


[ Association,
  Provider("cmpi:Account") ]
class Cura_AccountCapabilities : CIM_ElementCapabilities
{
  [ Override ("ManagedElement"),
    Description ( "The managed Account" ) ]
  Cura_Account REF ManagedElement;

  [ Override ("Capabilities"),
    Description ( "The supported Capabilities for changing the state of the Linux Account" ) ]
  Cura_EnabledAccountCapabilities REF Capabilities;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_AccountManagementServiceSettingData : CIM_ElementSettingData
{
  [ Override ("ManagedElement"),
    Description ( "The Central Instance of Account management" ) ]
  Cura_AccountManagementService REF ManagedElement;

  [ Override ("SettingData"),
    Description ( "The default enforced setting for new Accounts" ) ]
  Cura_AccountSettingData REF SettingData;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_HostedService : CIM_HostedService
{
  [ Override ("Antecedent"),
    Description ( "The hosting System" ) ]
  CIM_ComputerSystem REF Antecedent;

  [ Override ("Dependent"),
    Description ( "The Central Instance of Account management" ) ]
  Cura_AccountManagementService REF Dependent;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_MemberOfGroup : CIM_MemberOfCollection
{
  [ Override ("Collection"),
    Description ( "The managed Group on the System" ) ]
  Cura_Group REF Collection;

  [ Override ("Member"),
    Description ( "The managed Identity" ) ]
  Cura_Identity REF Member;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_OwningGroup : CIM_OwningCollectionElement
{
  [ Override ("OwningElement"),
    Description ( "The hosting System" ) ]
  CIM_ComputerSystem REF OwningElement;

  [ Override ("OwnedElement"),
    Description ( "The managed Group on the System" ) ]
  Cura_Group REF OwnedElement;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_ServiceAffectsIdentity : CIM_ServiceAffectsElement
{
  [ Override ("AffectingElement"),
    Description ( "The Central Instance of Account management" ) ]
  Cura_AccountManagementService REF AffectingElement;

  [ Override ("AffectedElement"),
    Description ( "The managed Identity" ) ]
  Cura_Identity REF AffectedElement;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_SettingsDefineManagementCapabilities : CIM_SettingsDefineCapabilities
{
  [ Override ("GroupComponent"),
    Description ( "The Account Management Capabilities" ) ]
  Cura_AccountManagementCapabilities REF GroupComponent;

  [ Override ("PartComponent"),
    Description ( "The default enforced setting for new Accounts" ) ]
  Cura_AccountSettingData REF PartComponent;
};

[ Association,
  Provider("cmpi:Account") ]
class Cura_SettingsDefineAccountCapabilities : CIM_SettingsDefineCapabilities
{
  [ Override ("GroupComponent"),
    Description ( "The Account Capabilities" ) ]
  Cura_EnabledAccountCapabilities REF GroupComponent;

  [ Override ("PartComponent"),
    Description ( "The default enforced setting for new Accounts" ) ]
  Cura_AccountSettingData REF PartComponent;
};