Documentation ¶
Index ¶
- Variables
- func DN(pk, name, parent string) string
- func NewEentryType(pk, oc string, attrs ...string) (et *entryType)
- func NewSource(cfg *Config) (*ldapSource, error)
- type Config
- type LDAPStore
- func (s *LDAPStore) All() (staffs models.Staffs)
- func (s *LDAPStore) AllGroup() (data []models.Group)
- func (s *LDAPStore) Authenticate(uid, passwd string) (err error)
- func (s *LDAPStore) Close()
- func (s *LDAPStore) Delete(uid string) (err error)
- func (s *LDAPStore) Get(uid string) (staff *models.Staff, err error)
- func (s *LDAPStore) GetGroup(name string) (group *models.Group, err error)
- func (s *LDAPStore) ModifyBySelf(uid, password string, staff *models.Staff) (err error)
- func (s *LDAPStore) PasswordChange(uid, oldPasswd, newPasswd string) (err error)
- func (s *LDAPStore) PasswordReset(uid, passwd string) (err error)
- func (s *LDAPStore) Ready() error
- func (s *LDAPStore) Save(staff *models.Staff) (isNew bool, err error)
- func (s *LDAPStore) SaveGroup(group *models.Group) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Base string Domain string )
Functions ¶
func NewEentryType ¶ added in v0.7.0
Types ¶
type LDAPStore ¶ added in v0.6.3
type LDAPStore struct {
// contains filtered or unexported fields
}
func (*LDAPStore) Authenticate ¶ added in v0.6.3
func (*LDAPStore) ModifyBySelf ¶ added in v0.6.3
func (*LDAPStore) PasswordChange ¶ added in v0.6.3
func (*LDAPStore) PasswordReset ¶ added in v0.6.3
Click to show internal directories.
Click to hide internal directories.