ldap

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 3 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
}

func NewLdapClient

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

func (*Ldap) Connect

func (l *Ldap) Connect() error

func (*Ldap) Login

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

func (*Ldap) Search

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

Jump to

Keyboard shortcuts

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