While configuring the LDAP authentication i faced the following problem.
I have configured the nss in nsswitch.conf file as follows:
passwd: ldap files
group: files
shadow: files
When i give the following command: getent passwd all the users including the local and the ldap users are listed:
getent passwd
usr_admin:x:1191:205:usr_admin:/home/usr_admin:/usr/bin/tcsh (LDAP user)
user_sec:x:1192:205:user_sec:/home/user_sec:/usr/bin/tcsh (LDAP user)
root:x:0:0:root:/root:/bin/bash (local user)
bin:x:1:1:bin:/bin:/bin/bash (local user)
However when i give the getent with a key:
getent passwd root
root:x:0:0:root:/root:/bin/bash
it works only for local users. Meaning that when i give a user_id of an ldap server, nothing is listed: getent passwd usr_admin
(nothing is listed here..)
Any suggestion why this happening?