Documentation ¶
Index ¶
- Constants
- Variables
- func DN(pk, name, parent string) string
- func NewEentryType(pk, oc string, attrs ...string) (et *entryType)
- type Config
- type LDAPStore
- func (s *LDAPStore) All() (staffs models.Staffs)
- func (s *LDAPStore) AllGroup() (data []models.Group, err error)
- func (s *LDAPStore) Authenticate(uid, passwd string) (staff *models.Staff, err error)
- func (s *LDAPStore) Close()
- func (s *LDAPStore) Delete(uid string) (err error)
- func (s *LDAPStore) EraseGroup(name string) error
- func (s *LDAPStore) Get(uid string) (staff *models.Staff, err error)
- func (s *LDAPStore) GetByDN(dn 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) PoolStats() *PoolStats
- func (s *LDAPStore) Ready() error
- func (s *LDAPStore) Save(staff *models.Staff) (isNew bool, err error)
- func (s *LDAPStore) SaveGroup(group *models.Group) error
- type PoolStats
Constants ¶
View Source
const ( TimeLayout = "20060102150405Z" DateLayout = "20060102" DefaultPageSize = 100 DefaultPoolSize = 10 )
Variables ¶
View Source
var ( ErrEmptyAddr = errors.New("ldap addr is empty") ErrEmptyBase = errors.New("ldap base is empty") ErrEmptyDN = errors.New("ldap dn is empty") ErrEmptyPwd = errors.New("ldap passwd is empty") ErrLogin = errors.New("Incorrect Username/Password") ErrNotFound = errors.New("Not Found") ErrUnsupport = errors.New("Unsupported") )
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
Authenticate verify uid and password from one of sources, return valid DN and error
func (*LDAPStore) EraseGroup ¶ added in v0.8.13
func (*LDAPStore) ModifyBySelf ¶ added in v0.6.3
func (*LDAPStore) PasswordChange ¶ added in v0.6.3
func (*LDAPStore) PasswordReset ¶ added in v0.6.3
Source Files ¶
Click to show internal directories.
Click to hide internal directories.