Subclass of CIM_SecurityService
LMI_AccountManagementService creates, manages, and if necessary destroys Linux Accounts on behalf of other SecurityServices.
None
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, CIM_Account Account, CIM_Identity[] Identities)
Create a new account on the system
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
- Encryted password for new user
- IN boolean DontCreateGroup
- Whether to create group
- 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
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.