addActiveDirectoryRealm

The addActiveDirectoryRealm operation handles configuration related to ActiveDirectoryRealm model. 

Description

This API call is not allowed on the standby unit in an HA pair.

Data Parameters

Parameter Required Type Description
name True string A UTF string containing the name for the directory realm. The string can be up to 50 characters.
directoryConfigurations False [object] A list of directory server properties.
enabled False boolean A boolean value, TRUE or FALSE (the default). The TRUE value indicates the realm is available for the use by Identity. FALSE indicates the realm is not in use by Identity. Once set to TRUE, it can not be set to FALSE only if Identity feature is enabled.
systemDefined False boolean A read only boolean value, TRUE or FALSE (the default). The TRUE value indicates the realm is a special type of realm, created by system. FALSE indicates the realm is user-defined.
realmId False integer An integer realm ID to differentiate user-defined realm from the two special system defined realms. The realm ID must be provided whenever attempting to modify an existing object.
dirUsername True string A mandatory Unicode string containing the distinguished username for a user with appropriate rights to retrieve directory user and group information.
Field level constraints: cannot be null, must match pattern ^((?!;).)*$. (Note: Additional constraints might exist)
dirPassword True string A mandatory password for a user with appropriate rights to retrieve directory user and group information.
Field level constraints: cannot be null. (Note: Additional constraints might exist)
baseDN True string A mandatory Unicode string containing the directory tree, common parent, for searching and querying user and group information. For example, cn=users,dc=example,dc=com
Field level constraints: cannot be null, must match pattern ^((?!;).)*$. (Note: Additional constraints might exist)
ldapAttributeMap False object Optional. The name of the LdapAttributeMap object used for authorization for the LDAP realm. If you do not specify a map name, no custom mappings are used for authorization.
Allowed types are: [LdapAttributeMap]
adPrimaryDomain True string A mandatory Unicode alphanumeric string containing fully qualified Active Directory domain name that the device should join. For example, example.com
Field level constraints: cannot be null, must match pattern ^((?!;).)*$. (Note: Additional constraints might exist)
type True string identitysourcebase

Example

- name: Execute 'addActiveDirectoryRealm' operation
  ftd_configuration:
    operation: "addActiveDirectoryRealm"
    data:
        name: "{{ name }}"
        directoryConfigurations: "{{ directory_configurations }}"
        enabled: "{{ enabled }}"
        systemDefined: "{{ system_defined }}"
        realmId: "{{ realm_id }}"
        dirUsername: "{{ dir_username }}"
        dirPassword: "{{ dir_password }}"
        baseDN: "{{ base_dn }}"
        ldapAttributeMap: "{{ ldap_attribute_map }}"
        adPrimaryDomain: "{{ ad_primary_domain }}"
        type: "{{ type }}"