/usr/libexec/chkpasswd
chkpasswd verifies a supplied username and password against file, NIS, or OpenDirectory infosystems.