ldaputil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLDAPConnection

func CheckLDAPConnection(u url.URL, timeout time.Duration,
	rootCAs *x509.CertPool) error

func CheckLDAPUserPassword

func CheckLDAPUserPassword(u url.URL, bindDN string, bindPassword string,
	timeout time.Duration, rootCAs *x509.CertPool) (bool, error)

func GetLDAPGroupUsers added in v0.0.3

func GetLDAPGroupUsers(u url.URL, bindDN string, bindPassword string,
	timeout time.Duration, rootCAs *x509.CertPool,
	userAttribute string,
	groupName string,
	UserSearchBaseDNs []string,
	GroupSearchBaseDNs []string) ([]string, error)

func GetLDAPUserGroups

func GetLDAPUserGroups(u url.URL, bindDN string, bindPassword string,
	timeout time.Duration, rootCAs *x509.CertPool, username string,
	UserSearchBaseDNs []string, UserSearchFilter string,
	GroupSearchBaseDNs []string, GroupSearchFilter string) ([]string, error)

func ParseLDAPURL

func ParseLDAPURL(ldapUrl string) (*url.URL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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