ldap

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled           bool   `yaml:"enabled"`
	LdapHost          string `yaml:"ldapHost"`
	LdapPort          int    `yaml:"ldapPort"`
	BindDN            string `yaml:"bindDN"`
	BindPassword      string `yaml:"bindPwd"`
	UserSearchBase    string `yaml:"userSearchBase"`
	UserNameAttribute string `yaml:"userNameAttribute"`
	UserMailAttribute string `yaml:"userMailAttribute"`
	GroupSearchBase   string `yaml:"groupSearchBase"`
	GroupAttribute    string `yaml:"groupAttribute"`
}

Config -

type DefaultManager

type DefaultManager struct {
	Config Config
}

DefaultManager -

func (*DefaultManager) GetUserIDs

func (m *DefaultManager) GetUserIDs(groupName string) (users []User, err error)

GetUserIDs -

type Manager

type Manager interface {
	GetUserIDs(groupName string) (users []User, err error)
}

Manager -

func NewDefaultManager

func NewDefaultManager(configDir string) (mgr Manager, err error)

NewDefaultManager -

type User

type User struct {
	UserDN string
	UserID string
	Email  string
}

User -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL