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

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