Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is new server with RHEL 6.2. Except root, all users are supposed to be authenticated by LDAP
I made required changed on Master LDAP server and with authconfig and authconfig-tui command, I am able to join this host to LDAP server. I can do "id -a user" and get information of user and also, "ldapsearch -x" returns all output of accounts and hosts.
But even after, everything looks ok, login authentication is failing. Right now, Password Hashing Alogorithm is MD5. I tried changing it is SHA256 and SHA512, but no luck. Here are output of required files and logs. I am not getting any idea, where it is failing, or there is something specific to RHEL 6.2
Hello,
This is new server with RHEL 6.2. Except root, all users are supposed to be authenticated by LDAP I made required changed on Master LDAP server and with authconfig and authconfig-tui command, I am able to join this host to LDAP server. I can do "id -a user" and get information of user and also, "ldapsearch -x" returns all output of accounts and hosts.
But even after, everything looks ok, login authentication is failing. Right now, Password Hashing Alogorithm is MD5. I tried changing it is SHA256 and SHA512, but no luck. Here are output of required files and logs. I am not getting any idea, where it is failing, or there is something specific to RHEL 6.2
First, have you contacted RHEL support? 6.2 is a supported version...using the RHEL support you're paying for (RIGHT?) is the best/quickest way to get this solved. Also, have you applied any patches from the RHEL network yet? If this is new 6.2, there are probably many things that need to be updated/patched/fixed before you can just use the server...again, without RHEL support you won't get these things.
And based on the error message, it would appear that DNS isn't resolving correctly. Have you checked things out there?
Unfortunately, we have RHEL support, but not for this one.
I have not applied any patches yet. I just downloaded iso, build server and installed required ldap rpms.
/etc/resolv.conf is correct and able to resolve LDAP master, so I can do ldapsearch and get query result
Unfortunately, we have RHEL support, but not for this one.
That's not a problem...contact RHEL and they'll be happy to get this server under support. No reason not to.
Quote:
I have not applied any patches yet. I just downloaded iso, build server and installed required ldap rpms.
...and you WILL NOT apply any patches without a valid RHEL subscription. You can't get the Red Hat network to work without it, so go back and get support for the RHEL servers you're using, or load CentOS instead.
Quote:
/etc/resolv.conf is correct and able to resolve LDAP master, so I can do ldapsearch and get query result
The LDAP master isn't the issue....are you able to resolve ALL of the servers and machines? Did you read/understand this message that you posted?
Quote:
Originally Posted by abhisheks77
reverse mapping checking getaddrinfo for msag-w1.mosetp.com [192.168.69.21] failed
You have a bad DNS entry somewhere for that address.
We have support for physical servers, but this is on VMware, which requires bigger process for support and it is in progress.
So we have valid RHEL subscription, but not sure, what patches we are supposed to apply on this, which can fix this issue.
192.168.69.21 is IP address of my laptop from where I am trying to establish connection with putty. If I compare output of /var/log/secure from working (5.9) vs non-working (6.2) server, I can see below logs.
Working -
Code:
Sep 18 18:26:36 server02 sshd[3262]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.69.21 user=lucas
Sep 18 18:26:36 server02 sshd[3262]: Accepted password for lucas from 192.168.69.21 port 58300 ssh2
Sep 18 18:26:36 server02 sshd[3262]: pam_unix(sshd:session): session opened for user lucas by (uid=0)
Sep 18 18:26:48 server02 sshd[3262]: pam_unix(sshd:session): session closed for user lucas
Non-working -
Code:
Sep 18 11:05:41 server01 sshd[2142]: reverse mapping checking getaddrinfo for msag-w1.mosetp.com [192.168.69.21] failed - POSSIBLE BREAK-IN ATTEMPT!
Sep 18 11:05:45 server01 unix_chkpwd[2145]: password check failed for user (lucas)
Sep 18 11:05:45 server01 sshd[2142]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.69.21 user=lucas
Sep 18 11:05:46 server01 sshd[2142]: pam_sss(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.69.21 user=lucas
Sep 18 11:05:46 server01 sshd[2142]: pam_sss(sshd:auth): received for user lucas: 10 (User not known to the underlying authentication module)
Sep 18 11:05:47 server01 sshd[2142]: Failed password for lucas from 192.168.69.21 port 52972 ssh2
Sep 18 11:05:51 server01 sshd[2143]: Received disconnect from 192.168.69.21: 13: Unable to authenticate
/etc/resolv.conf, /etc/nsswitch.conf and /etc/hosts are having similar entries in both servers. I don't see that reverse mapping and unix_chkpwd error in working logs.
We have support for physical servers, but this is on VMware, which requires bigger process for support and it is in progress. So we have valid RHEL subscription, but not sure, what patches we are supposed to apply on this, which can fix this issue.
There is no 'bigger process for support'...you buy a license, period. If your server had 16 Xeons or one i7...doesn't matter. You pay for RHEL 6.2 and GET RHEL 6.2. And if you have a valid RHEL subscription, we're back to "Call Red Hat support and ask". Doesn't get more simple than that.
Quote:
192.168.69.21 is IP address of my laptop from where I am trying to establish connection with putty. If I compare output of /var/log/secure from working (5.9) vs non-working (6.2) server, I can see below logs.
Working -
Code:
Sep 18 18:26:36 server02 sshd[3262]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.69.21 user=lucas
Sep 18 18:26:36 server02 sshd[3262]: Accepted password for lucas from 192.168.69.21 port 58300 ssh2
Sep 18 18:26:36 server02 sshd[3262]: pam_unix(sshd:session): session opened for user lucas by (uid=0)
Sep 18 18:26:48 server02 sshd[3262]: pam_unix(sshd:session): session closed for user lucas
Non-working -
Code:
Sep 18 11:05:41 server01 sshd[2142]: reverse mapping checking getaddrinfo for msag-w1.mosetp.com [192.168.69.21] failed - POSSIBLE BREAK-IN ATTEMPT!
Sep 18 11:05:45 server01 unix_chkpwd[2145]: password check failed for user (lucas)
Sep 18 11:05:45 server01 sshd[2142]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.69.21 user=lucas
Sep 18 11:05:46 server01 sshd[2142]: pam_sss(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.69.21 user=lucas
Sep 18 11:05:46 server01 sshd[2142]: pam_sss(sshd:auth): received for user lucas: 10 (User not known to the underlying authentication module)
Sep 18 11:05:47 server01 sshd[2142]: Failed password for lucas from 192.168.69.21 port 52972 ssh2
Sep 18 11:05:51 server01 sshd[2143]: Received disconnect from 192.168.69.21: 13: Unable to authenticate
/etc/resolv.conf, /etc/nsswitch.conf and /etc/hosts are having similar entries in both servers. I don't see that reverse mapping and unix_chkpwd error in working logs.
Right...so we're back to "the new server can't look up the name. And we're back (AGAIN) to "Call Red Hat support and use the support you claim to be paying for": https://access.redhat.com/solutions/83933
....a NOTED, FIXED bug report for this for (amazingly) RHEL6. Which you don't have...since you claim to both have support and not have support, and haven't applied any of the fixes (because either you can or can't, not really clear), you should have when building the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.