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

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