fine tune ldap library detection