authutil

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argon2CompareHashAndPassword added in v1.4.3

func Argon2CompareHashAndPassword(hash string, password []byte) error

We only support argon2d as is the only pure golang implementation

func Argon2MakeNewHash added in v1.4.3

func Argon2MakeNewHash(password []byte) (string, error)

func CheckHtpasswdUserPassword

func CheckHtpasswdUserPassword(username string, password string, htpasswdBytes []byte) (bool, error)

func CheckLDAPConnection added in v1.4.12

func CheckLDAPConnection(u url.URL, timeoutSecs uint, rootCAs *x509.CertPool) error

func CheckLDAPUserPassword

func CheckLDAPUserPassword(u url.URL, bindDN string, bindPassword string, timeoutSecs uint, rootCAs *x509.CertPool) (bool, error)

func GetLDAPUserAttributes added in v1.4.3

func GetLDAPUserAttributes(u url.URL, bindDN string, bindPassword string,
	timeoutSecs uint, rootCAs *x509.CertPool,
	username string,
	UserSearchBaseDNs []string, UserSearchFilter string,
	attributes []string) (map[string][]string, error)

func GetLDAPUserGroups added in v0.6.1

func GetLDAPUserGroups(u url.URL, bindDN string, bindPassword string,
	timeoutSecs uint, 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