A work-in-progress RFC4515 ldap filter parser
Only a few filters are implemented at the moment (And, Or, Equality)
import "github.com/janstuemmel/go-ldap-filter"
filter, err := ldapfilter.NewParser("|(name=Jon)(name=Foo)").Parse()
if err != nil {
panic(err)
}
ok := filter.Match(map[string][]string{
"name": {"Jon"}
})
fmt.Println(ok)