For my Bitbucker server -> under Administration -> ACCOUNTS - > User Directories, I have a Active Directory server set up.
However, I keep getting this error 'Synchronisation failed. See server logs for details.' even though the setup is the same for my JIRA server.
When I test settings with a user, everything works. Below are screenshots of the error messages for synchronization and the test remote connection which is successful.

