summaryrefslogtreecommitdiffstats
path: root/mof
diff options
context:
space:
mode:
authorRoman Rakus <rrakus@redhat.com>2013-09-20 17:25:38 +0200
committerRoman Rakus <rrakus@redhat.com>2013-09-20 17:25:38 +0200
commit3370cfe4beb83a31c0fd5f6e5ac6d8b1c3be9fd5 (patch)
tree683f495063135152a4e6ed99a00184eeec0e7f89 /mof
parentdac5442bb5a5b7828ac36206d6c51b305576bc35 (diff)
downloadopenlmi-providers-3370cfe4beb83a31c0fd5f6e5ac6d8b1c3be9fd5.tar.gz
openlmi-providers-3370cfe4beb83a31c0fd5f6e5ac6d8b1c3be9fd5.tar.xz
openlmi-providers-3370cfe4beb83a31c0fd5f6e5ac6d8b1c3be9fd5.zip
account: Allow to set plain text password
libuser has a mechanism to encrypt password Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'mof')
-rw-r--r--mof/60_LMI_Account.mof21
1 files changed, 19 insertions, 2 deletions
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 <rrakus@redhat.com>
*/
-[ 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." )]