Roland Mainz wrote:
Darren J Moffat wrote:
Roland Mainz wrote:
Is there a nameservice-independent way to obtain the values for
"user_attr" and "publickey" from a shell script (if not I would propose
to add a extension to "getent") ?
publickey no there isn't.

For user_attr it depends which values you want.

I want the "raw" values as returned by |getuserattr()|, |getprofattr()|,
|getprofattr()| etc. ... /usr/bin/getent should just return the matching
values, either for the admins, users or shell script to use.

As long as you understand that you can NOT use the data from user_attr(4) on its own it MUST be used in conjunction with prof_attr(4) and exec_attr(4) in some cases.

Possible usage would be a system admin to figure out whether the system
"sees" the changed attributes in a way he/she would expect it (e.g.
change/modification verification) ...

For the cases that auths(1), profiles(1), roles(1) cover it is actually better to use those because those tell you what the applications that use the data see not what the raw entry in the nameservice is.

Having said that I completely agree with you that for every entry in nsswitch.conf there should be a corresponding getent capability.

--
Darren J Moffat
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to