Prev: Scriptable method to determine if user is local (/etc/passwd) user or LDAP user on Sol10 server
Next: What's this about sun/oracle type-7 keyboards being only PC layout? (soon?)
From: Ian Collins on 6 May 2010 16:12 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 |