Issue establishing LDAP/AD connection

Nextcloud installation as FreeNAS Plugin

Nextcloud version (eg, 18.0.2): 20.0.4 official FreeNAS PlugIn on FreeBSD instance

The issue you are facing:
when configuring the ldap /ad , I enter the host and the port the system then start searching forever. From earlier installations I know that this just takes some moments until it response with success ot failure but now nothing happpens!
The AD is working fine and ldapsearch also works from the iocage shell that run the Nextcloud instance. I have no idea what to check anymore!!