The following lines are put into /etc/nsswitch.conf:
passwd: compat passwd_compat: nis
server1% passwd passwd: Changing password for khh server1%
passwd exits before a password is entered.