sshd: debug1:PAM: password authentication failed for an illegal user: Authentication failure
Article ID: 183 | Rating: Unrated | Last Updated: Thu, Feb 1, 2018 at 4:55 AM
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.
The following commands should now return a result from AD/LDAP.
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
There are no attachments for this article.
ssh session slow and not responsive
Viewed 2882 times since Thu, Jun 15, 2017
Google Recaptcha shutdown issue
Viewed 1203 times since Tue, Jul 3, 2018
Class ’DOMDocument’ not found
Viewed 996 times since Thu, Oct 25, 2018
usernames already exists
Viewed 831 times since Fri, Mar 15, 2019
"Error: LDAP extension is not installed".
Viewed 3050 times since Fri, Sep 8, 2017