Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 428 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 428 Bytes

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)