getent.ldap: 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/bin/getent.ldap - from package: nslcd-utils

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