# EldapStringFilters

**An RFC4515 ldap string filter parser**

Given an ldap search text filter string in [RFC4515]( format, parses and converts
to a filter suitable to be used by [Eldap](

## Installation

If [available in Hex](, the package can be installed
by adding `eldap_string_filters` to your list of dependencies in `mix.exs`:

def deps do
    {:eldap_string_filters, "~> 0.1.0"}

Docs can be found at [](

## Usage
iex> {:ok, filter} = EldapStringFilters.parse("(cn=Foo)")
{:ok, {:equalityMatch, {:AttributeValueAssertion, 'cn', 'Foo'}}}                                                                                                           

iex> {:ok, filter} = EldapStringFilters.parse("(&(|(ou:dn:=People)(:")
    or: [
      extensibleMatch: {:MatchingRuleAssertion, :asn1_NOVALUE, 'ou', 'People',
      extensibleMatch: {:MatchingRuleAssertion, '', :asn1_NOVALUE,
       'Administration', false}
    equalityMatch: {:AttributeValueAssertion, 'objectclass', 'inetorgperson'},
    equalityMatch: {:AttributeValueAssertion, 'sn', 'willeke'}