getent passwd not returning some LDAP accounts
Issue
When the following command was uses some LDAP users would get returned while others would not.
getent passwd|grep username
When the getent command for the specific users was used all user data was returned properly.
getent passwd username
Example:
[root@hqsas-01 ~]# getent passwd haleyd
haleyd:xxxxxxxxxx:10098:10000:Haley, Dan:/home/haleyd:/bin/bash
[root@hqsas-01 ~]# getent passwd |grep haleyd
[root@hqsas-01 ~]# getent passwd loganj
loganj:xxxxxxxxxx:10000:10000:Logan, Jonathan:/home/loganj:/bin/bash
[root@hqsas-01 ~]# getent passwd |grep loganj
loganj:xxxxxxxxxx:10000:10000:Logan, Jonathan:/home/loganj:/bin/bash
Environment
- Red Hat Enterprise Linux 5 Update 5
- Windows 2003 SP2 running Windows Services for UNIX Version 3.5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.