Documentation ¶
Index ¶
- Constants
- Variables
- type LDAP
- func (a *LDAP) Authentication(username, password string) (Result, error)
- func (a *LDAP) Bind(username, password string) error
- func (a *LDAP) Connect() (*ldap.Conn, error)
- func (a *LDAP) GetGroupUsers(GroupName string, conn *ldap.Conn)
- func (a *LDAP) GetSearchRequest(username string) *ldap.SearchRequest
- func (a *LDAP) Group(name string, conn *ldap.Conn) (string, error)
- func (a *LDAP) RestPassword(username, OldPassword, NewPassword string, change bool) error
- func (a *LDAP) User(username string, conn *ldap.Conn) (*ldap.Entry, error)
- type Result
Constants ¶
View Source
const (
DefaultTimeout = time.Second * 3
)
Variables ¶
View Source
var ( AdAttributes = []string{"sAMAccountName", "displayName", "mail", "mobile", "employeeID", "givenName"} OpenldapAttributes = []string{"cn", "mail", "displayName", "uid"} )
Functions ¶
This section is empty.
Types ¶
type LDAP ¶
func GetLdapApi ¶
func (*LDAP) Authentication ¶
func (*LDAP) GetGroupUsers ¶
func (*LDAP) GetSearchRequest ¶
func (*LDAP) RestPassword ¶
Click to show internal directories.
Click to hide internal directories.