To use Secure Active Directory with a valid certificate from a CA trusted by Java, all you need to do is use a secure Active Directory URL in your settings, for example,
If you want to use Secure Active Directory with a non-trusted (self-signed) certificate, seen Managing TLS Certificates.
To construct the Manager DN string according to your Active Directory server, navigate to a user with administrator privileges (e.g. Administrator (1)), and then construct the Manager DN in reverse order (2,3) from the User, up the folder hierarchy.
For example, in this simple configuration, the Manager DN here should be
Notice that the domain (3) is split in reverse order to dc=alljfrog,dc=org