onedb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDAPer

type LDAPer interface {
	Bind(username, password string) error
	Query(query *ldap.SearchRequest) (*ldap.SearchResult, error)

	QueryJSON(query *ldap.SearchRequest) (string, error)
	QueryJSONRow(query *ldap.SearchRequest) (string, error)
	QueryStruct(result interface{}, query *ldap.SearchRequest) error
	QueryStructRow(result interface{}, query *ldap.SearchRequest) error
	QueryValues(query *ldap.SearchRequest, result ...interface{}) error
}

LDAPer is the interface of an implementation of the Lightweight Directory Access Protocol (LDAP) protocol for generic directory services over the internet.

func NewLDAP

func NewLDAP(hostname string, port int, binddn string, password string) (LDAPer, error)

NewLDAP creates a new Lightweight Directory Access Protocol (LDAP) for generic directory services over the internet.

Jump to

Keyboard shortcuts

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