NIS SLAVE "user test does not exist"
by robbtek from LinuxQuestions.org on (#54PKH)
Example configuration:
(CENTOS6 same version on master and slave)
nis: MASTER NIS SERVER nis2: SLAVE NIS SERVER
Master and Slave server are configured correctly (file hosts nsswitch and other)
TEST OF PROBLEM:
Add new user on MASTER, it work perfectly. Make new db for domain and push on slave:
cd /var/yp
make
/etc/init.d/ypserv restart
/etc/init.d/yppasswdd restart
On SLAVE file/directory are update (/var/yp/binding/MY_DOMAIN). If I try to login with new user on master is OK but on slave "user test does not exist"
Slave server return that user "exist":
ypcat -h nis passwd.byname | grep test
test:x:9124:9124::/home/test:/bin/bash
ypcat -h nis2 passwd.byname | grep test
test:x:9124:9124::/home/test:/bin/bash
There are no error logs.
How can I solve it?


(CENTOS6 same version on master and slave)
nis: MASTER NIS SERVER nis2: SLAVE NIS SERVER
Master and Slave server are configured correctly (file hosts nsswitch and other)
TEST OF PROBLEM:
Add new user on MASTER, it work perfectly. Make new db for domain and push on slave:
cd /var/yp
make
/etc/init.d/ypserv restart
/etc/init.d/yppasswdd restart
On SLAVE file/directory are update (/var/yp/binding/MY_DOMAIN). If I try to login with new user on master is OK but on slave "user test does not exist"
Slave server return that user "exist":
ypcat -h nis passwd.byname | grep test
test:x:9124:9124::/home/test:/bin/bash
ypcat -h nis2 passwd.byname | grep test
test:x:9124:9124::/home/test:/bin/bash
There are no error logs.
How can I solve it?