diff options
Diffstat (limited to 'mof/Cura_Account.mof')
-rw-r--r-- | mof/Cura_Account.mof | 233 |
1 files changed, 233 insertions, 0 deletions
diff --git a/mof/Cura_Account.mof b/mof/Cura_Account.mof new file mode 100644 index 0000000..eb5256d --- /dev/null +++ b/mof/Cura_Account.mof @@ -0,0 +1,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; +}; + |