Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 1995 22:35:21 -0400 (EDT)
From:      A boy and his worm gear <wpaul@skynet.ctr.columbia.edu>
To:        vazquez@iqm.unicamp.br (Pedro A M Vazquez)
Cc:        hackers@freebsd.org, andries@csr-lpf.ibama.gov.br
Subject:   Re: FreeBSD NIS-client and SUN NIS+ in yp-compatability mode (fwd)
Message-ID:  <199510040235.WAA00277@skynet.ctr.columbia.edu>
In-Reply-To: <199510031852.SAA06257@kalypso.iqm.unicamp.br> from "Pedro A M Vazquez" at Oct 3, 95 06:52:34 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Of all the gin joints in all the world, Pedro A M Vazquez had to
walk into mine and say:
 
> Hello
> 
> Could someone help this guy? He's moving to Linux because he can't
> make his FreeBSD nis client talk to the Sun NIS+ master
> Pedro
> 
> > From: Andries J. Algera <andries@csr-lpf.ibama.gov.br>
> > Subject: FreeBSD NIS-client and SUN NIS+ in yp-compatability mode
> > 
> [...]
[chop]
> > Using ypcat on the FreeBSD machine, I managed to browse through the
> > various NIS-maps.  However when it comes to logging in, I get the
> > following error message: 
> > 
> > 	yp_order: clnt_call: RPC: Procedure unavailable

Already reported and fixed in both 2.1 and -current. I foolishly
used yp_order() to test for the presence of the master.passwd.byname
'shadow' map since yp_order() seemed to be the least complicated
and fastest NIS function to use. Since I don't run NIS+, I didn't
realize that NIS+ doesn't support the yp_order() procedure until
it was too late.

Unfortunately, fixing this requires rebuilding libc. If you
feel up to it, you can download a new copy of 
/usr/src/lib/libc/gen/getpwent.c from a handy FTP site.
 
> > As FreeBSD doesn't have a manual page for the function yp_order,

I was hoping to document all of the YP client functions, but
other obligations (read: my job) have been consuming all my time.

> > Is this a known porblem?

Yes.

> > If so, is there already a new version of the 
> > NIS-client that works with a NIS+ server in yp-compatibility mode that I 
> > could test.

Again, you need a new libc. If you want to try the latest 2.1
snapshot, that should work correctly. I changed the library
function that did the test to use yp_first() instead of yp_order().
This was actually fixed some time ago.
 
> > Before hand thanks for reading and hopefully answering my message.

Hope this helps.
 
> > Cheers,
> > 
> > Andries

-Bill

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul            (212) 854-6020 | System Manager
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Møøse Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510040235.WAA00277>