ldap

package module
v0.0.0-...-c54d413 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppService

type AppService struct {
	Addr       string
	Bind       string
	Auth       string
	BaseDn     string
	Filter     string
	Attributes []string
}

func (*AppService) AddDn

func (s *AppService) AddDn(dn, pwd string, attrs map[string][]string) (bool, error)

func (*AppService) Authentication

func (s *AppService) Authentication(username, password string) bool

func (*AppService) Conn

func (s *AppService) Conn() (*ldap.Conn, error)

func (*AppService) DeleteDn

func (s *AppService) DeleteDn(dn string) error

func (*AppService) Get

func (s *AppService) Get(uid string) (map[string]string, error)

func (*AppService) GetMaxId

func (s *AppService) GetMaxId() (int, error)

func (*AppService) Search

func (s *AppService) Search() ([]map[string]string, error)

func (*AppService) SearchPage

func (s *AppService) SearchPage() ([]map[string]string, error)

func (*AppService) UpdatePwd

func (s *AppService) UpdatePwd(dn, passwd string) error

Jump to

Keyboard shortcuts

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