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 ¶
type AppService struct { Addr string Bind string Auth string BaseDn string Filter string Attributes []string }
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) GetMaxId ¶
func (s *AppService) GetMaxId() (int, error)
func (*AppService) SearchPage ¶
func (s *AppService) SearchPage() ([]map[string]string, error)
func (*AppService) UpdatePwd ¶
func (s *AppService) UpdatePwd(dn, passwd string) error
Click to show internal directories.
Click to hide internal directories.