ldap

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLdapPoolSize int = 3

Variables

This section is empty.

Functions

func AuthenticationFunc

func AuthenticationFunc(conn *ldap.Conn, params interface{}) (error, interface{})

func ModifyLdapUserPasswdFunc

func ModifyLdapUserPasswdFunc(conn *ldap.Conn, params interface{}) (error, interface{})

func SearchLdapUsersFunc

func SearchLdapUsersFunc(conn *ldap.Conn, params interface{}) (error, interface{})

func WithLDAPConn

func WithLDAPConn(config *LdapConfig, params interface{}, fn func(conn *ldap.Conn, params interface{}) (error, interface{})) (error, interface{})

Types

type LDAPPool

type LDAPPool struct {
	// contains filtered or unexported fields
}

type LdapConfig

type LdapConfig struct {
	Url      string
	User     string
	Password string
	BaseDN   string
}

func (*LdapConfig) GetUserDN

func (lc *LdapConfig) GetUserDN() string

type LdapError

type LdapError struct {
	Message string
}

func (*LdapError) Error

func (e *LdapError) Error() string

Jump to

Keyboard shortcuts

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