Operating System - HP-UX
1833777 Members
2213 Online
110063 Solutions
New Discussion

Re: NIS client is not working properly

 
SOLVED
Go to solution
sreerag
Occasional Advisor

NIS client is not working properly

i have an nis server in redhat enterprise linux 5
now i am configuring my hpux server as nis client
i am able to su from root user to nis user but from local user i tried to su it asks passwd and passwd is not taking it shows error likt this
su - sreerag
Password:
su: Sorry
$
and o/p ypwhich
# ypwhich
ypwhich: clnt_create error: RPC: Unknown host

# ypwhich -m
hosts.byname testlinux
hosts.byaddr testlinux
rpc.bynumber testlinux
netid.byname testlinux
group.bygid testlinux
mail.aliases testlinux
protocols.bynumber testlinux
rpc.byname testlinux
services.byname testlinux
protocols.byname testlinux
ypservers testlinux
passwd.byname testlinux
passwd.byuid testlinux
group.byname testlinux
services.byservicename testlinux
#

# /sbin/init.d/nis.client start
starting NIS CLIENT networking
starting up the rpcbind
rpcbind already started, using pid: 750
domainname FMGNIS
starting up the Network Information Service
starting up the ypbind daemon
ypbind will not use the server list available in the file /var/yp/binding//ypservers for binding purpose. Also if ypbind is invoked with -broadcast option, then -broadcast option is ignored.
/usr/lib/netsvc/yp/ypbind -ypset
calling ypset with 10.80.111.92
Checking NIS binding.
Bound to NIS server using domain FMGNIS.
starting up the keyserv daemon
/usr/sbin/keyserv


please suggest what to do

12 REPLIES 12
TTr
Honored Contributor

Re: NIS client is not working properly

Also it looks like you are using an IP address for the NIS master. In that case ensure the the NIS master is resolved on the HP host. You should add the name/IP of the NIS master in /etc/hosts and have "files" before "nis" in /etc/nsswitch.conf.
Post the contents of /etc/nsswitch.conf and /etc/rc.config.d/netdaemons (the NIS stuff only). Check the contents and permissions of /etc/nsswitch.conf. It should contain nis directives for the NIS maps and be readable by everyone. Same for /etc/hosts, check NIS name/IP and permissions.
sreerag
Occasional Advisor

Re: NIS client is not working properly

hi please fond the out put of /etc/rc.config.d/netdaemons and /etc/nsswitch.conf files output
TTr
Honored Contributor

Re: NIS client is not working properly

Try putting "files" before "nis" for the hosts map in /etc/nsswitch.conf.
I meant to ask for the /etc/rc.config.d/namesrvs file not netdaemons.
sreerag
Occasional Advisor

Re: NIS client is not working properly

hi i made files first for hosts in nsswitch.conf file
hosts: file nis
still i am getting same error
# ypwhich
ypwhich: clnt_create error: RPC: Unknown host

i am attaching the /etc/rc.config.d/namesvrs file nis portion
TTr
Honored Contributor

Re: NIS client is not working properly

Are the permissions for /etc/hosts and /etc/nsswitch.conf readable by all? Also is /etc readable and executable by all?
In /etc/rc.config.d/namesvrs, change the "YPBIND_OPTIONS" to YPBIND_OPTIONS="-ypset -l /var/yp/ypbind.log" and restart the NIS client service. Check the log file to see if additional errors or info gets posted there
TTr
Honored Contributor

Re: NIS client is not working properly

I just remembered this thread about the similar issue
http://forums11.itrc.hp.com/service/forums/questionanswr.do?threadId=1244687
On the Linux host change the encryption type for the password.
sreerag
Occasional Advisor

Re: NIS client is not working properly

ya i have set ypset -l /var/yp/ypbind.log

option

# more /var/yp/ypbind.log
08.31 22:17:35 ph047dor pid=7654 /usr/lib/netsvc/yp/ypbind
ypbind will not use the servers list available in the file /var/yp/binding/
/ypservers for binding purpose. Also if ypbind is invoked with -bro
adcast option, then -broadcast option is ignored.
08.31 22:17:35 ph047dor pid=7655 /usr/lib/netsvc/yp/ypbind
ypbind -ypset: allowing ypset! (this is insecure)


and the link mentioned is not accessible
TTr
Honored Contributor
Solution

Re: NIS client is not working properly

http://forums12.itrc.hp.com/service/forums/questionanswer.do?&threadId=1244687
The problem is the Linux NIS server is using MD5 enclyption for the passwords and the HP-UX is using DES encryption. So the NIS server password can not be deciphered on the HP-UX client. You have to change the password encryption method on the Linux server to DES.
sreerag
Occasional Advisor

Re: NIS client is not working properly

hi thanks a lot
i disabled MD5 in linux and it is taking authentication from hpux

now i am facing problem with automount it is taking long time
if i give su - it takes more time to switch user

and i mounted the filesystem directly then it is working fine please sugest
TTr
Honored Contributor

Re: NIS client is not working properly

Automounter is not easy to troubleshoot. Is it the old automounter version or the newer autofs? It is part of NFS so keeping NFS up to date with all the patching is a good start. Also check that name resolution for all the hosts involved in this setup works fine.
Search the itrc web site for the document "NFS performance assessment" and check it out.
Also
http://www.docs.hp.com/en/1435/NFSPerformanceTuninginHP-UX11.0and11iSystems.pdf

http://docs.hp.com/en/B1031-90061/ch05s04.html
sreerag
Occasional Advisor

Re: NIS client is not working properly

hi
thanks a lot
its working fine now
V. Nyga
Honored Contributor

Re: NIS client is not working properly

Hi,

please read the Forums Etiquette:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

... assign points and close the thread ...

Thanks
Volkmar
*** Say 'Thanks' with Kudos ***