Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultGeneratedPasswordLength = 16
Variables ¶
This section is empty.
Functions ¶
func MustRegister ¶
func MustRegister(reg prometheus.Registerer, cs ...prometheus.Collector)
MustRegister registers all rtm metrics with the provided registerer and panics upon the first registration that causes an error.
func NewLDAPServerCollector ¶
func NewLDAPServerCollector(s *ldapserver.Server) prometheus.Collector
Types ¶
type Config ¶
type Config struct {
Logger logrus.FieldLogger
LDAPHandler string
LDAPListenAddr string
LDAPSListenAddr string
TLSCertFile string
TLSKeyFile string
LDAPBaseDN string
LDAPAdminDN string
LDAPAllowLocalAnonymousBind bool
BoltDBFile string
LDIFMain string
LDIFConfig string
LDIFDefaultCompany string
LDIFDefaultMailDomain string
LDIFTemplateExtraVars map[string]interface{}
Metrics prometheus.Registerer
OnReady func(*Server)
}
Config bundles server configuration settings.
Click to show internal directories.
Click to hide internal directories.