fmgd_user_radius – Configure RADIUS server entries.
Added in version 1.1.0.
Synopsis
This module is able to configure a FortiManager device.
Examples include all parameters and values need to be adjusted to data sources before usage.
Tested with FortiManager v7.x.
Requirements
The below requirements are needed on the host that executes this module.
ansible-core>=2.16.0
FortiManager Version Compatibility
Supported Version Ranges: v7.4.8 -> v7.4.10, v7.6.4 -> latest
Parameters
- access_token -The token to access FortiManager without using username and password. type: str required: false
- bypass_validation - Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. type: bool required: false default: False
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- forticloud_access_token - Access token of forticloud managed API users, this option is available with FortiManager later than 6.4.0. type: str required: false
- proposed_method - The overridden method for the underlying Json RPC request. type: str required: false choices: set, update, add
- rc_succeeded - The rc codes list with which the conditions to succeed will be overriden. type: list required: false
- rc_failed - The rc codes list with which the conditions to fail will be overriden. type: list required: false
- state - The directive to create, update or delete an object type: str required: true choices: present, absent
- workspace_locking_adom - Acquire the workspace lock if FortiManager is running in workspace mode. type: str required: false choices: global, custom adom including root
- workspace_locking_timeout - The maximum time in seconds to wait for other users to release workspace lock. type: integer required: false default: 300
- device - The parameter in requested url type: str required: true
- vdom - The parameter in requested url type: str required: true
- user_radius - Configure RADIUS server entries. type: dict
- accounting_server (Alias name: accounting-server) Accounting server. type: list
more...
- id Id (0 - 4294967295). type: int more...
- interface Specify outgoing interface to reach server. type: list more...
- interface_select_method (Alias name: interface-select-method) Specify how to select outgoing interface to reach server. type: str choices: [auto, sdwan, specify] more...
- port Radius accounting port number. type: int more...
- secret Secret key. type: list more...
- server Server cn domain name or ip address. type: str more...
- source_ip (Alias name: source-ip) Support meta variable type: str more...
- status Status. type: str choices: [disable, enable] more...
- vrf_select (Alias name: vrf-select) Vrf id used for connection to server. type: int more...
- acct_all_servers (Alias name: acct-all-servers) Enable/disable sending of accounting messages to all configured servers (default = disable). type: str choices: [disable, enable] more...
- acct_interim_interval (Alias name: acct-interim-interval) Time in seconds between each accounting interim update message. type: int more...
- all_usergroup (Alias name: all-usergroup) Enable/disable automatically including this radius server in all user groups. type: str choices: [disable, enable] more...
- auth_type (Alias name: auth-type) Authentication methods/protocols permitted for this radius server. type: str choices: [pap, chap, ms_chap, ms_chap_v2, auto] more...
- class Class attribute name(s). type: list more...
- delimiter Configure delimiter to be used for separating profile group names in the sso attribute (default = plus character +). type: str choices: [plus, comma] more...
- dynamic_mapping Dynamic mapping. type: list
more...
- _scope Scope. type: list more...
- account_key_cert_field (Alias name: account-key-cert-field) Define subject identity field in certificate for user access right checking. type: str choices: [othername, rfc822name, dnsname, cn] more...
- account_key_processing (Alias name: account-key-processing) Account key processing operation. type: str choices: [same, strip] more...
- accounting_server (Alias name: accounting-server) Accounting server. type: list
more...
- id Id (0 - 4294967295). type: int more...
- interface Specify outgoing interface to reach server. type: list more...
- interface_select_method (Alias name: interface-select-method) Specify how to select outgoing interface to reach server. type: str choices: [auto, sdwan, specify] more...
- port Radius accounting port number. type: int more...
- secret Secret key. type: list more...
- server Server cn domain name or ip address. type: str more...
- source_ip (Alias name: source-ip) Support meta variable type: str more...
- status Status. type: str choices: [disable, enable] more...
- vrf_select (Alias name: vrf-select) Vrf id used for connection to server. type: int more...
- acct_all_servers (Alias name: acct-all-servers) Enable/disable sending of accounting messages to all configured servers (default = disable). type: str choices: [disable, enable] more...
- acct_interim_interval (Alias name: acct-interim-interval) Time in seconds between each accounting interim update message. type: int more...
- all_usergroup (Alias name: all-usergroup) Enable/disable automatically including this radius server in all user groups. type: str choices: [disable, enable] more...
- auth_type (Alias name: auth-type) Authentication methods/protocols permitted for this radius server. type: str choices: [pap, chap, ms_chap, ms_chap_v2, auto] more...
- ca_cert (Alias name: ca-cert) Ca of server to trust under tls. type: list more...
- call_station_id_type (Alias name: call-station-id-type) Calling & called station identifier type configuration (default = legacy), this option is not available for 802. type: str choices: [legacy, IP, MAC] more...
- class Class attribute name(s). type: list more...
- client_cert (Alias name: client-cert) Client certificate to use under tls. type: list more...
- delimiter Configure delimiter to be used for separating profile group names in the sso attribute (default = plus character +). type: str choices: [plus, comma] more...
- dp_carrier_endpoint_attribute (Alias name: dp-carrier-endpoint-attribute) Dp carrier endpoint attribute. type: str choices: [User-Name, User-Password, CHAP-Password, NAS-IP-Address, NAS-Port, Service-Type, Framed-Protocol, Framed-IP-Address, Framed-IP-Netmask, Framed-Routing, Filter-Id, Framed-MTU, Framed-Compression, Login-IP-Host, Login-Service, Login-TCP-Port, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, State, Class, Vendor-Specific, Session-Timeout, Idle-Timeout, Termination-Action, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Link, Framed-AppleTalk-Network, Framed-AppleTalk-Zone, Acct-Status-Type, Acct-Delay-Time, Acct-Input-Octets, Acct-Output-Octets, Acct-Session-Id, Acct-Authentic, Acct-Session-Time, Acct-Input-Packets, Acct-Output-Packets, Acct-Terminate-Cause, Acct-Multi-Session-Id, Acct-Link-Count, CHAP-Challenge, NAS-Port-Type, Port-Limit, Login-LAT-Port] more...
- dp_carrier_endpoint_block_attribute (Alias name: dp-carrier-endpoint-block-attribute) Dp carrier endpoint block attribute. type: str choices: [User-Name, User-Password, CHAP-Password, NAS-IP-Address, NAS-Port, Service-Type, Framed-Protocol, Framed-IP-Address, Framed-IP-Netmask, Framed-Routing, Filter-Id, Framed-MTU, Framed-Compression, Login-IP-Host, Login-Service, Login-TCP-Port, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, State, Class, Vendor-Specific, Session-Timeout, Idle-Timeout, Termination-Action, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Link, Framed-AppleTalk-Network, Framed-AppleTalk-Zone, Acct-Status-Type, Acct-Delay-Time, Acct-Input-Octets, Acct-Output-Octets, Acct-Session-Id, Acct-Authentic, Acct-Session-Time, Acct-Input-Packets, Acct-Output-Packets, Acct-Terminate-Cause, Acct-Multi-Session-Id, Acct-Link-Count, CHAP-Challenge, NAS-Port-Type, Port-Limit, Login-LAT-Port] more...
- dp_context_timeout (Alias name: dp-context-timeout) Dp context timeout. type: int more...
- dp_flush_ip_session (Alias name: dp-flush-ip-session) Dp flush ip session. type: str choices: [disable, enable] more...
- dp_hold_time (Alias name: dp-hold-time) Dp hold time. type: int more...
- dp_http_header (Alias name: dp-http-header) Dp http header. type: str more...
- dp_http_header_fallback (Alias name: dp-http-header-fallback) Dp http header fallback. type: str choices: [ip-header-address, default-profile] more...
- dp_http_header_status (Alias name: dp-http-header-status) Dp http header status. type: str choices: [disable, enable] more...
- dp_http_header_suppress (Alias name: dp-http-header-suppress) Dp http header suppress. type: str choices: [disable, enable] more...
- dp_log_dyn_flags (Alias name: dp-log-dyn_flags) Dp log dyn flags. type: list choices: [none, protocol-error, profile-missing, context-missing, accounting-stop-missed, accounting-event, radiusd-other, endpoint-block] more...
- dp_log_period (Alias name: dp-log-period) Dp log period. type: int more...
- dp_mem_percent (Alias name: dp-mem-percent) Dp mem percent. type: int more...
- dp_profile_attribute (Alias name: dp-profile-attribute) Dp profile attribute. type: str choices: [User-Name, User-Password, CHAP-Password, NAS-IP-Address, NAS-Port, Service-Type, Framed-Protocol, Framed-IP-Address, Framed-IP-Netmask, Framed-Routing, Filter-Id, Framed-MTU, Framed-Compression, Login-IP-Host, Login-Service, Login-TCP-Port, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, State, Class, Vendor-Specific, Session-Timeout, Idle-Timeout, Termination-Action, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Link, Framed-AppleTalk-Network, Framed-AppleTalk-Zone, Acct-Status-Type, Acct-Delay-Time, Acct-Input-Octets, Acct-Output-Octets, Acct-Session-Id, Acct-Authentic, Acct-Session-Time, Acct-Input-Packets, Acct-Output-Packets, Acct-Terminate-Cause, Acct-Multi-Session-Id, Acct-Link-Count, CHAP-Challenge, NAS-Port-Type, Port-Limit, Login-LAT-Port] more...
- dp_profile_attribute_key (Alias name: dp-profile-attribute-key) Dp profile attribute key. type: str more...
- dp_radius_response (Alias name: dp-radius-response) Dp radius response. type: str choices: [disable, enable] more...
- dp_radius_server_port (Alias name: dp-radius-server-port) Dp radius server port. type: int more...
- dp_secret (Alias name: dp-secret) Dp secret. type: list more...
- dp_validate_request_secret (Alias name: dp-validate-request-secret) Dp validate request secret. type: str choices: [disable, enable] more...
- dynamic_profile (Alias name: dynamic-profile) Dynamic profile. type: str choices: [disable, enable] more...
- endpoint_translation (Alias name: endpoint-translation) Endpoint translation. type: str choices: [disable, enable] more...
- ep_carrier_endpoint_convert_hex (Alias name: ep-carrier-endpoint-convert-hex) Ep carrier endpoint convert hex. type: str choices: [disable, enable] more...
- ep_carrier_endpoint_header (Alias name: ep-carrier-endpoint-header) Ep carrier endpoint header. type: str more...
- ep_carrier_endpoint_header_suppress (Alias name: ep-carrier-endpoint-header-suppress) Ep carrier endpoint header suppress. type: str choices: [disable, enable] more...
- ep_carrier_endpoint_prefix (Alias name: ep-carrier-endpoint-prefix) Ep carrier endpoint prefix. type: str choices: [disable, enable] more...
- ep_carrier_endpoint_prefix_range_max (Alias name: ep-carrier-endpoint-prefix-range-max) Ep carrier endpoint prefix range max. type: int more...
- ep_carrier_endpoint_prefix_range_min (Alias name: ep-carrier-endpoint-prefix-range-min) Ep carrier endpoint prefix range min. type: int more...
- ep_carrier_endpoint_prefix_string (Alias name: ep-carrier-endpoint-prefix-string) Ep carrier endpoint prefix string. type: str more...
- ep_carrier_endpoint_source (Alias name: ep-carrier-endpoint-source) Ep carrier endpoint source. type: str choices: [http-header, cookie] more...
- ep_ip_header (Alias name: ep-ip-header) Ep ip header. type: str more...
- ep_ip_header_suppress (Alias name: ep-ip-header-suppress) Ep ip header suppress. type: str choices: [disable, enable] more...
- ep_missing_header_fallback (Alias name: ep-missing-header-fallback) Ep missing header fallback. type: str choices: [session-ip, policy-profile] more...
- ep_profile_query_type (Alias name: ep-profile-query-type) Ep profile query type. type: str choices: [session-ip, extract-ip, extract-carrier-endpoint] more...
- group_override_attr_type (Alias name: group-override-attr-type) Radius attribute type to override user group information. type: str choices: [filter-Id, class] more...
- h3c_compatibility (Alias name: h3c-compatibility) Enable/disable compatibility with the h3c, a mechanism that performs security checking for authentication. type: str choices: [disable, enable] more...
- interface Specify outgoing interface to reach server. type: list more...
- interface_select_method (Alias name: interface-select-method) Specify how to select outgoing interface to reach server. type: str choices: [auto, specify, sdwan] more...
- mac_case (Alias name: mac-case) Mac authentication case (default = lowercase). type: str choices: [uppercase, lowercase] more...
- mac_password_delimiter (Alias name: mac-password-delimiter) Mac authentication password delimiter (default = hyphen). type: str choices: [hyphen, single-hyphen, colon, none] more...
- mac_username_delimiter (Alias name: mac-username-delimiter) Mac authentication username delimiter (default = hyphen). type: str choices: [hyphen, single-hyphen, colon, none] more...
- nas_id (Alias name: nas-id) Custom nas identifier. type: str more...
- nas_id_type (Alias name: nas-id-type) Nas identifier type configuration (default = legacy). type: str choices: [legacy, custom, hostname] more...
- nas_ip (Alias name: nas-ip) Ip address used to communicate with the radius server and used as nas-ip-address and called-station-id attributes. type: str more...
- password_encoding (Alias name: password-encoding) Password encoding. type: str choices: [ISO-8859-1, auto] more...
- password_renewal (Alias name: password-renewal) Enable/disable password renewal. type: str choices: [disable, enable] more...
- radius_coa (Alias name: radius-coa) Enable to allow a mechanism to change the attributes of an authentication, authorization, and accounting session after it is authenticated. type: str choices: [disable, enable] more...
- radius_port (Alias name: radius-port) Radius service port number. type: int more...
- require_message_authenticator (Alias name: require-message-authenticator) Require message authenticator in authentication response. type: str choices: [disable, enable] more...
- rsso Enable/disable radius based single sign on feature. type: str choices: [disable, enable] more...
- rsso_context_timeout (Alias name: rsso-context-timeout) Time in seconds before the logged out user is removed from the user context list of logged on users. type: int more...
- rsso_endpoint_attribute (Alias name: rsso-endpoint-attribute) Radius attributes used to extract the user end point identifier from the radius start record. type: str choices: [User-Name, NAS-IP-Address, Framed-IP-Address, Framed-IP-Netmask, Filter-Id, Login-IP-Host, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, Class, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Zone, Acct-Session-Id, Acct-Multi-Session-Id] more...
- rsso_endpoint_block_attribute (Alias name: rsso-endpoint-block-attribute) Radius attributes used to block a user. type: str choices: [User-Name, NAS-IP-Address, Framed-IP-Address, Framed-IP-Netmask, Filter-Id, Login-IP-Host, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, Class, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Zone, Acct-Session-Id, Acct-Multi-Session-Id] more...
- rsso_ep_one_ip_only (Alias name: rsso-ep-one-ip-only) Enable/disable the replacement of old ip addresses with new ones for the same endpoint on radius accounting start messages. type: str choices: [disable, enable] more...
- rsso_flush_ip_session (Alias name: rsso-flush-ip-session) Enable/disable flushing user ip sessions on radius accounting stop messages. type: str choices: [disable, enable] more...
- rsso_log_flags (Alias name: rsso-log-flags) Events to log. type: list choices: [none, protocol-error, profile-missing, accounting-stop-missed, accounting-event, radiusd-other, endpoint-block] more...
- rsso_log_period (Alias name: rsso-log-period) Time interval in seconds that group event log messages will be generated for dynamic profile events. type: int more...
- rsso_radius_response (Alias name: rsso-radius-response) Enable/disable sending radius response packets after receiving start and stop records. type: str choices: [disable, enable] more...
- rsso_radius_server_port (Alias name: rsso-radius-server-port) Udp port to listen on for radius start and stop records. type: int more...
- rsso_secret (Alias name: rsso-secret) Radius secret used by the radius accounting server. type: list more...
- rsso_validate_request_secret (Alias name: rsso-validate-request-secret) Enable/disable validating the radius request shared secret in the start or end record. type: str choices: [disable, enable] more...
- secondary_secret (Alias name: secondary-secret) Secret key to access the secondary server. type: list more...
- secondary_server (Alias name: secondary-server) Secondary radius cn domain name or ip address. type: str more...
- secret Pre-shared secret key used to access the primary radius server. type: list more...
- server Primary radius server cn domain name or ip address. type: str more...
- server_identity_check (Alias name: server-identity-check) Enable/disable radius server identity check (verify server domain name/ip address against the server certificate). type: str choices: [disable, enable] more...
- source_ip (Alias name: source-ip) Support meta variable type: str more...
- sso_attribute (Alias name: sso-attribute) Radius attribute that contains the profile group name to be extracted from the radius start record. type: str choices: [User-Name, NAS-IP-Address, Framed-IP-Address, Framed-IP-Netmask, Filter-Id, Login-IP-Host, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, Class, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Zone, Acct-Session-Id, Acct-Multi-Session-Id] more...
- sso_attribute_key (Alias name: sso-attribute-key) Key prefix for sso group value in the sso attribute. type: str more...
- sso_attribute_value_override (Alias name: sso-attribute-value-override) Enable/disable override old attribute value with new value for the same endpoint. type: str choices: [disable, enable] more...
- status_ttl (Alias name: status-ttl) Time for which server reachability is cached so that when a server is unreachable, it will not be retried for at least this period of time (0 = cache disabled, default = 300). type: int more...
- switch_controller_acct_fast_framedip_detect (Alias name: switch-controller-acct-fast-framedip-detect) Switch controller accounting message framed-ip detection from dhcp snooping (seconds, default=2). type: int more...
- switch_controller_nas_ip_dynamic (Alias name: switch-controller-nas-ip-dynamic) Enable/disable switch-controller nas-ip dynamic to dynamically set nas-ip. type: str choices: [disable, enable] more...
- switch_controller_service_type (Alias name: switch-controller-service-type) Radius service type. type: list choices: [login, framed, callback-login, callback-framed, outbound, administrative, nas-prompt, authenticate-only, callback-nas-prompt, call-check, callback-administrative] more...
- tertiary_secret (Alias name: tertiary-secret) Secret key to access the tertiary server. type: list more...
- tertiary_server (Alias name: tertiary-server) Tertiary radius cn domain name or ip address. type: str more...
- timeout Time in seconds to retry connecting server. type: int more...
- tls_min_proto_version (Alias name: tls-min-proto-version) Minimum supported protocol version for tls connections (default is to follow system global setting). type: str choices: [default, TLSv1, TLSv1-1, TLSv1-2, SSLv3, TLSv1-3] more...
- transport_protocol (Alias name: transport-protocol) Transport protocol to be used (default = udp). type: str choices: [udp, tcp, tls] more...
- use_group_for_profile (Alias name: use-group-for-profile) Use group for profile. type: str choices: [disable, enable] more...
- use_management_vdom (Alias name: use-management-vdom) Enable/disable using management vdom to send requests. type: str choices: [disable, enable] more...
- username_case_sensitive (Alias name: username-case-sensitive) Enable/disable case sensitive user names. type: str choices: [disable, enable] more...
- source_ip_interface (Alias name: source-ip-interface) Source interface for communication with the radius server. type: list more...
- vrf_select (Alias name: vrf-select) Vrf id used for connection to server. type: int more...
- group_override_attr_type (Alias name: group-override-attr-type) Radius attribute type to override user group information. type: str choices: [filter-Id, class] more...
- h3c_compatibility (Alias name: h3c-compatibility) Enable/disable compatibility with the h3c, a mechanism that performs security checking for authentication. type: str choices: [disable, enable] more...
- interface Specify outgoing interface to reach server. type: list more...
- interface_select_method (Alias name: interface-select-method) Specify how to select outgoing interface to reach server. type: str choices: [auto, specify, sdwan] more...
- mac_case (Alias name: mac-case) Mac authentication case (default = lowercase). type: str choices: [uppercase, lowercase] more...
- mac_password_delimiter (Alias name: mac-password-delimiter) Mac authentication password delimiter (default = hyphen). type: str choices: [hyphen, single-hyphen, colon, none] more...
- mac_username_delimiter (Alias name: mac-username-delimiter) Mac authentication username delimiter (default = hyphen). type: str choices: [hyphen, single-hyphen, colon, none] more...
- name Radius server entry name. type: str more...
- nas_id (Alias name: nas-id) Custom nas identifier. type: str more...
- nas_id_type (Alias name: nas-id-type) Nas identifier type configuration (default = legacy). type: str choices: [legacy, custom, hostname] more...
- nas_ip (Alias name: nas-ip) Ip address used to communicate with the radius server and used as nas-ip-address and called-station-id attributes. type: str more...
- password_encoding (Alias name: password-encoding) Password encoding. type: str choices: [ISO-8859-1, auto] more...
- password_renewal (Alias name: password-renewal) Enable/disable password renewal. type: str choices: [disable, enable] more...
- radius_coa (Alias name: radius-coa) Enable to allow a mechanism to change the attributes of an authentication, authorization, and accounting session after it is authenticated. type: str choices: [disable, enable] more...
- radius_port (Alias name: radius-port) Radius service port number. type: int more...
- require_message_authenticator (Alias name: require-message-authenticator) Require message authenticator in authentication response. type: str choices: [disable, enable] more...
- rsso Enable/disable radius based single sign on feature. type: str choices: [disable, enable] more...
- rsso_context_timeout (Alias name: rsso-context-timeout) Time in seconds before the logged out user is removed from the user context list of logged on users. type: int more...
- rsso_endpoint_attribute (Alias name: rsso-endpoint-attribute) Radius attributes used to extract the user end point identifier from the radius start record. type: str choices: [User-Name, NAS-IP-Address, Framed-IP-Address, Framed-IP-Netmask, Filter-Id, Login-IP-Host, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, Class, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Zone, Acct-Session-Id, Acct-Multi-Session-Id] more...
- rsso_endpoint_block_attribute (Alias name: rsso-endpoint-block-attribute) Radius attributes used to block a user. type: str choices: [User-Name, NAS-IP-Address, Framed-IP-Address, Framed-IP-Netmask, Filter-Id, Login-IP-Host, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, Class, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Zone, Acct-Session-Id, Acct-Multi-Session-Id] more...
- rsso_ep_one_ip_only (Alias name: rsso-ep-one-ip-only) Enable/disable the replacement of old ip addresses with new ones for the same endpoint on radius accounting start messages. type: str choices: [disable, enable] more...
- rsso_flush_ip_session (Alias name: rsso-flush-ip-session) Enable/disable flushing user ip sessions on radius accounting stop messages. type: str choices: [disable, enable] more...
- rsso_log_flags (Alias name: rsso-log-flags) Events to log. type: list choices: [none, protocol-error, profile-missing, accounting-stop-missed, accounting-event, radiusd-other, endpoint-block] more...
- rsso_log_period (Alias name: rsso-log-period) Time interval in seconds that group event log messages will be generated for dynamic profile events. type: int more...
- rsso_radius_response (Alias name: rsso-radius-response) Enable/disable sending radius response packets after receiving start and stop records. type: str choices: [disable, enable] more...
- rsso_radius_server_port (Alias name: rsso-radius-server-port) Udp port to listen on for radius start and stop records. type: int more...
- rsso_secret (Alias name: rsso-secret) Radius secret used by the radius accounting server. type: list more...
- rsso_validate_request_secret (Alias name: rsso-validate-request-secret) Enable/disable validating the radius request shared secret in the start or end record. type: str choices: [disable, enable] more...
- secondary_secret (Alias name: secondary-secret) Secret key to access the secondary server. type: list more...
- secondary_server (Alias name: secondary-server) Secondary radius cn domain name or ip address. type: str more...
- secret Pre-shared secret key used to access the primary radius server. type: list more...
- server Primary radius server cn domain name or ip address. type: str more...
- source_ip (Alias name: source-ip) Support meta variable type: str more...
- sso_attribute (Alias name: sso-attribute) Radius attribute that contains the profile group name to be extracted from the radius start record. type: str choices: [User-Name, NAS-IP-Address, Framed-IP-Address, Framed-IP-Netmask, Filter-Id, Login-IP-Host, Reply-Message, Callback-Number, Callback-Id, Framed-Route, Framed-IPX-Network, Class, Called-Station-Id, Calling-Station-Id, NAS-Identifier, Proxy-State, Login-LAT-Service, Login-LAT-Node, Login-LAT-Group, Framed-AppleTalk-Zone, Acct-Session-Id, Acct-Multi-Session-Id] more...
- sso_attribute_key (Alias name: sso-attribute-key) Key prefix for sso group value in the sso attribute. type: str more...
- sso_attribute_value_override (Alias name: sso-attribute-value-override) Enable/disable override old attribute value with new value for the same endpoint. type: str choices: [disable, enable] more...
- switch_controller_acct_fast_framedip_detect (Alias name: switch-controller-acct-fast-framedip-detect) Switch controller accounting message framed-ip detection from dhcp snooping (seconds, default=2). type: int more...
- switch_controller_service_type (Alias name: switch-controller-service-type) Radius service type. type: list choices: [login, framed, callback-login, callback-framed, outbound, administrative, nas-prompt, authenticate-only, callback-nas-prompt, call-check, callback-administrative] more...
- tertiary_secret (Alias name: tertiary-secret) Secret key to access the tertiary server. type: list more...
- tertiary_server (Alias name: tertiary-server) Tertiary radius cn domain name or ip address. type: str more...
- timeout Time in seconds to retry connecting server. type: int more...
- use_management_vdom (Alias name: use-management-vdom) Enable/disable using management vdom to send requests. type: str choices: [disable, enable] more...
- username_case_sensitive (Alias name: username-case-sensitive) Enable/disable case sensitive user names. type: str choices: [disable, enable] more...
- tls_min_proto_version (Alias name: tls-min-proto-version) Minimum supported protocol version for tls connections (default is to follow system global setting). type: str choices: [default, TLSv1, TLSv1-1, TLSv1-2, SSLv3, TLSv1-3] more...
- status_ttl (Alias name: status-ttl) Time for which server reachability is cached so that when a server is unreachable, it will not be retried for at least this period of time (0 = cache disabled, default = 300). type: int more...
- account_key_cert_field (Alias name: account-key-cert-field) Define subject identity field in certificate for user access right checking. type: str choices: [othername, rfc822name, dnsname, cn] more...
- switch_controller_nas_ip_dynamic (Alias name: switch-controller-nas-ip-dynamic) Enable/disable switch-controller nas-ip dynamic to dynamically set nas-ip. type: str choices: [disable, enable] more...
- account_key_processing (Alias name: account-key-processing) Account key processing operation. type: str choices: [same, strip] more...
- server_identity_check (Alias name: server-identity-check) Enable/disable radius server identity check (verify server domain name/ip address against the server certificate). type: str choices: [disable, enable] more...
- transport_protocol (Alias name: transport-protocol) Transport protocol to be used (default = udp). type: str choices: [udp, tcp, tls] more...
- client_cert (Alias name: client-cert) Client certificate to use under tls. type: list more...
- ca_cert (Alias name: ca-cert) Ca of server to trust under tls. type: list more...
- call_station_id_type (Alias name: call-station-id-type) Calling & called station identifier type configuration (default = legacy), this option is not available for 802. type: str choices: [legacy, IP, MAC] more...
- source_ip_interface (Alias name: source-ip-interface) Source interface for communication with the radius server. type: list more...
- vrf_select (Alias name: vrf-select) Vrf id used for connection to server. type: int more...
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
- name: Example playbook (generated based on argument schema)
hosts: fortimanagers
connection: httpapi
gather_facts: false
vars:
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_httpapi_port: 443
tasks:
- name: Configure RADIUS server entries.
fortinet.fmgdevice.fmgd_user_radius:
# bypass_validation: false
# workspace_locking_adom: <global or your adom name>
# workspace_locking_timeout: 300
# rc_succeeded: [0, -2, -3, ...]
# rc_failed: [-2, -3, ...]
device: <your own value>
vdom: <your own value>
state: present # <value in [present, absent]>
user_radius:
name: "your value" # Required variable, string
# accounting_server:
# - id: <integer>
# interface: <list or string>
# interface_select_method: <value in [auto, sdwan, specify]>
# port: <integer>
# secret: <list or string>
# server: <string>
# source_ip: <string>
# status: <value in [disable, enable]>
# vrf_select: <integer>
# acct_all_servers: <value in [disable, enable]>
# acct_interim_interval: <integer>
# all_usergroup: <value in [disable, enable]>
# auth_type: <value in [pap, chap, ms_chap, ...]>
# class: <list or string>
# delimiter: <value in [plus, comma]>
# dynamic_mapping:
# - _scope:
# - name: <string>
# vdom: <string>
# account_key_cert_field: <value in [othername, rfc822name, dnsname, ...]>
# account_key_processing: <value in [same, strip]>
# accounting_server:
# - id: <integer>
# interface: <list or string>
# interface_select_method: <value in [auto, sdwan, specify]>
# port: <integer>
# secret: <list or string>
# server: <string>
# source_ip: <string>
# status: <value in [disable, enable]>
# vrf_select: <integer>
# acct_all_servers: <value in [disable, enable]>
# acct_interim_interval: <integer>
# all_usergroup: <value in [disable, enable]>
# auth_type: <value in [pap, chap, ms_chap, ...]>
# ca_cert: <list or string>
# call_station_id_type: <value in [legacy, IP, MAC]>
# class: <list or string>
# client_cert: <list or string>
# delimiter: <value in [plus, comma]>
# dp_carrier_endpoint_attribute: <value in [User-Name, User-Password, CHAP-Password, ...]>
# dp_carrier_endpoint_block_attribute: <value in [User-Name, User-Password, CHAP-Password, ...]>
# dp_context_timeout: <integer>
# dp_flush_ip_session: <value in [disable, enable]>
# dp_hold_time: <integer>
# dp_http_header: <string>
# dp_http_header_fallback: <value in [ip-header-address, default-profile]>
# dp_http_header_status: <value in [disable, enable]>
# dp_http_header_suppress: <value in [disable, enable]>
# dp_log_dyn_flags:
# - "none"
# - "protocol-error"
# - "profile-missing"
# - "context-missing"
# - "accounting-stop-missed"
# - "accounting-event"
# - "radiusd-other"
# - "endpoint-block"
# dp_log_period: <integer>
# dp_mem_percent: <integer>
# dp_profile_attribute: <value in [User-Name, User-Password, CHAP-Password, ...]>
# dp_profile_attribute_key: <string>
# dp_radius_response: <value in [disable, enable]>
# dp_radius_server_port: <integer>
# dp_secret: <list or string>
# dp_validate_request_secret: <value in [disable, enable]>
# dynamic_profile: <value in [disable, enable]>
# endpoint_translation: <value in [disable, enable]>
# ep_carrier_endpoint_convert_hex: <value in [disable, enable]>
# ep_carrier_endpoint_header: <string>
# ep_carrier_endpoint_header_suppress: <value in [disable, enable]>
# ep_carrier_endpoint_prefix: <value in [disable, enable]>
# ep_carrier_endpoint_prefix_range_max: <integer>
# ep_carrier_endpoint_prefix_range_min: <integer>
# ep_carrier_endpoint_prefix_string: <string>
# ep_carrier_endpoint_source: <value in [http-header, cookie]>
# ep_ip_header: <string>
# ep_ip_header_suppress: <value in [disable, enable]>
# ep_missing_header_fallback: <value in [session-ip, policy-profile]>
# ep_profile_query_type: <value in [session-ip, extract-ip, extract-carrier-endpoint]>
# group_override_attr_type: <value in [filter-Id, class]>
# h3c_compatibility: <value in [disable, enable]>
# interface: <list or string>
# interface_select_method: <value in [auto, specify, sdwan]>
# mac_case: <value in [uppercase, lowercase]>
# mac_password_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
# mac_username_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
# nas_id: <string>
# nas_id_type: <value in [legacy, custom, hostname]>
# nas_ip: <string>
# password_encoding: <value in [ISO-8859-1, auto]>
# password_renewal: <value in [disable, enable]>
# radius_coa: <value in [disable, enable]>
# radius_port: <integer>
# require_message_authenticator: <value in [disable, enable]>
# rsso: <value in [disable, enable]>
# rsso_context_timeout: <integer>
# rsso_endpoint_attribute: <value in [User-Name, NAS-IP-Address, Framed-IP-Address, ...]>
# rsso_endpoint_block_attribute: <value in [User-Name, NAS-IP-Address, Framed-IP-Address, ...]>
# rsso_ep_one_ip_only: <value in [disable, enable]>
# rsso_flush_ip_session: <value in [disable, enable]>
# rsso_log_flags:
# - "none"
# - "protocol-error"
# - "profile-missing"
# - "accounting-stop-missed"
# - "accounting-event"
# - "radiusd-other"
# - "endpoint-block"
# rsso_log_period: <integer>
# rsso_radius_response: <value in [disable, enable]>
# rsso_radius_server_port: <integer>
# rsso_secret: <list or string>
# rsso_validate_request_secret: <value in [disable, enable]>
# secondary_secret: <list or string>
# secondary_server: <string>
# secret: <list or string>
# server: <string>
# server_identity_check: <value in [disable, enable]>
# source_ip: <string>
# sso_attribute: <value in [User-Name, NAS-IP-Address, Framed-IP-Address, ...]>
# sso_attribute_key: <string>
# sso_attribute_value_override: <value in [disable, enable]>
# status_ttl: <integer>
# switch_controller_acct_fast_framedip_detect: <integer>
# switch_controller_nas_ip_dynamic: <value in [disable, enable]>
# switch_controller_service_type:
# - "login"
# - "framed"
# - "callback-login"
# - "callback-framed"
# - "outbound"
# - "administrative"
# - "nas-prompt"
# - "authenticate-only"
# - "callback-nas-prompt"
# - "call-check"
# - "callback-administrative"
# tertiary_secret: <list or string>
# tertiary_server: <string>
# timeout: <integer>
# tls_min_proto_version: <value in [default, TLSv1, TLSv1-1, ...]>
# transport_protocol: <value in [udp, tcp, tls]>
# use_group_for_profile: <value in [disable, enable]>
# use_management_vdom: <value in [disable, enable]>
# username_case_sensitive: <value in [disable, enable]>
# source_ip_interface: <list or string>
# vrf_select: <integer>
# group_override_attr_type: <value in [filter-Id, class]>
# h3c_compatibility: <value in [disable, enable]>
# interface: <list or string>
# interface_select_method: <value in [auto, specify, sdwan]>
# mac_case: <value in [uppercase, lowercase]>
# mac_password_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
# mac_username_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
# nas_id: <string>
# nas_id_type: <value in [legacy, custom, hostname]>
# nas_ip: <string>
# password_encoding: <value in [ISO-8859-1, auto]>
# password_renewal: <value in [disable, enable]>
# radius_coa: <value in [disable, enable]>
# radius_port: <integer>
# require_message_authenticator: <value in [disable, enable]>
# rsso: <value in [disable, enable]>
# rsso_context_timeout: <integer>
# rsso_endpoint_attribute: <value in [User-Name, NAS-IP-Address, Framed-IP-Address, ...]>
# rsso_endpoint_block_attribute: <value in [User-Name, NAS-IP-Address, Framed-IP-Address, ...]>
# rsso_ep_one_ip_only: <value in [disable, enable]>
# rsso_flush_ip_session: <value in [disable, enable]>
# rsso_log_flags:
# - "none"
# - "protocol-error"
# - "profile-missing"
# - "accounting-stop-missed"
# - "accounting-event"
# - "radiusd-other"
# - "endpoint-block"
# rsso_log_period: <integer>
# rsso_radius_response: <value in [disable, enable]>
# rsso_radius_server_port: <integer>
# rsso_secret: <list or string>
# rsso_validate_request_secret: <value in [disable, enable]>
# secondary_secret: <list or string>
# secondary_server: <string>
# secret: <list or string>
# server: <string>
# source_ip: <string>
# sso_attribute: <value in [User-Name, NAS-IP-Address, Framed-IP-Address, ...]>
# sso_attribute_key: <string>
# sso_attribute_value_override: <value in [disable, enable]>
# switch_controller_acct_fast_framedip_detect: <integer>
# switch_controller_service_type:
# - "login"
# - "framed"
# - "callback-login"
# - "callback-framed"
# - "outbound"
# - "administrative"
# - "nas-prompt"
# - "authenticate-only"
# - "callback-nas-prompt"
# - "call-check"
# - "callback-administrative"
# tertiary_secret: <list or string>
# tertiary_server: <string>
# timeout: <integer>
# use_management_vdom: <value in [disable, enable]>
# username_case_sensitive: <value in [disable, enable]>
# tls_min_proto_version: <value in [default, TLSv1, TLSv1-1, ...]>
# status_ttl: <integer>
# account_key_cert_field: <value in [othername, rfc822name, dnsname, ...]>
# switch_controller_nas_ip_dynamic: <value in [disable, enable]>
# account_key_processing: <value in [same, strip]>
# server_identity_check: <value in [disable, enable]>
# transport_protocol: <value in [udp, tcp, tls]>
# client_cert: <list or string>
# ca_cert: <list or string>
# call_station_id_type: <value in [legacy, IP, MAC]>
# source_ip_interface: <list or string>
# vrf_select: <integer>
Return Values
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
- meta - The result of the request.returned: always type: dict
- request_url - The full url requested. returned: always type: str sample: /sys/login/user
- response_code - The status of api request. returned: always type: int sample: 0
- response_data - The data body of the api response. returned: optional type: list or dict
- response_message - The descriptive message of the api response. returned: always type: str sample: OK
- system_information - The information of the target system. returned: always type: dict
- rc - The status the request. returned: always type: int sample: 0
- version_check_warning - Warning if the parameters used in the playbook are not supported by the current FortiManager version. returned: if at least one parameter not supported by the current FortiManager version type: list
Status
This module is not guaranteed to have a backwards compatible interface.