@Adila mebrek Applications and services that use lightweight directory access protocol (LDAP) to communicate with Microsoft Entra Domain Services can be configured to use secure LDAP. An appropriate certificate and required network ports must be open for secure LDAP to work correctly.
Refer this article to troubleshoot issues with secure LDAP access in Microsoft Entra Domain Services.
Incase if you are using Hybrid connections this do not support LDAP.
Mentioned here- https://learn.microsoft.com/en-us/azure/app-service/app-service-hybrid-connections
Let us know.