1829571 Members
3589 Online
109992 Solutions
New Discussion

Problem with NIS Client

 
Srichandan T.
Occasional Advisor

Problem with NIS Client

I have a problem with my NIS Client. When i try to start NIS service on my client machine, it gives me this following error message. My NIS master server runs with HP-UX 10.x OS and my client HP-UX 11.11. Please help me in resolving this issue.

pearl:/> /sbin/init.d/nis.client start
starting NIS CLIENT networking
starting up the rpcbind
rpcbind already started, using pid: 806
domainname wslon
starting up the Network Information Service
starting up the ypbind daemon
/usr/lib/netsvc/yp/ypbind
calling ypset with ontools
Sorry, ypbind on host pearl has rejected your request.
Checking NIS binding.
Bound to NIS server using domain wslon.
starting up the keyserv daemon
/usr/sbin/keyserv
pearl:/> id srichan
Can't find user srichan
7 REPLIES 7
KapilRaj
Honored Contributor

Re: Problem with NIS Client

Do a ypwhich and check to which server u r attached to ?

I hope ,

both server and client are in the same subnet
domainname is set

Regds,

Kaps
Nothing is impossible
Srichandan T.
Occasional Advisor

Re: Problem with NIS Client

Thanks for your reply kanps. Pleae find the ypwhich output. I am able to see NIS maps, but i am unable to login using my NIS userid. I have verified my /etc/nsswitch.conf file, it looks fine. Please guide me to resolve this issue.

pearl:/> ypwhich
ontools
pearl:/> ypwhich -x
Use "passwd" for map "passwd.byname"
Use "group" for map "group.byname"
Use "networks" for map "networks.byaddr"
Use "hosts" for map "hosts.byaddr"
Use "protocols" for map "protocols.bynumber"
Use "services" for map "services.byname"
Use "aliases" for map "mail.aliases"
Use "ethers" for map "ethers.byname"
pearl:/>
B. Hulst
Trusted Contributor

Re: Problem with NIS Client

Hi,

And then make sure you connecto the right NIS server. The domainname is wslon in your case?

Use ypset to connect to a master or slave DNS.

# ypset -h masterhost

or

# ypset -h masterhost -d wslon

Regards,
Bob
njia_1
Trusted Contributor

Re: Problem with NIS Client

Hi

did you used "ypset" options to bind to a specific server ?

if you used ypset then you have to specify the IP address of NIS server not hostname

YPBIND_OPTIONS="-ypset"
....
....
YPSET_ADDR="128.87.164.98"

hope this helps

thanks
Nan
V. Nyga
Honored Contributor

Re: Problem with NIS Client

Hi,

have you set a '+' at the end of the clients passwd, group and hosts?

Volkmar
*** Say 'Thanks' with Kudos ***
B. Hulst
Trusted Contributor

Re: Problem with NIS Client

And you can use

yppush

to push the information thru other slave NIS servers, in case you have those.


And if the data is out-of-date the remake the nis information on the NIS server with

ypmake

Regards,
Bob
V. Nyga
Honored Contributor

Re: Problem with NIS Client

Hi again,

Anything new?
Which file is in /var/yp/binding ?
And have you checked /etc/rc.config.d/namesvrs for the right nis server?

HTH
V.
*** Say 'Thanks' with Kudos ***