Documentation ¶
Index ¶
- Variables
- func IsLdapUserDisabled(userAccountControl string) bool
- type Error
- type Group
- type LDAP
- type Service
- func (s *Service) CheckLogin(username string, password string) (bool, error)
- func (s *Service) FindUser(name string, recursiveGroup bool) (*User, error)
- func (s *Service) GetGroup(name string, recursive bool) (*Group, error)
- func (s *Service) GetGroupAndUsers(name string, recursive bool) (*Group, error)
- func (s *Service) GetUser(name string, recursiveGroup bool) (*User, error)
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConnectionFailed = newLdapError("connection to ldap failed") ErrBindFailed = newLdapError("user binding failed - possible wrong passsword") )
Functions ¶
func IsLdapUserDisabled ¶
Types ¶
type LDAP ¶
type LDAP interface { GetUser(username string, recursiveGroup bool) (*User, error) FindUser(name string, recursiveGroup bool) (*User, error) GetGroup(name string, recursive bool) (*Group, error) GetGroupAndUsers(name string, recursive bool) (*Group, error) CheckLogin(username string, password string) (bool, error) }
LDAP : LDAP interface to be implemented
func NewService ¶
func NewService(repo repository.Repository, config *config.Config) (LDAP, error)
NewService : Create an new LDAP Service
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service : Ldap Service struct
func (*Service) CheckLogin ¶
func (*Service) GetGroupAndUsers ¶
GetGroupAndUsers : Get an LDAP Group with users by its unique name
Click to show internal directories.
Click to hide internal directories.