Skip to content

parse ldap filter and validate entries

License

Notifications You must be signed in to change notification settings

janstuemmel/go-ldap-filter

Repository files navigation

LDAP filter

A work-in-progress RFC4515 ldap filter parser

Only a few filters are implemented at the moment (And, Or, Equality)

Usage

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)

About

parse ldap filter and validate entries

Topics

Resources

License

Stars

Watchers

Forks

Languages