FreeBSD YP-client, Linux YP-master

Linus Sjöberg lsjoberg at aland.net
Thu Sep 11 00:53:07 PDT 2003


Dan Nelson <dnelson at allantgroup.com> writes:

> If you try to run "ypmatch YP_LAST_MODIFIED master.passwd.byname" as
> root (on your box and then on the master server), which error do you
> get?

ypmatch: can't match key YP_LAST_MODIFIED in map master.passwd.byname. reason: No such map in server's domain


> > So, is there a way for me to configure my box so that it still runs
> > NIS but without asking for master.passwd? I have tried googleing on
> > the issue but haven't found anything appropriate...
> 
> Commenting out the lookup in src/lib/libc/gen/getpwent.c:mis_map() and
> rebuilding world should do it.

I forgot mentioning that I'm running 4.9-PRERELEASE (doh), and I couldn't 
locate such a function but adding
   return(YP_HAVE_NONE);
in top of _have_master(char *_yp_domain) solved the problem for me.

Thanks a lot for pointing me into the right direction!!

(After getting rid of tje master.pass.byname-errors I also noticed a bunch of
similar warnings for networks.byaddr, but that was easier to get rid of =))

Best regards,
Linus


More information about the freebsd-questions mailing list