LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-27-2014, 03:47 AM   #1
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
ldap+sssd: login with RSA keys succeeds, but with UNIX password fails


Sorry for my English.

1. The ldap server I am using was established by my colleagues. There are several ldap clients (using nslcd) that work well.

2. I am building a new workstation with CentOS7. sssd is used rather than nslcd. I used
Code:
authconfig-tui
to config ldap, with the same options as other clients'. (without TLS)

3. ssh login with RSA keys works well, but with UNIX password fails. /var/log/secure says:
Code:
Aug 27 16:31:13 boron sshd[14034]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.16.100.231  user=zhaoj
Aug 27 16:31:13 boron sshd[14034]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "zhaoj"
Aug 27 16:31:15 boron sshd[14034]: Failed password for zhaoj from 172.16.100.231 port 50852 ssh2
Aug 27 16:31:18 boron sshd[14034]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "zhaoj"
Aug 27 16:31:21 boron sshd[14034]: Failed password for zhaoj from 172.16.100.231 port 50852 ssh2
Aug 27 16:31:23 boron sshd[14034]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "zhaoj"
Aug 27 16:31:25 boron sshd[14034]: Failed password for zhaoj from 172.16.100.231 port 50852 ssh2
Aug 27 16:31:25 boron sshd[14034]: Connection closed by 172.16.100.231 [preauth]
Aug 27 16:31:25 boron sshd[14034]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.16.100.231  user=zhaoj
I logged in with RSA keys, and then tried
Code:
sudo ls
I was told that password was wrong:
Code:
sudo: 3 incorrect password attempts
/var/log/secure says:

Code:
Aug 27 16:29:04 boron sudo: pam_sss(sudo:auth): authentication failure; logname=zhaoj uid=523 euid=0 tty=/dev/pts/0 ruser=zhaoj rhost= user=zhaoj
Aug 27 16:29:04 boron sudo: pam_sss(sudo:auth): received for user zhaoj: 6 (Permission denied)
4. It looks like that I forgot my password. But that's not the case.

Is it the problem of my configuration of ldap, sssd, or pam?

Any hints, suggestions, clues will be welcomed.

Thank you for reading.


======= New 2014.08.28 06:15:53 UTC ==================
I tested "ldapsearch" which needs ldap administrator's password and it worked. Can I say that my ldap configuration is correct?

If it is, so should I concentrate on sssd or pam?

Last edited by nsp; 08-28-2014 at 01:18 AM.
 
Old 08-27-2014, 07:57 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,636
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
I think it told you plainly:
Quote:
pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "zhaoj"
It didn't "succeed_if." Therefore, it failed with the standard error-message for password failure.

But, FYI, in any case, you don't want to use passwords anyhow. You always want to use certificates and to exclude the possibility of using passwords.

Last edited by sundialsvcs; 08-27-2014 at 07:58 AM.
 
Old 08-27-2014, 08:28 PM   #3
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sundialsvcs View Post
I think it told you plainly:


It didn't "succeed_if." Therefore, it failed with the standard error-message for password failure.

But, FYI, in any case, you don't want to use passwords anyhow. You always want to use certificates and to exclude the possibility of using passwords.
Thank you, Sundialsvcs.

1. I guess it isn't the problem of "uid >=1000". Because of two things:
1.1 Once I changed 1000 to 500 in file /etc/pam.d/*-auth and restarted sssd, and then the message line of "uid" disappeared, but the line of "Failed password " was still there.
1.2 I googled this, and another guy said "uid >=1000" was just a warning message.
But still, I am not quite sure about this.

2. Sometimes people need "sudo", which needs passwords.

Any other clues?
 
  


Reply

Tags
centos, ldap, pam


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP/SSSD with password policy overlays: possible to completely lock out accounts? btmiller Linux - Server 4 03-26-2013 06:45 AM
[SOLVED] Creating rsa keys for ssh - Having trouble- Still asks for password completelinuxnube Linux - Newbie 6 11-20-2012 08:18 AM
Specifying LDAP password format for SSSD in CentOS 6.2 TomL Linux - Enterprise 3 06-27-2012 06:09 AM
rhel6 sssd ldap for authentication and local files for userNumber (unix uid). mwd Linux - Enterprise 1 08-22-2011 07:14 AM
SSH crashes on login while any RSA/DSA keys exist jjinno Linux - Networking 2 04-09-2010 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration