Author Topic: Setting up NIS Client  (Read 304 times)

Offline PCLOS_manu

  • New Friend
  • *
  • Posts: 5
Setting up NIS Client
« on: February 20, 2013, 06:35:11 AM »
Hi,

I spent a long time trying to find out why I can't log on using NIS Domain.
I installed all the necessary packages, modified all the files and started all the services (I think) but it doesn't work.

This is the current situation:
- On the login screen I can see all the users who are part of the NIS domain, including myself.
- When I select my user and type my password the login is refused
- The command ypwhich gives me the correct domain name
- ypcat password | grep myusername shows my username and the hash password
- I modified: /etc/passwd, /etc/group and /etc/shadow as well as nsswitch.conf
- yptest -u myusername reports All tests passed
- su -l username reports su: incorrect password

I am totally out of ideas now.

Could please one of you guys tell what I missed?

I am thinking that it could be an issue with password encryption, maybe? MD5 vs ??
From the NIS hash password I can see that the server is using MD5 encryption, so I changed something about how password are generated for new user to match this encryption but it still not working.

I don't know any more.

Regards,

Emmanuel

OS: PCLinuxOS 2012

Offline PCLOS_manu

  • New Friend
  • *
  • Posts: 5
Re: Setting up NIS Client
« Reply #1 on: March 15, 2013, 05:56:47 AM »
More info on this issue (which is still not solved):
I can actually ssh onto my machine using my NIS user (this user doesn't exist locally).
Looking at the auth.log:

Mar 15 11:46:05 virtualmachine sshd[3640]: error: Could not get shadow information for username
Mar 15 11:46:05 virtualmachine sshd[3640]: Accepted password for username from XXX.XXX.XXX.XXX port xxxx ssh2

if I try to log on with the login screen I am getting the following logs:

Mar 15 11:38:29 virtualmachine kdm: :0[3422]: pam_tcb(kde:auth): Credenials for user username unknown
Mar 15 11:38:29 virtualmachine kdm: :0[3422]: pam_tcb(kde:auth): Authenication failed for UNKNOWN USER from (uid=0)

Is that giving any clues to some of you guys?

Help would be greatly appreciated.

Cheers,

Emmanuel