fixing get_ldap_param