From: Ian Collins on
On 05/ 7/10 05:07 AM, CKM wrote:
> Besides some grepping through /etc/passwd and assumptions of
> repository order in nsswitch.conf, is there any method to easily
> determine is a user is local vs LDAP?
>
> The ldaplist command is a pretty good start to tell me if a user is in
> LDAP, but it doesn't preclude a user being in /etc/passwd and
> depending on nsswitch.conf, either could take precedence.

I'm pretty sure the order of the output of "getent passwd" reflects the
lookup order.

--
Ian Collins