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

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