Documentation ¶
Index ¶
- func GroupsSetter(gs *[]Group) func(res interface{})
- func UnitsSetter(us *[]Unit) func(res interface{})
- func UsersSetter(us *[]User) func(res interface{})
- func WithAdmin(usr, pass string) func(*opt)
- func WithBaseDN(dn string) func(*opt)
- func WithDebug() func(*opt)
- func WithTimeout(t time.Duration) func(*opt)
- func WithURL(url string) func(*opt)
- type Client
- func (c *Client) Auth(usr, pass string) (user User, err error)
- func (c *Client) Close()
- func (c *Client) GroupUsers(nodeDN string, pageSize uint32) (ResultsScanner, error)
- func (c *Client) Groups(pageSize uint32) (ResultsScanner, error)
- func (c *Client) OUUsers(pageSize uint32, ouNames ...string) (ResultsScanner, error)
- func (c *Client) OrganizationalUnits(pageSize uint32) (ResultsScanner, error)
- func (c *Client) Ping() error
- func (c *Client) Search(query string) ([]map[string]interface{}, error)
- func (c *Client) SearchByLogon(loginName string) (user User, err error)
- type Group
- type ResultsScanner
- type Unit
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupsSetter ¶
func GroupsSetter(gs *[]Group) func(res interface{})
func UnitsSetter ¶
func UnitsSetter(us *[]Unit) func(res interface{})
func UsersSetter ¶
func UsersSetter(us *[]User) func(res interface{})
func WithBaseDN ¶
func WithBaseDN(dn string) func(*opt)
func WithTimeout ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GroupUsers ¶
func (c *Client) GroupUsers(nodeDN string, pageSize uint32) (ResultsScanner, error)
func (*Client) OUUsers ¶
func (c *Client) OUUsers(pageSize uint32, ouNames ...string) (ResultsScanner, error)
func (*Client) OrganizationalUnits ¶
func (c *Client) OrganizationalUnits(pageSize uint32) (ResultsScanner, error)
type ResultsScanner ¶
Click to show internal directories.
Click to hide internal directories.