This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
ldap_setting.go
25 lines (23 loc) · 1.53 KB
/
ldap_setting.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package graylog
import (
"github.com/suzuki-shunsuke/go-set/v6"
)
// LDAPSetting represents a ldap settings.
type LDAPSetting struct {
Enabled bool `json:"enabled"`
UseStartTLS bool `json:"use_start_tls"`
TrustAllCertificates bool `json:"trust_all_certificates"`
ActiveDirectory bool `json:"active_directory"`
SystemUsername string `json:"system_username" v-create:"required" v-update:"required"`
SystemPassword string `json:"system_password" v-create:"required" v-update:"required"`
LDAPURI string `json:"ldap_uri" v-create:"required" v-update:"required"`
SearchBase string `json:"search_base" v-create:"required" v-update:"required"`
SearchPattern string `json:"search_pattern" v-create:"required" v-update:"required"`
DisplayNameAttribute string `json:"display_name_attribute" v-create:"required" v-update:"required"`
DefaultGroup string `json:"default_group" v-create:"required" v-update:"required"`
GroupSearchBase string `json:"group_search_base,omitempty"`
GroupIDAttribute string `json:"group_id_attribute,omitempty"`
GroupSearchPattern string `json:"group_search_pattern,omitempty"`
GroupMapping map[string]string `json:"group_mapping,omitempty"`
AdditionalDefaultGroups set.StrSet `json:"additional_default_groups,omitempty"`
}