How to configure phpLDAPadmin to connect to an LDAP server via SSL (ie. ldaps)

The devil is in the details ... Smile
If you connect through SSL, you've to use the following parameters in config.php:
$servers->setValue('server','host','ldaps://ldapserver.example.com:636');
$servers->setValue('server','port',0);
Notice that the host parameter contains the port too and the port parameter contains 0 (zero).

For using TLS you've to use the following:
$servers->setValue('server','host','ldap://ldapserver.example.com/');
$servers->setValue('server','port',389);
$servers->setValue('server','tls',true);

And obviously the LDAP server must listen on port 389 as well! If you want to prevent plain (unencrypted) connections and use TLS, you've to configure the LDAP server to refuse plain connections on port 389. The easier way is to configure it not to listen for connections on port 389, only for SSL connections on port 636.