Operating System - HP-UX
1834796 Members
2513 Online
110070 Solutions
New Discussion

Re: Problem with HPUX 11.23 as NIS-Client

 
pepade
Occasional Advisor

Problem with HPUX 11.23 as NIS-Client

Hi!

I am running an NIS Server with Linux. Now I want to configure a HPUX-Server to use this NIS Server. I have don all the configuration stuff exactly as described in the documentation.

When I run YPWHICH, it shows me the right server and domain. If I run YPCAT passwd, I'll get the correct passwd entries from the server. And if I am doing an su - NISUSER, it works very well.

But if I want to log in as NISUSER directly via ssh or telnet, I'll get an login incorrect.
I assume that there is something wrong with the password encryption. As far as I could find out the linux server is runnig on MD5 while HPUX runs on DES.
How can I get HPUX to do MD5 as well or is there any other way to resolve this problem?

Thanks
Peter
10 REPLIES 10
Safarali
Valued Contributor

Re: Problem with HPUX 11.23 as NIS-Client

Hi Peter
where you want to login Nis client or server
it is not clear from your mail
what is the operating system of your client
how you configured the master and client server, did you run yppush passwd command from master server
please clarify all points

Regads
Safar
pepade
Occasional Advisor

Re: Problem with HPUX 11.23 as NIS-Client

Hi Safar,

the Server is a LINUX System running on Novell Linux and is working well, because other Linux systems get their login informations correct. The client is running HPUX and I want to log in on this HPUX system.

The HPUX shall not become a Slaveserver, it shall only get login informations form the NIS server.

Peter
Safarali
Valued Contributor

Re: Problem with HPUX 11.23 as NIS-Client

Hi Prepade
now it is more clear
did you configure your HP server as NIS client
what is the output you are getting when you running ypwhich command on HP server
if you not configured as HP-UX as client do it and test it. once you configured
start /sbin/init.d/nis.client stop
and start
test ypcat passwd | grep user name
if you able to get nis user name then you can login, but make sure that user name is does not exist in your /etc/passwd file of hp-ux server

Regards
Safar
pepade
Occasional Advisor

Re: Problem with HPUX 11.23 as NIS-Client

Hi Safar,

as i already mentioned above i get correct responses from the NIS Server as long as i am logged in as root. Both ypwhich and ypcat are giving the right answers.

Nevertheless i get an login incorrect when i have entered the password. The userid itself is found correctly.

As i mentioned earlier i think HP UX and linux use a different encryption for the passwords. In free bsd ther is a file called login.conf where i can set the encryption method. But neither HP UX nor Linux use a file like this or i can't find it.

Peter
Safarali
Valued Contributor

Re: Problem with HPUX 11.23 as NIS-Client

how about the nis client I assume hp-ux is your nis client what is the out put of ypwhich command from nis client I mean your hp-ux server
and what is the output of domain name
provide me the output

Regards
Safar
Safarali
Valued Contributor

Re: Problem with HPUX 11.23 as NIS-Client

how about your nsswith files out put

Regards
Safar
pepade
Occasional Advisor

Re: Problem with HPUX 11.23 as NIS-Client

the output from ypwhich is
master.boeblingen.kolt.de

and domainname gives
boeblingen.kolt.de

In the nssswitch.conf passwd and group are both set to compat.

Peter
Safarali
Valued Contributor

Re: Problem with HPUX 11.23 as NIS-Client

Hi Peter
1. so if the user is not exisisting on the passwd file of the client and exisiting of ypcat password you can login
are you able to run ypcat passwd on hp-ux client server and get the user name
put a plus sign on bottom of your passwd file on master and client
+
and update the password file
also run ypxfrd daemon from client and try good luck

Regards
Safar
pepade
Occasional Advisor

Re: Problem with HPUX 11.23 as NIS-Client

thank you for your help but it doesn't work. When i try to log in as user there is always the login incorrect message.

Meanwhile i've found that the NIS server encrypts its passwords with blowfish method.

Peter
pepade
Occasional Advisor

Re: Problem with HPUX 11.23 as NIS-Client

Hi Safar,

i have changed the encryption method for new passwords to DES an now it works.

Again thanks for your help.

Peter