9726 getent could list the attr databases

Review Request #1161 — Created Aug. 14, 2018 and submitted

ptribble
illumos-gate
9726
general

This adds support for enumerating and searching auth_attr, exec_attr, prof_attr, and user_attr to getent.

Verified that the new getent can handle the 4 attr databases, both in enumeration mode and with a supplied key, and that the output is correct. For example,

$ getent user_attr jack
jack::::type=normal;profiles=Audit Configuration;roles=root
Loading...