ldapmdl

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateOnLDAP

func AuthenticateOnLDAP(loginID, password string) (int, error)

AuthenticateOnLDAP authenticates user with LDAP server

func CheckLDAPConfig

func CheckLDAPConfig() error

CheckLDAPConfig checks of LDAP configuration is initialized or not

func InitLDAP

func InitLDAP(configFilePath string) error

InitLDAP get LDAP server configuration

Types

type LDAPConfig

type LDAPConfig struct {
	BaseDN               string
	LDAPServerIPWithPort string
	FilterDN             string
	LDAPUsername         string
	LDAPPassword         string
}

LDAPConfig to get read and store LDAP server configuration

Jump to

Keyboard shortcuts

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