Documentation
¶
Index ¶
- Variables
- type GroupService
- func (x GroupService) Add(g *model.Group) error
- func (x GroupService) AddUserToGroup(dn, udn string) error
- func (x GroupService) Delete(gdn string) error
- func (x GroupService) ListGroupDN() (groups []*model.Group, err error)
- func (x GroupService) RemoveUserFromGroup(gdn, udn string) error
- func (x GroupService) Update(oldGroup, newGroup *model.Group) error
- type UserService
- func (x UserService) Add(user *model.User) error
- func (x UserService) ChangePwd(udn, oldpasswd, newpasswd string) error
- func (x UserService) Delete(udn string) error
- func (x UserService) Exist(filter map[string]interface{}) (bool, error)
- func (x UserService) ListUserDN() (users []*model.User, err error)
- func (x UserService) NewPwd(username string) (string, error)
- func (x UserService) Update(oldusername string, user *model.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( User = &UserService{} Group = &GroupService{} )
Functions ¶
This section is empty.
Types ¶
type GroupService ¶
type GroupService struct{}
func (GroupService) AddUserToGroup ¶
func (x GroupService) AddUserToGroup(dn, udn string) error
AddUserToGroup 添加用户到分组
func (GroupService) ListGroupDN ¶ added in v0.5.5
func (x GroupService) ListGroupDN() (groups []*model.Group, err error)
DelUserFromGroup 将用户从分组删除
func (GroupService) RemoveUserFromGroup ¶
func (x GroupService) RemoveUserFromGroup(gdn, udn string) error
DelUserFromGroup 将用户从分组删除
type UserService ¶
type UserService struct{}
func (UserService) ChangePwd ¶
func (x UserService) ChangePwd(udn, oldpasswd, newpasswd string) error
ChangePwd 修改用户密码,此处旧密码也可以为空,ldap可以直接通过用户DN加上新密码来进行修改
func (UserService) Exist ¶ added in v0.5.10
func (x UserService) Exist(filter map[string]interface{}) (bool, error)
func (UserService) ListUserDN ¶ added in v0.5.5
func (x UserService) ListUserDN() (users []*model.User, err error)
Click to show internal directories.
Click to hide internal directories.