Kyle McDonald wrote: > The user_attr man page says: > >> The search order for multiple user_attr sources is specified >> in the /etc/nsswitch.conf file, as described in the >> nsswitch.conf(4) man page. The search order follows that >> for passwd(4). > My question is: > > If I have 'passwd: compat' and ;passwd_compat: nis' in > /etc/nsswitch.conf, and '@NetGroup' in /etc/passwd, Can I do something > like this in either /etc/user_attr or the user_attr nis map? > > @NetGroup::::profiles=Primary Administrator;roles=root > > I laready maintain the netgroup of users who I consider > 'Administrators', It'd be nice to only need to maintain that list in one > place, and not have to make entries in user_attr for each of the same users. > > Is this possible?
Not at this time. I have prototyped in the past an extension to the user_attr table that allows putting a netgroup or hostname in the currently unused qualifier filed but that hasn't been integrated into any release at this time. This is covered under CR# 4986798 http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4986798 -- Darren J Moffat