Library for dynamically building LDAP filters