by Mariam SABIL.
Thank you so much Emma and Ken, I figured it out, it's just like you said both of you the problem is that the moodle is not at the same network as the ldap server (I used to know that they do are in the same network but while testing in my local machine which is connected with a vpn, it works not like in the hosted site)
Thank you again for your help