filters

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndResolver

func AndResolver(object ldap.Object, filter *ber.Packet) (bool, error)

AndResolver apply LDAP FilterAnd expressions on the given entry.

func ApproxResolver

func ApproxResolver(object ldap.Object, filter *ber.Packet) (bool, error)

ApproxResolver resolves LDAP FilterApproxMatch expressions on the current entry.

func EqualResolver

func EqualResolver(object ldap.Object, filter *ber.Packet) (bool, error)

EqualResolver resolves LDAP FilterEqualityMatch expressions on the current entry.

func GreaterOrEqualResolver

func GreaterOrEqualResolver(object ldap.Object, filter *ber.Packet) (bool, error)

GreaterOrEqualResolver resolves LDAP FilterGreaterOrEqual expressions on the current entry.

func LessOrEqualResolver

func LessOrEqualResolver(object ldap.Object, filter *ber.Packet) (bool, error)

LessOrEqualResolver resolves LDAP FilterLessOrEqual expressions on the current entry.

func Match

func Match(object ldap.Object, filter *ber.Packet) (bool, error)

Match uses the given filter to check if the current entry matches it.

func NotResolver

func NotResolver(object ldap.Object, filter *ber.Packet) (bool, error)

NotResolver apply LDAP FilterNot expressions on the given entry.

func OrResolver

func OrResolver(object ldap.Object, filter *ber.Packet) (bool, error)

OrResolver apply LDAP FilterOr expressions on the given entry.

func PresentResolver

func PresentResolver(object ldap.Object, filter *ber.Packet) (bool, error)

PresentResolver resolves LDAP FilterPresent expressions on the current entry.

func SubstringResolver

func SubstringResolver(object ldap.Object, filter *ber.Packet) (bool, error)

SubstringResolver resolves LDAP FilterSubstrings expressions on the current entry.

Types

type BerFilterExpressionResolver

type BerFilterExpressionResolver struct {
	// contains filtered or unexported fields
}

BerFilterExpressionResolver is a function wrapper that apply a specific type of LDAP filter expression on the given directory entry. It returns true if the filter match the current entry, false otherwise.

func (BerFilterExpressionResolver) Resolve

func (resolver BerFilterExpressionResolver) Resolve(object ldap.Object, filter *ber.Packet) (bool, error)

type Error

type Error struct {
	// contains filtered or unexported fields
}

An Error describes a failure to execute a filter resolver.

func (Error) Error

func (err Error) Error() string

func (Error) Unwrap

func (err Error) Unwrap() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL