You have not provided much information,
However common problems are untrusted or missing certificates if using STARTTLS or ldaps port 686.
Incorrect DN username or password when conneting to the LDAP server.
Wrong RBAC role given to the binding DN. Trying to use STARTTLS when LDAP Port 686 is configured.