local - How to identify if currently logged in user is an LDAP user in Solaris -


I want to know whether the user currently logged in to Solaris is an LDAP user or a local user.
Any command?
or any runtime functions such as Getpname, getpwnam which tells a feature that it is an LDAP user or local user after the user's login?

Ldaplist will tell you that the user has an entry in the LDAP database. This does not resolve the case where the user has an entry in the / etc / passwd file too.

  ldaplist passwd user name  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -