summaryrefslogtreecommitdiffstats
path: root/mof
diff options
context:
space:
mode:
authorRoman Rakus <rrakus@redhat.com>2013-08-29 13:18:29 +0200
committerRoman Rakus <rrakus@redhat.com>2013-09-02 09:33:42 +0200
commit59a8167d1bb3db1a4ffa6d42f2b0f3d6a7454b09 (patch)
tree8b47ab5334e712e9c4cc70428ab4fb87ecb31e3a /mof
parent116a038f697311ceea810b74396055d9dc366f8e (diff)
downloadopenlmi-providers-59a8167d1bb3db1a4ffa6d42f2b0f3d6a7454b09.tar.gz
openlmi-providers-59a8167d1bb3db1a4ffa6d42f2b0f3d6a7454b09.tar.xz
openlmi-providers-59a8167d1bb3db1a4ffa6d42f2b0f3d6a7454b09.zip
Account: New delete method
This method should be used insted of intrinsic DeleteInstace. Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'mof')
-rw-r--r--mof/60_LMI_Account.mof27
1 files changed, 27 insertions, 0 deletions
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"),