ldap-agent: 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 CentOS possible default full paths are:

/usr/sbin/ldap-agent - from package: 389-ds-base

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/sbin/ldap-agent - from package: 389-ds-base

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