Modify ldap.plugin to work with LDAPS.

Thanks, @jhakonen.