better error message if homedir path could not be determined
This commit is contained in:
parent
39fabb357e
commit
db389d85f8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue