ldap2repository: 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/ldap2repository - from package: goto-fai-backend

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