Hi Juhan and others
Thanks for all your suggestions. I have done all the required
changes and still I seem to have some issues. The next item on my
checklist is the server configurations. But, here are the details of
what I have tried.
Stopped ypbind
[]# ps -ef |grep ypbind
[]# ypbind -debug
parsing config file
Trying entry: domain <domain>.com server odin
parsed domain '<domain>' server 'odin'
add_server() domain: <domain>, host: odin, slot: 0
[Welcome to ypbind-mt, version 1.11]
ping host 'odin', domain '<domain>'
Answer for domain '<domain>' from server 'odin'
Pinging all active server.
Server 'odin' for domain '<domain>' doesn't answer.
ping host 'odin', domain '<domain>'
Answer for domain '<domain>' from server 'odin'
Signal (2) for quitting program arrived.
[]# ypbind -broadcast -debug
add_server() domain: <domain>, broadcast
[Welcome to ypbind-mt, version 1.11]
do_broadcast() for domain '<domain>' is called
ypbindproc_domain_2_svc (<domain>)
Status: YPBIND_FAIL_VAL
ypbindproc_domain_2_svc (<domain>)
Status: YPBIND_FAIL_VAL
broadcast: RPC: Timed out.
leave do_broadcast() for domain '<domain>'
[]# ypbind -c
Trying entry: domain <domain> server odin
Config file /etc/yp.conf is ok.
[]#
[]# cat /etc/rndc.conf
/* $Id: rndc.conf,v 1.7 2001/01/09 21:40:45 bwelling Exp $ */
/*
* Sample rndc configuration file.
*/
options {
default-server localhost;
default-key "rndckey";
Quote:};
server localhost {
key "rndckey";
Quote:};
key "rndckey" {
algorithm hmac-md5;
secret "xdrXBlDGbQoYsCbTs7n20hDiionbWhDy0SetE3g5Iyk3eFflkEAiHOOHEjVF";
Quote:};
-Stopped and restarted service named
[]# service named status
number of zones: 4
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
[]#
My concern is about the rndc.conf file contents. Please comment.
Thanks
Sri
> > Hi Juhan
> > Thank you very much for your reply. I have tried out all the
> > changes and commands and still, there seems to be some issue. I am
> > suspecting the server side settings. If you have any other comments,
> > pl. let me know.
> > a. Changed nsswitch.conf to only compat..values
> > b. Changed nsswitch.conf for hosts values.
> > =====
> > passwd: compat
> > shadow: compat
> > group: compat
> > #hosts: db files nisplus nis dns
> > hosts: nis dns files
> > =====
> > Here are the outputs:
> > /var/log/messages output
> > Sep 2 09:59:56 spock ypbind: Setting NIS domain name <domain>:
> > succeeded
> > Sep 2 09:59:56 spock ypbind: ypbind startup succeeded
> > Sep 2 09:59:57 spock ypbind: bound to NIS server odin.<domain>
> > Sep 2 09:59:57 spock autofs: automount startup succeeded
> > Sep 2 09:59:57 spock automount[798]: starting automounter version
> > 3.1.7, path = /fs, maptype = file, mapname = /etc/auto.nfs
> > Sep 2 10:00:02 spock yppasswdd: rpc.yppasswdd startup succeeded
> > Sep 2 10:02:46 spock login(pam_unix)[1115]: check pass; user unknown
> > Sep 2 10:02:46 spock login(pam_unix)[1115]: authentication failure;
> > logname= uid=0 euid=0 tty=pts/0 ruser= rhost=cherry.<domain>
> > Sep 2 10:02:49 spock login[1115]: FAILED LOGIN 1 FROM cherry.<domain>
> > FOR <login>, Authentication failure
> > Sep 2 10:02:52 spock login(pam_unix)[1115]: session opened for user
> > <another_login> by (uid=0)
> > Sep 2 10:02:52 spock -- [1115]: LOGIN ON pts/0 BY <another_login>
> > FROM cherry.<domain>
> > []$ ypwhich
> > <server>.<domain>
> > []$ ypwhich -m
> > Can't get map list for domain <domain>. Reason: Can't bind to server
> > which serves this domain
> > []$ ypcat -h <ipaddr> passwd
> > No such map passwd.byname. Reason: Can't bind to server which serves
> > this domain
> Exceedingly strange! I don't think I've ever seen that kind of thing
> before (but that may not mean much). How did ypwhich get setup with
> <server>.<domain> if ypbind cannot bind to the server that serves your
> domain? Hmm...
> Does your default domain in /etc/defaultdomain correspond to the domain
> that you have used in /etc/resolv.conf? Can you ping the <server>.<domain>
> from your client (you probably can... clutching at straws...). There must
> be something funky with your domain specification or routing?
> Maybe try starting up ypbind manually with the debug switch (on Linux),
> and see what it reports in your session. You should get some error
> messages there, and hopefully something informative. Maybe try broadcast
> while testing, to see if that finds a good NIS server?
> OTOH, maybe the NIS maps have not been built right? Can you bind to that
> NIS server from any other machine? from any Sun Solaris machine? you
> should be able to test NIS lookups on the server itself (also a client).
> On the NIS server you can ypbind either to <server>.<domain> or localhost.
> Anyone else have any ideas?