Working With Oracle® Solaris 11.2 Directory and Naming Services: LDAP

Exit Print View

Updated: July 2014
 
 

Listing All User Entry Attributes

To list specific information such as a user's passwd entry, use the getent command. For example:

# getent passwd user1
user1::30641:10:Joe Q. User:/home/user1:/bin/csh

You also use the getent command to perform lookups on databases that are listed in the automount table, for example, getent automount/map [key]. For example:

# getent automount/auto_home user1
user1 server-name:/home/user1

In the previous example, auto_home is the name of the automount map and user1 is the search key. If you do not specify any search key, then the entire contents of the specified automount map are listed.

To list all attributes, use ldaplist with the -l option.

# ldaplist -l passwd user1
dn: uid=user1,ou=People,dc=west,dc=example,dc=com
uid: user1
cn: user1
uidNumber: 30641
gidNumber: 10
gecos: Joe Q. User
homeDirectory: /home/user1
loginShell: /bin/csh
objectClass: top
objectClass: shadowAccount
objectClass: account
objectClass: posixAccount
shadowLastChange: 6445