ldaptest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stop

func Stop(server *TestLDAP)

Stop stops asynchronously the instance of the SLAPD server. The server output is printed only if the server terminated in an error.

Types

type SLAPDConfig

type SLAPDConfig struct {
	// Directory for database to be written to.
	LDAPDir string
	// List of schema files to include.
	Includes []string
	// TLS assets for LDAPS.
	TLSKeyPath  string
	TLSCertPath string
	// Bind properties for SLAPD
	RootDN  string
	RootPwd string
	// contains filtered or unexported fields
}

SLAPDConfig is the struct used to execute the SLAPD config template.

type TestLDAP

type TestLDAP struct {
	clitest.AsyncTestCommand
	DexConfig *dex_ldap.Config
	TLSCert   string
}

TestLDAP holds the info about the running process and its configuration

func Start

func Start(testDir string) (*TestLDAP, error)

Start asynchronously starts a new SLAPD server using the configuration from testdata and the default schema Returns the TestLDAP instance if it has been started, and any errors that may have happen. Loading the test data may return an error AND the running TestLDAP instance.

Jump to

Keyboard shortcuts

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