config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PeopleDN       string `yaml:"peopleDN"       validate:"required"`
	GroupDN        string `yaml:"groupDN"        validate:"required"`
	AddUserToGroup struct {
		MemberAttributes []string `yaml:"memberAttributes" validate:"required"`
	} `yaml:"addUserToGroup"`
	CreateUser struct {
		RDNAttribute       string              `yaml:"rdnAttribute" validate:"required"`
		ObjectClasses      []string            `yaml:"objectClasses"`
		UserNameAttributes []string            `yaml:"userNameAttributes"`
		DefaultAttributes  map[string][]string `yaml:"defaultAttributes"`
	} `yaml:"createUser"`
}

func ParseFile

func ParseFile(filePath string) (Config, error)

func (Config) GetUserDN

func (c Config) GetUserDN(user string) string

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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