From 3370cfe4beb83a31c0fd5f6e5ac6d8b1c3be9fd5 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Fri, 20 Sep 2013 17:25:38 +0200 Subject: account: Allow to set plain text password libuser has a mechanism to encrypt password Signed-off-by: Roman Rakus --- mof/60_LMI_Account.mof | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'mof') diff --git a/mof/60_LMI_Account.mof b/mof/60_LMI_Account.mof index ce603ec..153222e 100644 --- a/mof/60_LMI_Account.mof +++ b/mof/60_LMI_Account.mof @@ -18,7 +18,7 @@ * Authors: Roman Rakus */ -[ Version("0.2.0"), +[ Version("0.3.0"), Description("Class representing Linux Account"), Provider("cmpi:cmpiLMI_Account") ] @@ -71,6 +71,18 @@ class LMI_Account: CIM_Account "Force the deletion of user's home directory, even if the user " "is not an owner.")] boolean Force); + + [ Description ( + "Change the user's password."), + ValueMap { "0", "1"}, + Values { "Operation completed successfully", + "Failed"}] + uint32 ChangePassword( + [Required, IN, Description ( + "Plaintext string to which set the password; provider will encrypt " + "the string using the default crypto algorithm")] + String Password); + }; [ Version("0.2.0"), @@ -120,11 +132,16 @@ class LMI_AccountManagementService: CIM_SecurityService "True for creating system account" ) ] boolean SystemAccount, [IN, Description ( - "Encryted password for new user" ) ] + "Password for a new user. By default has to be encrypted, but " + "can be plaintext if PasswordIsPlain is set to true" ) ] string Password, [IN, Description ( "Whether to create group" ) ] boolean DontCreateGroup, + [IN, Description ( + "If set to true, the Password is treated as plain text, " + "otherwise has to be ecnrypted") ] + boolean PasswordIsPlain, [IN ( false ), OUT, Description ( "Reference to the instance of CIM_Account created " "when the method returns a value of 0." )] -- cgit