Connect to AD nextcloud

Guys, good afternoon!
I need to integrate nextcloud with Active Directory, but even with php-ldap installed it says that it is not possible to connect to the base at the moment.
Has anyone managed to connect to AD?