How to integrate the Active directory and Nextcloud with LDAPs?

How to integrate the Active directory and Nextcloud with LDAPs?

I have to use the Nextcloud ,AD and Proxy server with LDAPs port 636 in my production.
that have the SSL Certificate to authentication between both or tri?
I have a 3 servers follow these:

  1. Nextcloud with External IP (CentOS7)
  2. Proxy server with External IP and Internal IP
  3. Domain controller server with Internal IP (Windows server)

I tried that but it not work I think the SSL certificate not trust with exported from AD.

Do you have any idea?

Thank you for your answers.