I tried to run a NIS server/client with FreeBSD 9.1 RELEASE on ESXi4.1 and I found that it seems like ypserv and ypbind run well but yppasswd failed.
Those are how I enable and test the NIS service:
I tried to reboot, but nothing changed, then I set all.log in syslog.conf but got nothing.
I also tried the steps above in FreeBSD 9.0 RELEASE, 9.2 RC3, 8.3 RELEASE, 8.4 RELEASE.
I'm not sure if it is a bug in FreeBSD 9.x or something I am doing wrong. I googled the error message with "FreeBSD9" and other keywords, but got nothing, too.
Those are how I enable and test the NIS service:
- Create a new VM and install a fresh FreeBSD 9.1 RELEASE.
- Add a user (e.g.: asdf) and copy the entry of the account from /etc/master.passwd to /var/yp/master.passwd.
- Use
vipw
to comment the entry of the account and add+:::::::::
. - Add settings below to /etc/rc.conf:
Code:nisdomainname="qwer" #eg nis_server_enable="YES" nis_client_enable="YES" nis_yppasswdd_enable="YES"
- Execute
domainname "qwer" ; cd /var/yp ; ypinit -m
to build the NIS map. - Execute
service ypserv start
,service ypbind start
,service yppasswdd start
. - Execute
id asdf
andypcat passwd
for testing. - Check if rpc.yppasswdd is turned on by
rpcinfo | grep yppasswdd
. - Execute
passwd asdf
oryppasswd asdf
. Then it would get an error message as below:
Code:# passwd asdf Changing NIS password for asdf passwd: pam_chauthtok(): error in service module
I tried to reboot, but nothing changed, then I set all.log in syslog.conf but got nothing.
I also tried the steps above in FreeBSD 9.0 RELEASE, 9.2 RC3, 8.3 RELEASE, 8.4 RELEASE.
yppasswd $NIS_USERNAME
fails in 9.x but successful in 8.x.I'm not sure if it is a bug in FreeBSD 9.x or something I am doing wrong. I googled the error message with "FreeBSD9" and other keywords, but got nothing, too.