fortinet.fortimanager.fmgr_user_ldap_dynamicmapping – Configure LDAP server entries.

Note

This plugin is part of the fortinet.fortimanager collection (version 2.1.3).

To install it use: ansible-galaxy collection install fortinet.fortimanager.

To use it in a playbook, specify: fortinet.fortimanager.fmgr_user_ldap_dynamicmapping.

New in version 2.10: of fortinet.fortimanager

Synopsis

  • This module is able to configure a FortiManager device.

  • Examples include all parameters and values which need to be adjusted to data sources before usage.

Parameters

Parameter Choices/Defaults Comments
adom
string / required
the parameter (adom) in requested url
bypass_validation
boolean
    Choices:
  • no ←
  • yes
only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters
enable_log
boolean
    Choices:
  • no ←
  • yes
Enable/Disable logging for task
ldap
string / required
the parameter (ldap) in requested url
proposed_method
string
    Choices:
  • update
  • set
  • add
The overridden method for the underlying Json RPC request
rc_failed
list / elements=string
the rc codes list with which the conditions to fail will be overriden
rc_succeeded
list / elements=string
the rc codes list with which the conditions to succeed will be overriden
state
string / required
    Choices:
  • present
  • absent
the directive to create, update or delete an object
user_ldap_dynamicmapping
dictionary
the top level parameters set
_scope
list / elements=string
no description
name
string
no description
vdom
string
no description
account-key-filter
string
no description
account-key-name
string
no description
account-key-processing
string
    Choices:
  • same
  • strip
no description
antiphish
string
    Choices:
  • disable
  • enable
Enable/disable AntiPhishing credential backend.
ca-cert
string
no description
cnid
string
no description
dn
string
no description
filter
string
no description
group
string
no description
group-filter
string
no description
group-member-check
string
    Choices:
  • user-attr
  • group-object
  • posix-group-object
no description
group-object-filter
string
no description
group-object-search-base
string
no description
group-search-base
string
no description
interface
string
no description
interface-select-method
string
    Choices:
  • auto
  • sdwan
  • specify
no description
member-attr
string
no description
obtain-user-info
string
    Choices:
  • disable
  • enable
no description
password
string
no description
password-attr
string
Name of attribute to get password hash.
password-expiry-warning
string
    Choices:
  • disable
  • enable
no description
password-renewal
string
    Choices:
  • disable
  • enable
no description
port
integer
no description
retrieve-protection-profile
string
no description
search-type
list / elements=string
    Choices:
  • nested
  • recursive
no description
secondary-server
string
no description
secure
string
    Choices:
  • disable
  • starttls
  • ldaps
no description
server
string
no description
server-identity-check
string
    Choices:
  • disable
  • enable
no description
source-ip
string
no description
source-port
integer
Source port to be used for communication with the LDAP server.
ssl-min-proto-version
string
    Choices:
  • default
  • TLSv1
  • TLSv1-1
  • TLSv1-2
  • SSLv3
no description
tertiary-server
string
no description
two-factor
string
    Choices:
  • disable
  • fortitoken-cloud
no description
two-factor-authentication
string
    Choices:
  • fortitoken
  • email
  • sms
no description
two-factor-notification
string
    Choices:
  • email
  • sms
no description
type
string
    Choices:
  • simple
  • anonymous
  • regular
no description
user-info-exchange-server
string
no description
username
string
no description
workspace_locking_adom
string
the adom to lock for FortiManager running in workspace mode, the value can be global and others including root
workspace_locking_timeout
integer
Default:
300
the maximum time in seconds to wait for other user to release the workspace lock

Notes

Note

  • Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.

  • To create or update an object, use state present directive.

  • To delete an object, use state absent directive.

  • Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded

Examples

- hosts: fortimanager-inventory
  collections:
    - fortinet.fortimanager
  connection: httpapi
  vars:
     ansible_httpapi_use_ssl: True
     ansible_httpapi_validate_certs: False
     ansible_httpapi_port: 443
  tasks:
   - name: Configure LDAP server entries.
     fmgr_user_ldap_dynamicmapping:
        bypass_validation: False
        workspace_locking_adom: <value in [global, custom adom including root]>
        workspace_locking_timeout: 300
        rc_succeeded: [0, -2, -3, ...]
        rc_failed: [-2, -3, ...]
        adom: <your own value>
        ldap: <your own value>
        state: <value in [present, absent]>
        user_ldap_dynamicmapping:
           _scope:
             -
                 name: <value of string>
                 vdom: <value of string>
           account-key-filter: <value of string>
           account-key-name: <value of string>
           account-key-processing: <value in [same, strip]>
           ca-cert: <value of string>
           cnid: <value of string>
           dn: <value of string>
           filter: <value of string>
           group: <value of string>
           group-filter: <value of string>
           group-member-check: <value in [user-attr, group-object, posix-group-object]>
           group-object-filter: <value of string>
           group-object-search-base: <value of string>
           group-search-base: <value of string>
           member-attr: <value of string>
           obtain-user-info: <value in [disable, enable]>
           password: <value of string>
           password-expiry-warning: <value in [disable, enable]>
           password-renewal: <value in [disable, enable]>
           port: <value of integer>
           retrieve-protection-profile: <value of string>
           search-type:
             - nested
             - recursive
           secondary-server: <value of string>
           secure: <value in [disable, starttls, ldaps]>
           server: <value of string>
           server-identity-check: <value in [disable, enable]>
           source-ip: <value of string>
           ssl-min-proto-version: <value in [default, TLSv1, TLSv1-1, ...]>
           tertiary-server: <value of string>
           type: <value in [simple, anonymous, regular]>
           user-info-exchange-server: <value of string>
           username: <value of string>
           two-factor: <value in [disable, fortitoken-cloud]>
           interface: <value of string>
           interface-select-method: <value in [auto, sdwan, specify]>
           two-factor-authentication: <value in [fortitoken, email, sms]>
           two-factor-notification: <value in [email, sms]>
           antiphish: <value in [disable, enable]>
           password-attr: <value of string>
           source-port: <value of integer>

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
request_url
string
always
The full url requested

Sample:
/sys/login/user
response_code
integer
always
The status of api request

response_message
string
always
The descriptive message of the api response

Sample:
OK.


Authors

  • Link Zheng (@chillancezen)

  • Jie Xue (@JieX19)

  • Frank Shen (@fshen01)

  • Hongbin Lu (@fgtdev-hblu)