Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and"publickey" data from a shell script ?

2007-01-08 Thread James Carlson
Roland Mainz writes: > > It sounds like part of a decent RFE to me. > > Ouch... and how would the implementation look like ? The idea was to get > simple access to the data independent of the backend nameservice > details, e.g. a script should not need to implement support for YP, > NIS+, LDAP etc

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and"publickey" data from a shell script ?

2007-01-08 Thread Darren J Moffat
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 val

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and"publickey" data from a shell script ?

2007-01-05 Thread Roland Mainz
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 value

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and"publickey" data from a shell script ?

2007-01-05 Thread Roland Mainz
James Carlson wrote: > Peter C. Norton writes: > > I think he wants to be able to add a flag, i.e. -nssvc nis, -nssvc > > dns, -nssvc 'ldap', etc. to getent that will dlopen the appropriate > > nss_blah library instead of following the lookup in nsswitch.conf so > > that the lookup to a particular

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and"publickey" data from a shell script ?

2007-01-05 Thread Roland Mainz
Martin Bochnig wrote: > Roland Mainz wrote: [snip] > "Normal" users with limited privileges may naturally have no - or > limited - access. > Didn't you find any help in the man pages for NIS, NIS+ and LDAP? That was not the goal. The matching scripts should be able to operate regardless how the ba

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and"publickey" data from a shell script ?

2007-01-05 Thread Roland Mainz
Martin Bochnig wrote: > Martin Bochnig wrote: > >Peter C. Norton wrote: > >>On Fri, Jan 05, 2007 at 02:59:55AM +0100, Martin Bochnig wrote: [snip] > >>How does nisinit get names from dns even if your system is set to > >>resolve via NIS+? > > Maybe you mean, Roland would want to clone the methods

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-05 Thread James Carlson
Peter C. Norton writes: > I think he wants to be able to add a flag, i.e. -nssvc nis, -nssvc > dns, -nssvc 'ldap', etc. to getent that will dlopen the appropriate > nss_blah library instead of following the lookup in nsswitch.conf so > that the lookup to a particular database can be scripted. Bett

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-05 Thread Peter C. Norton
On Fri, Jan 05, 2007 at 12:25:30PM +0100, Martin Bochnig wrote: > Martin Bochnig wrote: > >Peter C. Norton wrote: > >>On Fri, Jan 05, 2007 at 02:59:55AM +0100, Martin Bochnig wrote: > >>>So how would you be able to bypass any nameservice defined in > >>>nsswitch.conf, getting those "user_attr" attr

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-05 Thread Peter C. Norton
On Fri, Jan 05, 2007 at 02:59:55AM +0100, Martin Bochnig wrote: > So how would you be able to bypass any nameservice defined in > nsswitch.conf, getting those "user_attr" attributes in a > "nameservice-independent way"? > I mean, either you get it locally (files), or you may get it via one of > the

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and "publickey" data from a shell script ?

2007-01-05 Thread Darren J Moffat
Roland Mainz wrote: Hi! 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. user_attr is a lit

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and "publickey" data from a shell script ?

2007-01-05 Thread Darren J Moffat
Martin Bochnig wrote: Maybe getuserattr() or getauthattr() ? Plus getpublickey() Or don't those work with "files" as NS ?? /etc/publickey works just fine with files. -- Darren J Moffat ___ opensolaris-discuss mailing list opensolaris-discuss@op

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-05 Thread Martin Bochnig
Martin Bochnig wrote: >Peter C. Norton wrote: > > > >>On Fri, Jan 05, 2007 at 02:59:55AM +0100, Martin Bochnig wrote: >> >> >> >> >>>So how would you be able to bypass any nameservice defined in >>>nsswitch.conf, getting those "user_attr" attributes in a >>>"nameservice-independent way"? >>

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-05 Thread Martin Bochnig
Peter C. Norton wrote: >On Fri, Jan 05, 2007 at 02:59:55AM +0100, Martin Bochnig wrote: > > >>So how would you be able to bypass any nameservice defined in >>nsswitch.conf, getting those "user_attr" attributes in a >>"nameservice-independent way"? >>I mean, either you get it locally (files), or

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-04 Thread Martin Bochnig
Roland Mainz wrote: >No, because in the case that the matching entries in /etc/nsswitch.conf >contain more than "files" you need nameservice-specific calls, one for >YP, one for NIS, one for NIS+, one for LDAP etc. - and you would have to >care about the lookup order and fallback behaviour if a na

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-04 Thread Martin Bochnig
Roland Mainz wrote: > >>Exclusively from a shell script, no C? >> >> > >Yes... > > > >>Can't you analyse the files in /etc directly then? >> >> > >No, because in the case that the matching entries in /etc/nsswitch.conf >contain more than "files" you need nameservice-specific calls, one f

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-04 Thread Roland Mainz
Martin Bochnig wrote: > Martin Bochnig wrote: > >Martin Bochnig wrote: > >>>Maybe getuserattr() or getauthattr() ? > > > >Plus getpublickey() > > > >Or don't those work with "files" as NS ?? > > > >*shrug* > > Exclusively from a shell script, no C? Yes... > Can't you analyse the files in /etc di

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and "publickey" data from a shell script ?

2007-01-04 Thread Martin Bochnig
Martin Bochnig wrote: >Martin Bochnig wrote: > > >>>Maybe getuserattr() or getauthattr() ? >>> >>> >>> >>> > >Plus getpublickey() > >Or don't those work with "files" as NS ?? > >*shrug* > Exclusively from a shell script, no C? Can't you analyse the files in /etc directly then? Which othe

Re: [osol-discuss] Obtaining nameservice-independent "user_attr"and "publickey" data from a shell script ?

2007-01-04 Thread Roland Mainz
Martin Bochnig wrote: > Martin Bochnig 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") ? > > > >Maybe getuserattr() or getauthattr() ? >

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and "publickey" data from a shell script ?

2007-01-04 Thread Martin Bochnig
Martin Bochnig wrote: >Roland Mainz wrote: > > > >>Hi! >> >> >> >>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") ? >> >> >> >> > >Maybe getuserattr() or getauthat

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and "publickey" data from a shell script ?

2007-01-04 Thread Martin Bochnig
Martin Bochnig wrote: >Roland Mainz wrote: > > > >>Hi! >> >> >> >>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") ? >> >> >> >> > >Maybe getuserattr() or getauthat

Re: [osol-discuss] Obtaining nameservice-independent "user_attr" and "publickey" data from a shell script ?

2007-01-04 Thread Martin Bochnig
Roland Mainz wrote: >Hi! > > > >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") ? > > Maybe getuserattr() or getauthattr() ? nameservice-independence is probably done v

[osol-discuss] Obtaining nameservice-independent "user_attr" and "publickey" data from a shell script ?

2007-01-04 Thread Roland Mainz
Hi! 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") ? Bye, Roland -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Uni