Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Latest commit

 

History

History
59 lines (49 loc) · 1.66 KB

ldap_setting.md

File metadata and controls

59 lines (49 loc) · 1.66 KB

graylog_ldap_setting

resource "graylog_ldap_setting" "foo" {
  system_username = "admin"
  system_password = "password"
  ldap_uri = "ldap://localhost:389"
  search_base = "OU=user,OU=foo,DC=example,DC=com"
  search_pattern = "(cn={0})"
  display_name_attribute = "displayname"
  default_group = "Reader"
  group_search_base = ""
  group_id_attribute = ""
  group_search_pattern = ""
  group_mapping = {
    foo = "Reader"
  }
}

Unlike other resources, LDAP settings has no id, so when you import the LDAP settings, please specify some string as id.

terraform import graylog_ldap_setting.foo bar

Argument Reference

Required Argument

name default type description
system_username "" string
ldap_uri "ldap://localhost:389" string
search_base "" string
search_pattern "" string
display_name_attribute "" string
default_group "" string

Note that system_passoword is optional as Terraform schema but is required to create a LDAP setting. If we make system_password required as Terrafrom schema, we have to store system_password in the Terraform state file, which some users wouldn't want it.

Optional Argument

name default type description
description "" string
enabled false bool
use_start_tls false bool
trust_all_certificates false bool
active_directory false bool
group_search_base "" string
group_id_attribute "" string
group_search_pattern "" string
group_mapping map[string]string
system_password "" string sensitive, computed