mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Handle case where the root user for testing PAM has no password https://github.com/webmin/webmin/issues/1911
This commit is contained in:
@@ -154,8 +154,9 @@ elsif (!$config{'no_pam'}) {
|
||||
$pam_conv_func_called = 0;
|
||||
$pam_username = "test";
|
||||
$pam_password = "test";
|
||||
$pamh->pam_authenticate();
|
||||
if ($pam_conv_func_called) {
|
||||
my $pam_ret = $pamh->pam_authenticate();
|
||||
if ($pam_conv_func_called ||
|
||||
$pam_ret == PAM_SUCCESS()) {
|
||||
push(@startup_msg,
|
||||
"PAM authentication enabled");
|
||||
$use_pam = 1;
|
||||
|
||||
Reference in New Issue
Block a user