Re: FreeBSD YP-client, Linux YP-master
In the last episode (Sep 11), Linus Sjberg said: > Dan Nelson <[EMAIL PROTECTED]> 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 That sounds like a bug in RedHat's ypserv, actually. A missing map shouldn't be logged as "refused", and probably shouldn't be logged at all unless debugging is enabled. > > 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. Yes, that looks like the right change for 4.x. -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD YP-client, Linux YP-master
Dan Nelson <[EMAIL PROTECTED]> 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD YP-client, Linux YP-master
In the last episode (Sep 10), Linus Sjberg said: > I have a problem with my FreeBSD-box acting as a NIS-client against > company NIS-servers. > > Everything works smoothly except for the NIS-master repeatedly logging > Sep 10 20:27:00 ypmaster ypserv[14194]: refused connect from 192.168.1.12:655 to > procedure ypproc_order (my.domain,master.passwd.byname;-4) 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? reason: No such map in server's domain reason: YP server error Missing maps shouldn't get logged as "refused", since that error is reserved for maps you are not permitted to read (either via the securenets file or if the map exists, has the YP_SECURE key, and you aren't root). I looked at the source to Linux ypserv, and the only time it logs "refused" is for those two conditions I mentioned above. If you start ypserv on the Linux box with the -d flag, it should log some more information, including exactly why requests are refused. > 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. -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"