From 59a8167d1bb3db1a4ffa6d42f2b0f3d6a7454b09 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Thu, 29 Aug 2013 13:18:29 +0200 Subject: Account: New delete method This method should be used insted of intrinsic DeleteInstace. Signed-off-by: Roman Rakus --- mof/60_LMI_Account.mof | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'mof') diff --git a/mof/60_LMI_Account.mof b/mof/60_LMI_Account.mof index 0a79f59..fdf748f 100644 --- a/mof/60_LMI_Account.mof +++ b/mof/60_LMI_Account.mof @@ -44,6 +44,33 @@ class LMI_Account: CIM_Account [ Description("The date of expiration of the account.") ] datetime AccountExpiration; + + [ Description ( + "Delete the user. Along with the user, the home directory and user's " + "primary group are deleted. If the user is not owner of the home " + "directory it is not deleted. However this directory can be deleted " + "if force parameter is set to True." ), + ValueMap { "0", "1", "..", "4096", "4097", "4098", "4099" }, + Values { "Operation completed successfully", + "Failed", + "DMTF Reserved", + "Non existing user", + "Unable to delete Home Direcotry", + "Unable to remove user, home directory removed", + "Unable to remove group, user and home directory removed" }] + uint32 DeleteUser( + [IN, Description ( + "By default the user's home directory is deleted. Set to true " + "to not delete the home directory.")] + boolean DontDeleteHomeDirectory, + [IN, Description ( + "By default the user's private group, if the user has one, " + "is deleted. Set to true to not delete the group.")] + boolean DontDeleteGroup, + [IN, Description ( + "Force the deletion of user's home directory, even if the user " + "is not an owner.")] + boolean Force); }; [ Version("0.2.0"), -- cgit