config

package
v0.0.0-...-624a73a Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

ports:

ldap: 1389
ldaps: 1686
ca.pem: ...
crt.pem: ...
crt.key: ...
ca.pem.file: ...
crt.pem.file: ...
crt.key.file: ...

databases:

  • base: ... replicas:
  • url: ca.pem: ... crt.pem: ... crt.key: ... ca.pem.file: ... crt.pem.file: ... crt.key.file: ... attrs: "*,+"

olcSynrepl: syncrepl

...
provider=ldaps://ldap.example.com
bindmethod=simple
binddn="cn=goodguy,dc=example,dc=com"
credentials=dirtysecret
starttls=critical
schemachecking=on
scope=sub
searchbase="dc=example,dc=com"
tls_cacert=/path/to/file
tls_cert=/path/to/file.ext
tls_key=/path/to/file.ext
tls_protocol_min=1.2
tls_reqcert=demand
type=refreshAndPersist

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SrvConfig ServerConfig
	Database  []DatabaseConfig
	Schemas   []SchemaConfig
}

type DatabaseConfig

type DatabaseConfig struct {
	Base       string
	Replicatls []ReplicaTls
}

func (*DatabaseConfig) ImportNotNull

func (dbIn *DatabaseConfig) ImportNotNull(db *DatabaseConfig)

type ReplicaTls

type ReplicaTls struct {
	ReplicaPasswordFile string
	LdapsTls            tls
	ReplicaUrl          string
}

func (*ReplicaTls) ImportNotNull

func (rtIn *ReplicaTls) ImportNotNull(rt *ReplicaTls)

type SchemaConfig

type SchemaConfig struct {
	Path  string
	Index []string
}

type ServerConfig

type ServerConfig struct {
	AdminPassword       string
	AdminPasswordSHA    string
	AdminPasswordFile   string
	ReplicaPassword     string
	ReplicaPasswordSHA  string
	ReplicaPasswordFile string
	LdapPort            string
	Srvtls              serverTls
	Debug               string
}

func (*ServerConfig) GetAdminPassword

func (scIn *ServerConfig) GetAdminPassword() (string, error)

func (*ServerConfig) GetReplicaPassword

func (scIn *ServerConfig) GetReplicaPassword() (string, error)

func (*ServerConfig) ImportNotNull

func (scIn *ServerConfig) ImportNotNull(sc *ServerConfig)

Jump to

Keyboard shortcuts

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