config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Cert        string
	Enabled     bool
	Key         string
	Listen      string
	SecretToken string
	TLS         bool
}

type Backend

type Backend struct {
	BaseDN      string
	Datastore   string
	Insecure    bool     // For LDAP backend only
	Servers     []string // For LDAP backend only
	NameFormat  string
	GroupFormat string
	SSHKeyAttr  string
	UseGraphAPI bool // For ownCloud backend only
}

config file

type Config

type Config struct {
	API                API
	Backend            Backend
	Debug              bool
	WatchConfig        bool
	YubikeyClientID    string
	YubikeySecret      string
	Frontend           Frontend
	LDAP               LDAP
	LDAPS              LDAPS
	Groups             []Group
	Syslog             bool
	Users              []User
	ConfigFile         string
	AwsAccessKeyId     string
	AwsSecretAccessKey string
	AwsRegion          string
}

type Frontend

type Frontend struct {
	AllowedBaseDNs []string // For LDAP backend only
	Listen         string
	Cert           string
	Key            string
	TLS            bool
}

type Group

type Group struct {
	Name          string
	UnixID        int
	IncludeGroups []int
}

type LDAP

type LDAP struct {
	Enabled bool
	Listen  string
}

type LDAPS

type LDAPS struct {
	Enabled bool
	Listen  string
	Cert    string
	Key     string
}

type User

type User struct {
	Name          string
	OtherGroups   []int
	PassSHA256    string
	PassAppSHA256 []string
	PrimaryGroup  int
	SSHKeys       []string
	OTPSecret     string
	Yubikey       string
	Disabled      bool
	UnixID        int
	Mail          string
	LoginShell    string
	GivenName     string
	SN            string
	Homedir       string
}

Jump to

Keyboard shortcuts

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