From 0299616427b96d8822292dc166f505fb0c919381 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Thu, 27 Sep 2012 11:11:16 +0200 Subject: account: create account - set password Signed-off-by: Roman Rakus --- src/account/LMI_AccountManagementServiceProvider.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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 && -- cgit