sshd[902]: debug1:PAM: password authentication failed for an illegal user: Authentication failure

If you are getting the error when you configured pam_ldap for the backend ssh authentication.

Ensure to uncomment following lines in /etc/ldap.conf

# RFC 2307 (AD) mappings
nss_map_objectclass posixAccount user
#nss_map_objectclass shadowAccount user
nss_map_attribute uid sAMAccountName
nss_map_attribute homeDirectory unixHomeDirectory

 Restart the nscd service.

service nscd restart

 The following commands should now return a result from AD/LDAP.
 
root@ubuntu:~# getent passwd james
james:*:10003:11000:james:/home/james:/usr/local/bin/ezsh
 
root@ubuntu:~# finger james
Login: james                      Name: james
Directory: /home/james                  Shell: /usr/local/bin/ezsh
On since Thu Feb  1 14:23 (IST) on pts/1 from 192.168.56.1
   1 hour 47 minutes idle
No mail.
No Plan.



0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Switching node states in Ezeelogin Cluster
    Viewed 87 times since Sat, Jan 2, 2021
    Error occured. Please contact the administrator - Permission Denied - creation failed
    Viewed 2178 times since Thu, Jun 15, 2017
    Deleting entries in the mysql database table gwactivity_logs
    Viewed 114 times since Fri, Oct 30, 2020
    Primary node showing the public ip instead of lan ip when cluster is configured
    Viewed 978 times since Wed, Nov 21, 2018
    User could not be found on the system:: No error information
    Viewed 821 times since Thu, May 30, 2019
    Node process fails to start with Error: Cannot find module ’express’
    Viewed 644 times since Wed, Sep 16, 2020
    "Error: LDAP extension is not installed".
    Viewed 2958 times since Fri, Sep 8, 2017
    Jump server user password expired
    Viewed 81 times since Tue, Dec 22, 2020
    Error: User add failed. Cannot add user on this node: FAILED: to establish SSH session
    Viewed 1582 times since Thu, Sep 6, 2018
    key_read: uudecode ssh user cant login with ssh key
    Viewed 6604 times since Thu, Jun 15, 2017