ldapsetpasswd: 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/ldapsetpasswd - from package: ldapscripts

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