Ldap search support (contribution by Joseph Ligier @littlejo)