Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 3.17 KB

active_directory_identity_source.md

File metadata and controls

79 lines (61 loc) · 3.17 KB
page_title subcategory description
morpheus_active_directory_identity_source Resource - terraform-provider-morpheus
Provides an active directory identity source resource

morpheus_active_directory_identity_source

Provides an active directory identity source resource

Example Usage

resource "morpheus_active_directory_identity_source" "addemo" {
  tenant_id               = 1
  name                    = "addemo"
  description             = "TF example AD identity source"
  ad_server               = "dc01.contoso.com"
  domain                  = "contoso.com"
  use_ssl                 = false
  binding_username        = "administrator"
  binding_password        = "Password123"
  required_group          = "administrators"
  search_member_groups    = true
  default_account_role_id = 7

  role_mapping {
    role_id                     = 2
    role_name                   = "developers"
    active_directory_group_name = "developers"
    active_directory_group_fqn  = "CN=developers,CN=Users,DC=contoso,DC=com"
  }
}

Schema

Required

  • ad_server (String) The IP address or hostname of the active directory domain controller
  • binding_password (String, Sensitive) The password of the account used to authenticate to the domain
  • binding_username (String) The username of the account used to authenticate to the domain
  • default_account_role_id (Number) The id of the default role a user is assigned when they are in the required group or if no specific group mapping applies to the user
  • domain (String) The name of the active directory domain
  • name (String) The name of the active directory identity source
  • tenant_id (Number) The ID of the Morpheus tenant to associate the identity source with

Optional

  • description (String) The description of the active directory identity source
  • enable_role_mapping_permission (Boolean) When enabled, Tenant users with appropriate rights to view and edit Roles will have the ability to set role mapping for the Identity Source integration
  • required_group (String) The active directory group users must be in to access Morpheus
  • role_mapping (Block Set) The Active Directory to Morpheus Role mapping (see below for nested schema)
  • search_member_groups (Boolean) Whether groups nested inside the required group will also be included
  • use_ssl (Boolean) Whether to use SSL when connecting to the domain controller

Read-Only

  • id (String) The ID of the active directory identity source

Nested Schema for role_mapping

Optional:

  • active_directory_group_fqn (String) The fully qualified name of the active directory role to map to (i.e. - CN=Administrators,CN=Builtin,DC=contoso,DC=com)
  • active_directory_group_name (String) The name of the active directory role to map to
  • role_id (Number) The id of the Morpheus role to map to
  • role_name (String) The name or authority of the Morpheus role to map to

Import

Import is supported using the following syntax:

terraform import morpheus_active_directory_identity_source.tf_example_active_directory_identity_source 1