From owner-freebsd-hackers Tue Oct 3 19:38:34 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA14162 for hackers-outgoing; Tue, 3 Oct 1995 19:38:34 -0700 Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA14157 for ; Tue, 3 Oct 1995 19:38:27 -0700 Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.11/8.6.9) id WAA00277; Tue, 3 Oct 1995 22:35:24 -0400 From: A boy and his worm gear Message-Id: <199510040235.WAA00277@skynet.ctr.columbia.edu> Subject: Re: FreeBSD NIS-client and SUN NIS+ in yp-compatability mode (fwd) To: vazquez@iqm.unicamp.br (Pedro A M Vazquez) Date: Tue, 3 Oct 1995 22:35:21 -0400 (EDT) Cc: hackers@freebsd.org, andries@csr-lpf.ibama.gov.br In-Reply-To: <199510031852.SAA06257@kalypso.iqm.unicamp.br> from "Pedro A M Vazquez" at Oct 3, 95 06:52:34 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 2393 Sender: owner-hackers@freebsd.org Precedence: bulk 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 > > 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!" ~~~~~~~