If you put the following lines into /etc/nsswitch.conf
passwd: compat passwd_compat: nis
server1% passwd passwd: Changing password for khh server1%