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

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