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

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