Using Windows Active Directory (AD) To Authenticate Linux; Error "id: cannot find name for user ID XXXXX id: cannot find name for group ID XXXXX" (Doc ID 2273610.1)

Last updated on JUNE 07, 2017

Applies to:

Linux OS - Version Oracle Linux 7.0 and later
Linux x86-64

Symptoms

Linux server is configured as an Active Directory client via "nslcd" but cannot access.  Neither SSL nor TLS is used.  On the client "su - username" failed with the same errors:

# /bin/ssh username@hostname/IP Address
username@hostname/IP Address's password:
username@hostname/IP Address closed by remote host.
Connection to username@hostname/IP Address closed.

# /bin/ssh username@hostname/IP Address ls /
username@hostname/IP Address's password:
id: cannot find name for group ID XXXX
bin
boot
dev
etc
...

......
sys
tmp
usr
var
id: cannot find name for user ID XXXX 

# /bin/getent passwd username
username:*:XXXXX:XXXXX:User Details:/home/username:/bin/bash   >>> The "username" exists on AD.

# /bin/su - username
Last login: XXXXXX on pts/1
id: cannot find name for user ID XXXXX    
id: cannot find name for group ID XXXXX  
id: cannot find name for user ID XXXXX    

 

Changes

 The issue is most often seen in new deployments but can occur if AD authentication credentials change.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms