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
    what port should i open on my server firewall to fetch ezeelogin license?
    Viewed 3656 times since Wed, Aug 16, 2017
    License mismatch! This Ezeelogin was installed with a different license.
    Viewed 359 times since Thu, Jul 16, 2020
    vi editor having issues while logged in via ezeelogin
    Viewed 3533 times since Wed, Jun 14, 2017
    NODE_RDP_PROTOCOL_X224_NEG_FAILURE()
    Viewed 6242 times since Fri, Feb 2, 2018
    Error: Server login failed. sh: /usr/local/ezlogin/ezutil: Permission denied
    Viewed 3816 times since Wed, Jun 14, 2017
    Disabling reCAPTCHA
    Viewed 3654 times since Wed, Jun 14, 2017
    ERROR db user: Incorrect datetime value: ’0000-00-00 00:00:00’ for column ’expiry’ at row 1
    Viewed 2649 times since Tue, Feb 12, 2019
    Error: Wrong passphrase or corrupted key
    Viewed 404 times since Mon, Nov 9, 2020
    internal command ezinfo not displaying server details
    Viewed 3604 times since Wed, Jun 14, 2017
    How to disable web terminal appllication in Cpanel ?
    Viewed 3702 times since Fri, Jun 29, 2018