summaryrefslogtreecommitdiffstats
path: root/mof
diff options
context:
space:
mode:
authorRoman Rakus <rrakus@redhat.com>2012-09-07 15:02:37 +0200
committerRoman Rakus <rrakus@redhat.com>2012-09-07 15:05:58 +0200
commitaefe1e49b515b55243096098f820367e53a58493 (patch)
treeca0ccf76c3a062b57df6b8e56443ec4ec522bb0b /mof
parent27f6292f6f8542c57275bf5d3734eae889bb31ee (diff)
downloadopenlmi-providers-aefe1e49b515b55243096098f820367e53a58493.tar.gz
openlmi-providers-aefe1e49b515b55243096098f820367e53a58493.tar.xz
openlmi-providers-aefe1e49b515b55243096098f820367e53a58493.zip
account: createAccount function implementation
I decided to not follow the DMTF Standard strictly here. Rather than using embedded instance I use several parameters. Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'mof')
-rw-r--r--mof/LMI_Account.mof50
1 files changed, 49 insertions, 1 deletions
diff --git a/mof/LMI_Account.mof b/mof/LMI_Account.mof
index ce89884..b2cbc00 100644
--- a/mof/LMI_Account.mof
+++ b/mof/LMI_Account.mof
@@ -44,8 +44,56 @@ class LMI_Account: CIM_Account
"destroys Linux Accounts on behalf of other SecuritySerices."),
Provider("cmpi:cmpiCura_Account")
]
-class LMI_AccountManagementService: CIM_AccountManagementService
+class LMI_AccountManagementService: CIM_SecurityService
+// It would be good to inherit from CIM_AccountManagementService
+// however I don't if to create instance from embeddedinstance is a good way
{
+ [ Description ( "Create a new account on the system") ]
+ uint32 CreateAccount(
+ [Required, IN, Description (
+ "The scoping ComputerSystem in which to create the Account."
+ )]
+ CIM_ComputerSystem REF System,
+ [Required, IN, Description (
+ "Desired user login name for the account to be created." ) ]
+ string Name,
+ [IN, Description (
+ "GECOS information for new user" ) ]
+ string GECOS,
+ [IN, Description (
+ "Set home directory for the user." ) ]
+ string HomeDirectory,
+ [IN, Description (
+ "Wheter to create home directory." ) ]
+ boolean DontCreateHome,
+ [IN, Description (
+ "Default shell for new user" ) ]
+ string Shell,
+ [IN, Description (
+ "Pick a specific user id for new user" ) ]
+ uint32 UID,
+ [IN, Description (
+ "Pick a specific group id for new user" ) ]
+ uint32 GID,
+ [IN, Description (
+ "True for creating system account" ) ]
+ boolean SystemAccount,
+ [IN, Description (
+ "Encryted password for new user" ) ]
+ string Password,
+ [IN, Description (
+ "Whether to create group" ) ]
+ boolean DontCreateGroup,
+ [IN ( false ), OUT, Description (
+ "Reference to the instance of CIM_Account created "
+ "when the method returns a value of 0." )]
+ CIM_Account REF Account,
+ [IN ( false ), OUT, Description (
+ "Reference to the instances of CIM_Identity created "
+ "when the method returns a value of 0. NULL if no "
+ "such instances are created." )]
+ CIM_Identity REF Identities[]);
+
};
[ Provider("cmpi:cmpiCura_Account") ]