ns-newpwpolicy: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/sbin/ns-newpwpolicy - from package: 389-ds-base

You may install the required package with command apt-get install {package}
Error in other languages:
ns-newpwpolicy: bevel nie gevind nie
ns-newpwpolicy: comandă negăsită
ns-newpwpolicy: comando não encontrado
ns-newpwpolicy: commande introuvable
ns-newpwpolicy: command not found
ns-newpwpolicy: käsku ei ole
ns-newpwpolicy: không tìm thấy lệnh
ns-newpwpolicy: komanda nerasta
ns-newpwpolicy: Kommando nicht gefunden.
ns-newpwpolicy: kommandot finns inte
ns-newpwpolicy: komut yok
ns-newpwpolicy: nie znaleziono polecenia
ns-newpwpolicy: níor aimsíodh an t-ordú
ns-newpwpolicy: no se encontró la orden
ns-newpwpolicy: no s'ha trobat l'ordre
ns-newpwpolicy: opdracht niet gevonden
ns-newpwpolicy: parancs nem található
ns-newpwpolicy: perintah tidak ditemukan
ns-newpwpolicy: príkaz nenájdený
ns-newpwpolicy: příkaz nenalezen
ns-newpwpolicy: команда не найдена
ns-newpwpolicy: командата не е открита
ns-newpwpolicy: 命令找不到
ns-newpwpolicy: コマンドが見つかりません