Documentation
¶
Index ¶
- type AppService
- func (s *AppService) AddDn(dn, pwd string, attrs map[string][]string) (bool, error)
- func (s *AppService) Authentication(username, password string) bool
- func (s *AppService) Conn() (*ldap.Conn, error)
- func (s *AppService) DeleteDn(dn string) error
- func (s *AppService) Get(uid string) (map[string]string, error)
- func (s *AppService) GetMaxId() (int, error)
- func (s *AppService) Search() ([]map[string]string, error)
- func (s *AppService) SearchPage() ([]map[string]string, error)
- func (s *AppService) UpdatePwd(dn, passwd string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppService ¶ added in v1.0.8
type AppService struct { Addr string Bind string Auth string BaseDn string Filter string Attributes []string }
func (*AppService) Authentication ¶ added in v1.0.8
func (s *AppService) Authentication(username, password string) bool
func (*AppService) Conn ¶ added in v1.0.8
func (s *AppService) Conn() (*ldap.Conn, error)
func (*AppService) DeleteDn ¶ added in v1.0.8
func (s *AppService) DeleteDn(dn string) error
func (*AppService) Get ¶ added in v1.0.8
func (s *AppService) Get(uid string) (map[string]string, error)
func (*AppService) GetMaxId ¶ added in v1.0.8
func (s *AppService) GetMaxId() (int, error)
func (*AppService) Search ¶ added in v1.0.8
func (s *AppService) Search() ([]map[string]string, error)
func (*AppService) SearchPage ¶ added in v1.0.8
func (s *AppService) SearchPage() ([]map[string]string, error)
func (*AppService) UpdatePwd ¶ added in v1.0.8
func (s *AppService) UpdatePwd(dn, passwd string) error
Click to show internal directories.
Click to hide internal directories.