Unix administration - Querying NIS server

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > January 2004 > Querying NIS server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Querying NIS server
Kyle Tucker

2004-01-23, 5:07 pm

I'm looking for a tool along lines of a "ypdig"
that can query maps on any particular NIS master
or slave server from a non-NIS bound client. I
just want to get information from the maps on
a system that isn't in the NIS domain. I don't see
any tool or PERL module for this. Any clues? This
will be used on Mac OS X clients for determining
some user-based info, such as $HOME on NFS servers.
Eventually I'll may put these clients on NIS but
cannot for now. Thanks.

--
- Kyle
Finnbarr P. Murphy

2004-01-23, 5:07 pm

I do not know of any such utility but it would be relatively
easy to code a RPC-based utility to return the relevant
information in, for example, a comma separated string.
The RPC server would be located on a system that
was in the NIS domain. The OS X clients would simply make a
remote procedure call to the server to get the relevant
information.

- Finnbarr

kylet@ s h o r e . n e t (Kyle Tucker) wrote in message news:<kMRnb.56116$Tr4.127332@attbi_s03>...
quote:

> I'm looking for a tool along lines of a "ypdig"
> that can query maps on any particular NIS master
> or slave server from a non-NIS bound client. I
> just want to get information from the maps on
> a system that isn't in the NIS domain. I don't see
> any tool or PERL module for this. Any clues? This
> will be used on Mac OS X clients for determining
> some user-based info, such as $HOME on NFS servers.
> Eventually I'll may put these clients on NIS but
> cannot for now. Thanks.


phn@icke-reklam.ipsec.nu

2004-01-23, 5:07 pm

kylet@ wrote:
quote:

> I'm looking for a tool along lines of a "ypdig"
> that can query maps on any particular NIS master
> or slave server from a non-NIS bound client. I
> just want to get information from the maps on
> a system that isn't in the NIS domain. I don't see
> any tool or PERL module for this. Any clues? This
> will be used on Mac OS X clients for determining
> some user-based info, such as $HOME on NFS servers.
> Eventually I'll may put these clients on NIS but
> cannot for now. Thanks.



I've personally used "ypsnarf" from dan farmer. It's a tool
that "exercise security holes in yp/nis"


ypsnarf.c in google will get the source to you
quote:

> --
> - Kyle



--
Peter Håkanson
IPSec Sverige ( At Gothenburg Riverside )
Sorry about my e-mail address, but i'm trying to keep spam out,
remove "icke-reklam" if you feel for mailing me. Thanx.
Kyle Tucker

2004-01-23, 5:07 pm

In article <bo42dq$1ces$4@nyheter.ipsec.se>,
phn@icke-reklam.ipsec.nu writes:
quote:

>
> I've personally used "ypsnarf" from dan farmer. It's a tool
> that "exercise security holes in yp/nis"



Thanks - this works perfect after getting a developer to
compile it on Solaris for me (some bp_address issue). Now
to get it built on OS X.

--
- Kyle
phn@icke-reklam.ipsec.nu

2004-01-23, 5:07 pm

kylet@ wrote:
quote:

> In article <bo42dq$1ces$4@nyheter.ipsec.se>,
> phn@icke-reklam.ipsec.nu writes:
[QUOTE][color=darkred]
> Thanks - this works perfect after getting a developer to
> compile it on Solaris for me (some bp_address issue). Now
> to get it built on OS X.



Feel free to drop a copy of the OS-X version to ftp.manet.nu/incoming
quote:

> --
> - Kyle



--
Peter Håkanson
IPSec Sverige ( At Gothenburg Riverside )
Sorry about my e-mail address, but i'm trying to keep spam out,
remove "icke-reklam" if you feel for mailing me. Thanx.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com