LMI_AccountManagementService

Class reference

Subclass of CIM_SecurityService

LMI_AccountManagementService creates, manages, and if necessary destroys Linux Accounts on behalf of other SecurityServices.

Local properties

None

Local methods

uint32 CreateAccount (CIM_ComputerSystem System, string Name, string GECOS, string HomeDirectory, boolean DontCreateHome, string Shell, uint32 UID, uint32 GID, boolean SystemAccount, string Password, boolean DontCreateGroup, boolean PasswordIsPlain, CIM_Account Account, CIM_Identity[] Identities)

Create a new account on the system

ValueMap Values
0 Operation completed successfully
1 Operation unsupported
2 Failed
DMTF Reserved
4096 Unable to set password, user created
4097 Unable to create home directory, user created and password set

Parameters

IN CIM_ComputerSystem System
The scoping ComputerSystem in which to create the Account.
IN string Name
Desired user login name for the account to be created.
IN string GECOS
GECOS information for new user
IN string HomeDirectory
Set home directory for the user.
IN boolean DontCreateHome
Wheter to create home directory.
IN string Shell
Default shell for new user
IN uint32 UID
Pick a specific user id for new user
IN uint32 GID
Pick a specific group id for new user
IN boolean SystemAccount
True for creating system account
IN string Password
Password for a new user. By default has to be encrypted, but can be plaintext if PasswordIsPlain is set to true
IN boolean DontCreateGroup
Whether to create group
IN boolean PasswordIsPlain
If set to true, the Password is treated as plain text, otherwise has to be ecnrypted
OUT CIM_Account Account
Reference to the instance of CIM_Account created when the method returns a value of 0.
OUT CIM_Identity[] Identities
Reference to the instances of CIM_Identity created when the method returns a value of 0. NULL if no such instances are created.

uint32 CreateGroup (CIM_ComputerSystem System, string Name, uint32 GID, boolean SystemAccount, CIM_Group Group, CIM_Identity[] Identities)

Create a new group on the system

ValueMap Values
0 Operation completed successfully
1 Operation unsupported
2 Failed
DMTF Reserved

Parameters

IN CIM_ComputerSystem System
The scoping ComputerSystem in which to create the Account.
IN string Name
Desired group name for the account to be created.
IN uint32 GID
Pick a specific group id for new user
IN boolean SystemAccount
True for creating system account
OUT CIM_Group Group
Reference to the instance of CIM_Group created when the method returns a value of 0.
OUT CIM_Identity[] Identities
Reference to the instances of CIM_Identity created when the method returns a value of 0. NULL if no such instances are created.

Inherited properties