better error message if homedir path could not be determined

This commit is contained in:
Roland Gruber 2009-12-20 19:47:50 +00:00
parent 39fabb357e
commit db389d85f8
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ sub manageHomedirs {
sub createHomedir {
my $homedir = $user[7];
if ($homedir eq '') {
$return = "ERROR,Lamdaemon ($hostname),Home directory path is empty.";
logMessage(LOG_ERR, "Home directory path is empty.");
$return = "ERROR,Lamdaemon ($hostname),Unable to determine home directory path. Please check if NSS LDAP is correctly configured.";
logMessage(LOG_ERR, "Unable to determine home directory path. Please check if NSS LDAP is correctly configured.");
return;
}
my $path = $homedir;