ldap

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ldap

type Ldap struct {
	Address  string `json:"address"`
	Port     string `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
	Conn     *ldap.Conn
	TLS      bool `json:"tls"`
}

func NewLdapClient

func NewLdapClient(address, port, username, password string, tls bool) *Ldap

func (*Ldap) Connect

func (l *Ldap) Connect() error

func (*Ldap) Login

func (l *Ldap) Login(dn, filter, password string) error

func (*Ldap) Search

func (l *Ldap) Search(dn, filter string, attributes []string) ([]*ldap.Entry, error)

Jump to

Keyboard shortcuts

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