ClusterLabs / hawk

A web-based GUI for managing and monitoring the Pacemaker High-Availability cluster resource manager
http://hawk-ui.github.io/
GNU General Public License v2.0
151 stars 51 forks source link

In the fedora 36 x86_64 cann't succesful login #259

Closed wengjibo closed 2 years ago

wengjibo commented 2 years ago

OS: Fedora 36 x86_64 ruby: ruby 2.7.6 hawk: hawk-2.6.15 After I successfully installed hawk 2.6.15 in the fedora 36 x86_64,I use ruby's version is 2.7.6, I can run hawk successfully. But when I login with the correct username and password. WEB interface report: Invalid username or password. The system log is as follows: 2022-06-27T14:31:21.925773+08:00 tot5 audit[32863]: USER_AUTH pid=32863 uid=600 auid=4294967295 ses=4294967295 subj=kernel msg='op=PAM:authentication grantors=?acct="hacluster " exe="/usr/sbin/hawk_chkpwd" hostname=?addr=?terminal=?res=failed' 2022-06-27T14:31:21.926473+08:00 tot5 hawk_chkpwd[32863]: pam_authenticate(passwd, hacluster): Authentication failure

wengjibo commented 2 years ago

I found the reason why I can't log in normally, which is caused by the pam configuration of the fedora operating system. First, backup the pam configuration file of fedora 36

cd /etc/

mv pam.d pam.d_backup

Second, copy the openSuSE 15.4 pam configuration file to the /etc/ directory of fedora. You can copy the entire directory /etc/pam.d/ to fedora directly through the scp command.