macOS / binaries /

chkpasswd

/usr/libexec/chkpasswd
Verifies user password against various systems

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

source: man