summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 &&