summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoman Rakus <rrakus@redhat.com>2012-09-27 11:11:16 +0200
committerRoman Rakus <rrakus@redhat.com>2012-09-27 11:11:16 +0200
commit0299616427b96d8822292dc166f505fb0c919381 (patch)
tree54d7cf4e755a7e54cb3b811cd60cff56476eb219 /src
parent94b8157cb2fd30645662b9b798e7508f00dba01a (diff)
downloadopenlmi-providers-0299616427b96d8822292dc166f505fb0c919381.tar.gz
openlmi-providers-0299616427b96d8822292dc166f505fb0c919381.tar.xz
openlmi-providers-0299616427b96d8822292dc166f505fb0c919381.zip
account: create account - set password0.0.5
Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/account/LMI_AccountManagementServiceProvider.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/account/LMI_AccountManagementServiceProvider.c b/src/account/LMI_AccountManagementServiceProvider.c
index 7f61754..dd91d1c 100644
--- a/src/account/LMI_AccountManagementServiceProvider.c
+++ b/src/account/LMI_AccountManagementServiceProvider.c
@@ -476,6 +476,17 @@ KUint32 LMI_AccountManagementService_CreateAccount(
goto clean;
}
+ /* Setup password */
+ if (Password->exists && !Password->null)
+ {
+ if (!lu_user_setpass(luc, lue, Password->chars, TRUE, &error))
+ {
+ FAIL("Error setting password: %s\n", lu_strerror(error),
+ ERR_FAILED, 2);
+ goto clean;
+ }
+ }
+
/* Finally create home dir */
if (!(DontCreateHome->exists && !DontCreateHome->null &&
DontCreateHome->value) && !(SystemAccount->exists &&