| 1 |
|
| 2 |
from __future__ import absolute_import, division, print_function |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
__metaclass__ = type |
| 7 |
|
| 8 |
ANSIBLE_METADATA = {'status': ['preview'], |
| 9 |
'supported_by': 'community', |
| 10 |
'metadata_version': '1.1'} |
| 11 |
|
| 12 |
DOCUMENTATION = ''' |
| 13 |
--- |
| 14 |
module: fmgr_user_radius_dynamicmapping |
| 15 |
short_description: Configure RADIUS server entries. |
| 16 |
version_added: "2.0.0" |
| 17 |
extends_documentation_fragment: |
| 18 |
- fortinet.fortimanager.general |
| 19 |
- fortinet.fortimanager.general.full_crud |
| 20 |
options: |
| 21 |
revision_note: |
| 22 |
description: The change note that can be specified when an object is created or updated. |
| 23 |
type: str |
| 24 |
adom: |
| 25 |
description: The parameter (adom) in requested url. |
| 26 |
type: str |
| 27 |
required: true |
| 28 |
radius: |
| 29 |
description: The parameter (radius) in requested url. |
| 30 |
type: str |
| 31 |
required: true |
| 32 |
user_radius_dynamicmapping: |
| 33 |
description: The top level parameters set. |
| 34 |
required: false |
| 35 |
type: dict |
| 36 |
suboptions: |
| 37 |
_scope: |
| 38 |
type: list |
| 39 |
elements: dict |
| 40 |
description: Scope. |
| 41 |
suboptions: |
| 42 |
name: |
| 43 |
type: str |
| 44 |
description: Name. |
| 45 |
vdom: |
| 46 |
type: str |
| 47 |
description: Vdom. |
| 48 |
acct_all_servers: |
| 49 |
aliases: ['acct-all-servers'] |
| 50 |
type: str |
| 51 |
description: Acct all servers. |
| 52 |
choices: ['disable', 'enable'] |
| 53 |
acct_interim_interval: |
| 54 |
aliases: ['acct-interim-interval'] |
| 55 |
type: int |
| 56 |
description: Acct interim interval. |
| 57 |
all_usergroup: |
| 58 |
aliases: ['all-usergroup'] |
| 59 |
type: str |
| 60 |
description: All usergroup. |
| 61 |
choices: ['disable', 'enable'] |
| 62 |
auth_type: |
| 63 |
aliases: ['auth-type'] |
| 64 |
type: str |
| 65 |
description: Auth type. |
| 66 |
choices: ['pap', 'chap', 'ms_chap', 'ms_chap_v2', 'auto'] |
| 67 |
class: |
| 68 |
type: raw |
| 69 |
description: (list) Class. |
| 70 |
dp_carrier_endpoint_attribute: |
| 71 |
aliases: ['dp-carrier-endpoint-attribute'] |
| 72 |
type: str |
| 73 |
description: Dp carrier endpoint attribute. |
| 74 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 75 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 76 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 77 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 78 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 79 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 80 |
'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', |
| 81 |
'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 82 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 83 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 84 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 85 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 86 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 87 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 88 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 89 |
'Login-LAT-Port'] |
| 90 |
dp_carrier_endpoint_block_attribute: |
| 91 |
aliases: ['dp-carrier-endpoint-block-attribute'] |
| 92 |
type: str |
| 93 |
description: Dp carrier endpoint block attribute. |
| 94 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 95 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 96 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 97 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 98 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 99 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 100 |
'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', |
| 101 |
'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 102 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 103 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 104 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 105 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 106 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 107 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 108 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 109 |
'Login-LAT-Port'] |
| 110 |
dp_context_timeout: |
| 111 |
aliases: ['dp-context-timeout'] |
| 112 |
type: int |
| 113 |
description: Dp context timeout. |
| 114 |
dp_flush_ip_session: |
| 115 |
aliases: ['dp-flush-ip-session'] |
| 116 |
type: str |
| 117 |
description: Dp flush ip session. |
| 118 |
choices: ['disable', 'enable'] |
| 119 |
dp_hold_time: |
| 120 |
aliases: ['dp-hold-time'] |
| 121 |
type: int |
| 122 |
description: Dp hold time. |
| 123 |
dp_http_header: |
| 124 |
aliases: ['dp-http-header'] |
| 125 |
type: str |
| 126 |
description: Dp http header. |
| 127 |
dp_http_header_fallback: |
| 128 |
aliases: ['dp-http-header-fallback'] |
| 129 |
type: str |
| 130 |
description: Dp http header fallback. |
| 131 |
choices: ['ip-header-address', 'default-profile'] |
| 132 |
dp_http_header_status: |
| 133 |
aliases: ['dp-http-header-status'] |
| 134 |
type: str |
| 135 |
description: Dp http header status. |
| 136 |
choices: ['disable', 'enable'] |
| 137 |
dp_http_header_suppress: |
| 138 |
aliases: ['dp-http-header-suppress'] |
| 139 |
type: str |
| 140 |
description: Dp http header suppress. |
| 141 |
choices: ['disable', 'enable'] |
| 142 |
dp_log_dyn_flags: |
| 143 |
aliases: ['dp-log-dyn_flags'] |
| 144 |
type: list |
| 145 |
elements: str |
| 146 |
description: Dp log dyn flags. |
| 147 |
choices: ['none', 'protocol-error', 'profile-missing', 'context-missing', |
| 148 |
'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 149 |
'endpoint-block'] |
| 150 |
dp_log_period: |
| 151 |
aliases: ['dp-log-period'] |
| 152 |
type: int |
| 153 |
description: Dp log period. |
| 154 |
dp_mem_percent: |
| 155 |
aliases: ['dp-mem-percent'] |
| 156 |
type: int |
| 157 |
description: Dp mem percent. |
| 158 |
dp_profile_attribute: |
| 159 |
aliases: ['dp-profile-attribute'] |
| 160 |
type: str |
| 161 |
description: Dp profile attribute. |
| 162 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 163 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 164 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 165 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 166 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 167 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 168 |
'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', |
| 169 |
'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 170 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 171 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 172 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 173 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 174 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 175 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 176 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 177 |
'Login-LAT-Port'] |
| 178 |
dp_profile_attribute_key: |
| 179 |
aliases: ['dp-profile-attribute-key'] |
| 180 |
type: str |
| 181 |
description: Dp profile attribute key. |
| 182 |
dp_radius_response: |
| 183 |
aliases: ['dp-radius-response'] |
| 184 |
type: str |
| 185 |
description: Dp radius response. |
| 186 |
choices: ['disable', 'enable'] |
| 187 |
dp_radius_server_port: |
| 188 |
aliases: ['dp-radius-server-port'] |
| 189 |
type: int |
| 190 |
description: Dp radius server port. |
| 191 |
dp_secret: |
| 192 |
aliases: ['dp-secret'] |
| 193 |
type: raw |
| 194 |
description: (list) Dp secret. |
| 195 |
dp_validate_request_secret: |
| 196 |
aliases: ['dp-validate-request-secret'] |
| 197 |
type: str |
| 198 |
description: Dp validate request secret. |
| 199 |
choices: ['disable', 'enable'] |
| 200 |
dynamic_profile: |
| 201 |
aliases: ['dynamic-profile'] |
| 202 |
type: str |
| 203 |
description: Dynamic profile. |
| 204 |
choices: ['disable', 'enable'] |
| 205 |
endpoint_translation: |
| 206 |
aliases: ['endpoint-translation'] |
| 207 |
type: str |
| 208 |
description: Endpoint translation. |
| 209 |
choices: ['disable', 'enable'] |
| 210 |
ep_carrier_endpoint_convert_hex: |
| 211 |
aliases: ['ep-carrier-endpoint-convert-hex'] |
| 212 |
type: str |
| 213 |
description: Ep carrier endpoint convert hex. |
| 214 |
choices: ['disable', 'enable'] |
| 215 |
ep_carrier_endpoint_header: |
| 216 |
aliases: ['ep-carrier-endpoint-header'] |
| 217 |
type: str |
| 218 |
description: Ep carrier endpoint header. |
| 219 |
ep_carrier_endpoint_header_suppress: |
| 220 |
aliases: ['ep-carrier-endpoint-header-suppress'] |
| 221 |
type: str |
| 222 |
description: Ep carrier endpoint header suppress. |
| 223 |
choices: ['disable', 'enable'] |
| 224 |
ep_carrier_endpoint_prefix: |
| 225 |
aliases: ['ep-carrier-endpoint-prefix'] |
| 226 |
type: str |
| 227 |
description: Ep carrier endpoint prefix. |
| 228 |
choices: ['disable', 'enable'] |
| 229 |
ep_carrier_endpoint_prefix_range_max: |
| 230 |
aliases: ['ep-carrier-endpoint-prefix-range-max'] |
| 231 |
type: int |
| 232 |
description: Ep carrier endpoint prefix range max. |
| 233 |
ep_carrier_endpoint_prefix_range_min: |
| 234 |
aliases: ['ep-carrier-endpoint-prefix-range-min'] |
| 235 |
type: int |
| 236 |
description: Ep carrier endpoint prefix range min. |
| 237 |
ep_carrier_endpoint_prefix_string: |
| 238 |
aliases: ['ep-carrier-endpoint-prefix-string'] |
| 239 |
type: str |
| 240 |
description: Ep carrier endpoint prefix string. |
| 241 |
ep_carrier_endpoint_source: |
| 242 |
aliases: ['ep-carrier-endpoint-source'] |
| 243 |
type: str |
| 244 |
description: Ep carrier endpoint source. |
| 245 |
choices: ['http-header', 'cookie'] |
| 246 |
ep_ip_header: |
| 247 |
aliases: ['ep-ip-header'] |
| 248 |
type: str |
| 249 |
description: Ep ip header. |
| 250 |
ep_ip_header_suppress: |
| 251 |
aliases: ['ep-ip-header-suppress'] |
| 252 |
type: str |
| 253 |
description: Ep ip header suppress. |
| 254 |
choices: ['disable', 'enable'] |
| 255 |
ep_missing_header_fallback: |
| 256 |
aliases: ['ep-missing-header-fallback'] |
| 257 |
type: str |
| 258 |
description: Ep missing header fallback. |
| 259 |
choices: ['session-ip', 'policy-profile'] |
| 260 |
ep_profile_query_type: |
| 261 |
aliases: ['ep-profile-query-type'] |
| 262 |
type: str |
| 263 |
description: Ep profile query type. |
| 264 |
choices: ['session-ip', 'extract-ip', 'extract-carrier-endpoint'] |
| 265 |
h3c_compatibility: |
| 266 |
aliases: ['h3c-compatibility'] |
| 267 |
type: str |
| 268 |
description: H3c compatibility. |
| 269 |
choices: ['disable', 'enable'] |
| 270 |
nas_ip: |
| 271 |
aliases: ['nas-ip'] |
| 272 |
type: str |
| 273 |
description: Nas ip. |
| 274 |
password_encoding: |
| 275 |
aliases: ['password-encoding'] |
| 276 |
type: str |
| 277 |
description: Password encoding. |
| 278 |
choices: ['ISO-8859-1', 'auto'] |
| 279 |
password_renewal: |
| 280 |
aliases: ['password-renewal'] |
| 281 |
type: str |
| 282 |
description: Password renewal. |
| 283 |
choices: ['disable', 'enable'] |
| 284 |
radius_coa: |
| 285 |
aliases: ['radius-coa'] |
| 286 |
type: str |
| 287 |
description: Radius coa. |
| 288 |
choices: ['disable', 'enable'] |
| 289 |
radius_port: |
| 290 |
aliases: ['radius-port'] |
| 291 |
type: int |
| 292 |
description: Radius port. |
| 293 |
rsso: |
| 294 |
type: str |
| 295 |
description: Rsso. |
| 296 |
choices: ['disable', 'enable'] |
| 297 |
rsso_context_timeout: |
| 298 |
aliases: ['rsso-context-timeout'] |
| 299 |
type: int |
| 300 |
description: Rsso context timeout. |
| 301 |
rsso_endpoint_attribute: |
| 302 |
aliases: ['rsso-endpoint-attribute'] |
| 303 |
type: str |
| 304 |
description: Rsso endpoint attribute. |
| 305 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 306 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 307 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 308 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 309 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 310 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 311 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 312 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 313 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 314 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 315 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 316 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 317 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 318 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 319 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 320 |
'Login-LAT-Port'] |
| 321 |
rsso_endpoint_block_attribute: |
| 322 |
aliases: ['rsso-endpoint-block-attribute'] |
| 323 |
type: str |
| 324 |
description: Rsso endpoint block attribute. |
| 325 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 326 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 327 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 328 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 329 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 330 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 331 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 332 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 333 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 334 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 335 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 336 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 337 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 338 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 339 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 340 |
'Login-LAT-Port'] |
| 341 |
rsso_ep_one_ip_only: |
| 342 |
aliases: ['rsso-ep-one-ip-only'] |
| 343 |
type: str |
| 344 |
description: Rsso ep one ip only. |
| 345 |
choices: ['disable', 'enable'] |
| 346 |
rsso_flush_ip_session: |
| 347 |
aliases: ['rsso-flush-ip-session'] |
| 348 |
type: str |
| 349 |
description: Rsso flush ip session. |
| 350 |
choices: ['disable', 'enable'] |
| 351 |
rsso_log_flags: |
| 352 |
aliases: ['rsso-log-flags'] |
| 353 |
type: list |
| 354 |
elements: str |
| 355 |
description: Rsso log flags. |
| 356 |
choices: ['none', 'protocol-error', 'profile-missing', 'context-missing', |
| 357 |
'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 358 |
'endpoint-block'] |
| 359 |
rsso_log_period: |
| 360 |
aliases: ['rsso-log-period'] |
| 361 |
type: int |
| 362 |
description: Rsso log period. |
| 363 |
rsso_radius_response: |
| 364 |
aliases: ['rsso-radius-response'] |
| 365 |
type: str |
| 366 |
description: Rsso radius response. |
| 367 |
choices: ['disable', 'enable'] |
| 368 |
rsso_radius_server_port: |
| 369 |
aliases: ['rsso-radius-server-port'] |
| 370 |
type: int |
| 371 |
description: Rsso radius server port. |
| 372 |
rsso_secret: |
| 373 |
aliases: ['rsso-secret'] |
| 374 |
type: raw |
| 375 |
description: (list) Rsso secret. |
| 376 |
rsso_validate_request_secret: |
| 377 |
aliases: ['rsso-validate-request-secret'] |
| 378 |
type: str |
| 379 |
description: Rsso validate request secret. |
| 380 |
choices: ['disable', 'enable'] |
| 381 |
secondary_secret: |
| 382 |
aliases: ['secondary-secret'] |
| 383 |
type: raw |
| 384 |
description: (list) Secondary secret. |
| 385 |
secondary_server: |
| 386 |
aliases: ['secondary-server'] |
| 387 |
type: str |
| 388 |
description: Secondary server. |
| 389 |
secret: |
| 390 |
type: raw |
| 391 |
description: (list) Secret. |
| 392 |
server: |
| 393 |
type: str |
| 394 |
description: Server. |
| 395 |
source_ip: |
| 396 |
aliases: ['source-ip'] |
| 397 |
type: str |
| 398 |
description: Source ip. |
| 399 |
sso_attribute: |
| 400 |
aliases: ['sso-attribute'] |
| 401 |
type: str |
| 402 |
description: Sso attribute. |
| 403 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 404 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 405 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 406 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 407 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 408 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 409 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 410 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 411 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 412 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 413 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 414 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 415 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 416 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 417 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 418 |
'Login-LAT-Port'] |
| 419 |
sso_attribute_key: |
| 420 |
aliases: ['sso-attribute-key'] |
| 421 |
type: str |
| 422 |
description: Sso attribute key. |
| 423 |
sso_attribute_value_override: |
| 424 |
aliases: ['sso-attribute-value-override'] |
| 425 |
type: str |
| 426 |
description: Sso attribute value override. |
| 427 |
choices: ['disable', 'enable'] |
| 428 |
tertiary_secret: |
| 429 |
aliases: ['tertiary-secret'] |
| 430 |
type: raw |
| 431 |
description: (list) Tertiary secret. |
| 432 |
tertiary_server: |
| 433 |
aliases: ['tertiary-server'] |
| 434 |
type: str |
| 435 |
description: Tertiary server. |
| 436 |
timeout: |
| 437 |
type: int |
| 438 |
description: Timeout. |
| 439 |
use_group_for_profile: |
| 440 |
aliases: ['use-group-for-profile'] |
| 441 |
type: str |
| 442 |
description: Use group for profile. |
| 443 |
choices: ['disable', 'enable'] |
| 444 |
use_management_vdom: |
| 445 |
aliases: ['use-management-vdom'] |
| 446 |
type: str |
| 447 |
description: Use management vdom. |
| 448 |
choices: ['disable', 'enable'] |
| 449 |
username_case_sensitive: |
| 450 |
aliases: ['username-case-sensitive'] |
| 451 |
type: str |
| 452 |
description: Username case sensitive. |
| 453 |
choices: ['disable', 'enable'] |
| 454 |
interface: |
| 455 |
type: str |
| 456 |
description: Interface. |
| 457 |
interface_select_method: |
| 458 |
aliases: ['interface-select-method'] |
| 459 |
type: str |
| 460 |
description: Interface select method. |
| 461 |
choices: ['auto', 'sdwan', 'specify'] |
| 462 |
group_override_attr_type: |
| 463 |
aliases: ['group-override-attr-type'] |
| 464 |
type: str |
| 465 |
description: Group override attr type. |
| 466 |
choices: ['filter-Id', 'class'] |
| 467 |
switch_controller_acct_fast_framedip_detect: |
| 468 |
aliases: ['switch-controller-acct-fast-framedip-detect'] |
| 469 |
type: int |
| 470 |
description: Switch controller acct fast framedip detect. |
| 471 |
accounting_server: |
| 472 |
aliases: ['accounting-server'] |
| 473 |
type: list |
| 474 |
elements: dict |
| 475 |
description: Accounting server. |
| 476 |
suboptions: |
| 477 |
id: |
| 478 |
type: int |
| 479 |
description: Id. |
| 480 |
interface: |
| 481 |
type: str |
| 482 |
description: Interface. |
| 483 |
interface_select_method: |
| 484 |
aliases: ['interface-select-method'] |
| 485 |
type: str |
| 486 |
description: Interface select method. |
| 487 |
choices: ['auto', 'sdwan', 'specify'] |
| 488 |
port: |
| 489 |
type: int |
| 490 |
description: Port. |
| 491 |
secret: |
| 492 |
type: raw |
| 493 |
description: (list) Secret. |
| 494 |
server: |
| 495 |
type: str |
| 496 |
description: Server. |
| 497 |
source_ip: |
| 498 |
aliases: ['source-ip'] |
| 499 |
type: str |
| 500 |
description: Source ip. |
| 501 |
status: |
| 502 |
type: str |
| 503 |
description: Status. |
| 504 |
choices: ['disable', 'enable'] |
| 505 |
vrf_select: |
| 506 |
aliases: ['vrf-select'] |
| 507 |
type: int |
| 508 |
description: VRF ID used for connection to server. |
| 509 |
switch_controller_service_type: |
| 510 |
aliases: ['switch-controller-service-type'] |
| 511 |
type: list |
| 512 |
elements: str |
| 513 |
description: Switch controller service type. |
| 514 |
choices: ['login', 'framed', 'callback-login', 'callback-framed', 'outbound', |
| 515 |
'administrative', 'nas-prompt', 'authenticate-only', |
| 516 |
'callback-nas-prompt', 'call-check', 'callback-administrative'] |
| 517 |
delimiter: |
| 518 |
type: str |
| 519 |
description: Configure delimiter to be used for separating profile group names in the SSO attribute |
| 520 |
choices: ['plus', 'comma'] |
| 521 |
mac_case: |
| 522 |
aliases: ['mac-case'] |
| 523 |
type: str |
| 524 |
description: MAC authentication case |
| 525 |
choices: ['uppercase', 'lowercase'] |
| 526 |
mac_password_delimiter: |
| 527 |
aliases: ['mac-password-delimiter'] |
| 528 |
type: str |
| 529 |
description: MAC authentication password delimiter |
| 530 |
choices: ['hyphen', 'single-hyphen', 'colon', 'none'] |
| 531 |
mac_username_delimiter: |
| 532 |
aliases: ['mac-username-delimiter'] |
| 533 |
type: str |
| 534 |
description: MAC authentication username delimiter |
| 535 |
choices: ['hyphen', 'single-hyphen', 'colon', 'none'] |
| 536 |
nas_id: |
| 537 |
aliases: ['nas-id'] |
| 538 |
type: str |
| 539 |
description: Custom NAS identifier. |
| 540 |
nas_id_type: |
| 541 |
aliases: ['nas-id-type'] |
| 542 |
type: str |
| 543 |
description: NAS identifier type configuration |
| 544 |
choices: ['legacy', 'custom', 'hostname'] |
| 545 |
ca_cert: |
| 546 |
aliases: ['ca-cert'] |
| 547 |
type: str |
| 548 |
description: CA of server to trust under TLS. |
| 549 |
client_cert: |
| 550 |
aliases: ['client-cert'] |
| 551 |
type: str |
| 552 |
description: Client certificate to use under TLS. |
| 553 |
server_identity_check: |
| 554 |
aliases: ['server-identity-check'] |
| 555 |
type: str |
| 556 |
description: Enable/disable RADIUS server identity check |
| 557 |
choices: ['disable', 'enable'] |
| 558 |
status_ttl: |
| 559 |
aliases: ['status-ttl'] |
| 560 |
type: int |
| 561 |
description: Time for which server reachability is cached so that when a server is unreachable, it will not be retried for at least thi... |
| 562 |
tls_min_proto_version: |
| 563 |
aliases: ['tls-min-proto-version'] |
| 564 |
type: str |
| 565 |
description: Minimum supported protocol version for TLS connections |
| 566 |
choices: ['default', 'TLSv1', 'TLSv1-1', 'TLSv1-2', 'SSLv3', 'TLSv1-3'] |
| 567 |
transport_protocol: |
| 568 |
aliases: ['transport-protocol'] |
| 569 |
type: str |
| 570 |
description: Transport protocol to be used |
| 571 |
choices: ['udp', 'tcp', 'tls'] |
| 572 |
account_key_cert_field: |
| 573 |
aliases: ['account-key-cert-field'] |
| 574 |
type: str |
| 575 |
description: Define subject identity field in certificate for user access right checking. |
| 576 |
choices: ['othername', 'rfc822name', 'dnsname', 'cn'] |
| 577 |
account_key_processing: |
| 578 |
aliases: ['account-key-processing'] |
| 579 |
type: str |
| 580 |
description: Account key processing operation. |
| 581 |
choices: ['same', 'strip'] |
| 582 |
call_station_id_type: |
| 583 |
aliases: ['call-station-id-type'] |
| 584 |
type: str |
| 585 |
description: Calling & Called station identifier type configuration |
| 586 |
choices: ['legacy', 'IP', 'MAC'] |
| 587 |
switch_controller_nas_ip_dynamic: |
| 588 |
aliases: ['switch-controller-nas-ip-dynamic'] |
| 589 |
type: str |
| 590 |
description: Enable/Disable switch-controller nas-ip dynamic to dynamically set nas-ip. |
| 591 |
choices: ['disable', 'enable'] |
| 592 |
source_ip_interface: |
| 593 |
aliases: ['source-ip-interface'] |
| 594 |
type: raw |
| 595 |
description: (list) Source interface for communication with the RADIUS server. |
| 596 |
require_message_authenticator: |
| 597 |
aliases: ['require-message-authenticator'] |
| 598 |
type: str |
| 599 |
description: Require message authenticator in authentication response. |
| 600 |
choices: ['disable', 'enable'] |
| 601 |
vrf_select: |
| 602 |
aliases: ['vrf-select'] |
| 603 |
type: int |
| 604 |
description: VRF ID used for connection to server. |
| 605 |
''' |
| 606 |
|
| 607 |
EXAMPLES = ''' |
| 608 |
- name: Example playbook |
| 609 |
hosts: fortimanagers |
| 610 |
gather_facts: false |
| 611 |
connection: httpapi |
| 612 |
vars: |
| 613 |
ansible_httpapi_use_ssl: true |
| 614 |
ansible_httpapi_validate_certs: false |
| 615 |
ansible_httpapi_port: 443 |
| 616 |
tasks: |
| 617 |
- name: Configure dynamic mappings of RADIUS server |
| 618 |
fortinet.fortimanager.fmgr_user_radius_dynamicmapping: |
| 619 |
bypass_validation: false |
| 620 |
adom: ansible |
| 621 |
radius: ansible-test-radius # name |
| 622 |
state: present |
| 623 |
user_radius_dynamicmapping: |
| 624 |
_scope: |
| 625 |
- name: FGT_AWS # need a valid device name |
| 626 |
vdom: root # need a valid vdom name under the device |
| 627 |
server: ansible |
| 628 |
timeout: 100 |
| 629 |
|
| 630 |
- name: Gathering fortimanager facts |
| 631 |
hosts: fortimanagers |
| 632 |
gather_facts: false |
| 633 |
connection: httpapi |
| 634 |
vars: |
| 635 |
ansible_httpapi_use_ssl: true |
| 636 |
ansible_httpapi_validate_certs: false |
| 637 |
ansible_httpapi_port: 443 |
| 638 |
tasks: |
| 639 |
- name: Retrieve all the dynamic mappings of RADIUS server |
| 640 |
fortinet.fortimanager.fmgr_fact: |
| 641 |
facts: |
| 642 |
selector: "user_radius_dynamicmapping" |
| 643 |
params: |
| 644 |
adom: "ansible" |
| 645 |
radius: "ansible-test-radius" # name |
| 646 |
dynamic_mapping: "your_value" |
| 647 |
''' |
| 648 |
|
| 649 |
RETURN = ''' |
| 650 |
meta: |
| 651 |
description: The result of the request. |
| 652 |
type: dict |
| 653 |
returned: always |
| 654 |
contains: |
| 655 |
request_url: |
| 656 |
description: The full url requested. |
| 657 |
returned: always |
| 658 |
type: str |
| 659 |
sample: /sys/login/user |
| 660 |
response_code: |
| 661 |
description: The status of api request. |
| 662 |
returned: always |
| 663 |
type: int |
| 664 |
sample: 0 |
| 665 |
response_data: |
| 666 |
description: The api response. |
| 667 |
type: list |
| 668 |
returned: always |
| 669 |
response_message: |
| 670 |
description: The descriptive message of the api response. |
| 671 |
type: str |
| 672 |
returned: always |
| 673 |
sample: OK. |
| 674 |
system_information: |
| 675 |
description: The information of the target system. |
| 676 |
type: dict |
| 677 |
returned: always |
| 678 |
rc: |
| 679 |
description: The status the request. |
| 680 |
type: int |
| 681 |
returned: always |
| 682 |
sample: 0 |
| 683 |
version_check_warning: |
| 684 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 685 |
type: list |
| 686 |
returned: complex |
| 687 |
''' |
| 688 |
from ansible.module_utils.basic import AnsibleModule |
| 689 |
from ansible.module_utils.connection import Connection |
| 690 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 691 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 692 |
|
| 693 |
|
| 694 |
def main(): |
| 695 |
urls_list = [ |
| 696 |
'/pm/config/adom/{adom}/obj/user/radius/{radius}/dynamic_mapping', |
| 697 |
'/pm/config/global/obj/user/radius/{radius}/dynamic_mapping' |
| 698 |
] |
| 699 |
module_arg_spec = { |
| 700 |
'adom': {'required': True, 'type': 'str'}, |
| 701 |
'radius': {'required': True, 'type': 'str'}, |
| 702 |
'revision_note': {'type': 'str'}, |
| 703 |
'user_radius_dynamicmapping': { |
| 704 |
'type': 'dict', 'v_range': [['6.0.0', '']], |
| 705 |
'options': { |
| 706 |
'_scope': {'type': 'list', 'options': {'name': {'type': 'str'}, 'vdom': {'type': 'str'}}, 'elements': 'dict'}, |
| 707 |
'acct-all-servers': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 708 |
'acct-interim-interval': {'type': 'int'}, |
| 709 |
'all-usergroup': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 710 |
'auth-type': {'choices': ['pap', 'chap', 'ms_chap', 'ms_chap_v2', 'auto'], 'type': 'str'}, |
| 711 |
'class': {'type': 'raw'}, |
| 712 |
'dp-carrier-endpoint-attribute': { |
| 713 |
'choices': [ |
| 714 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 715 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 716 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 717 |
'State', 'Class', 'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', |
| 718 |
'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 719 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 720 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 721 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', |
| 722 |
'Port-Limit', 'Login-LAT-Port' |
| 723 |
], |
| 724 |
'type': 'str' |
| 725 |
}, |
| 726 |
'dp-carrier-endpoint-block-attribute': { |
| 727 |
'choices': [ |
| 728 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 729 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 730 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 731 |
'State', 'Class', 'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', |
| 732 |
'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 733 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 734 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 735 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', |
| 736 |
'Port-Limit', 'Login-LAT-Port' |
| 737 |
], |
| 738 |
'type': 'str' |
| 739 |
}, |
| 740 |
'dp-context-timeout': {'type': 'int'}, |
| 741 |
'dp-flush-ip-session': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 742 |
'dp-hold-time': {'type': 'int'}, |
| 743 |
'dp-http-header': {'type': 'str'}, |
| 744 |
'dp-http-header-fallback': {'choices': ['ip-header-address', 'default-profile'], 'type': 'str'}, |
| 745 |
'dp-http-header-status': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 746 |
'dp-http-header-suppress': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 747 |
'dp-log-dyn_flags': { |
| 748 |
'type': 'list', |
| 749 |
'choices': [ |
| 750 |
'none', 'protocol-error', 'profile-missing', 'context-missing', 'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 751 |
'endpoint-block' |
| 752 |
], |
| 753 |
'elements': 'str' |
| 754 |
}, |
| 755 |
'dp-log-period': {'type': 'int'}, |
| 756 |
'dp-mem-percent': {'type': 'int'}, |
| 757 |
'dp-profile-attribute': { |
| 758 |
'choices': [ |
| 759 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 760 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 761 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 762 |
'State', 'Class', 'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', |
| 763 |
'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 764 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 765 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 766 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', |
| 767 |
'Port-Limit', 'Login-LAT-Port' |
| 768 |
], |
| 769 |
'type': 'str' |
| 770 |
}, |
| 771 |
'dp-profile-attribute-key': {'no_log': True, 'type': 'str'}, |
| 772 |
'dp-radius-response': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 773 |
'dp-radius-server-port': {'type': 'int'}, |
| 774 |
'dp-secret': {'no_log': True, 'type': 'raw'}, |
| 775 |
'dp-validate-request-secret': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 776 |
'dynamic-profile': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 777 |
'endpoint-translation': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 778 |
'ep-carrier-endpoint-convert-hex': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 779 |
'ep-carrier-endpoint-header': {'type': 'str'}, |
| 780 |
'ep-carrier-endpoint-header-suppress': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 781 |
'ep-carrier-endpoint-prefix': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 782 |
'ep-carrier-endpoint-prefix-range-max': {'type': 'int'}, |
| 783 |
'ep-carrier-endpoint-prefix-range-min': {'type': 'int'}, |
| 784 |
'ep-carrier-endpoint-prefix-string': {'type': 'str'}, |
| 785 |
'ep-carrier-endpoint-source': {'choices': ['http-header', 'cookie'], 'type': 'str'}, |
| 786 |
'ep-ip-header': {'type': 'str'}, |
| 787 |
'ep-ip-header-suppress': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 788 |
'ep-missing-header-fallback': {'choices': ['session-ip', 'policy-profile'], 'type': 'str'}, |
| 789 |
'ep-profile-query-type': {'choices': ['session-ip', 'extract-ip', 'extract-carrier-endpoint'], 'type': 'str'}, |
| 790 |
'h3c-compatibility': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 791 |
'nas-ip': {'type': 'str'}, |
| 792 |
'password-encoding': {'choices': ['ISO-8859-1', 'auto'], 'type': 'str'}, |
| 793 |
'password-renewal': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 794 |
'radius-coa': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 795 |
'radius-port': {'type': 'int'}, |
| 796 |
'rsso': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 797 |
'rsso-context-timeout': {'type': 'int'}, |
| 798 |
'rsso-endpoint-attribute': { |
| 799 |
'choices': [ |
| 800 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 801 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 802 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 803 |
'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 804 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 805 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 806 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', 'Acct-Output-Packets', |
| 807 |
'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 808 |
'Login-LAT-Port' |
| 809 |
], |
| 810 |
'type': 'str' |
| 811 |
}, |
| 812 |
'rsso-endpoint-block-attribute': { |
| 813 |
'choices': [ |
| 814 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 815 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 816 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 817 |
'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 818 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 819 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 820 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', 'Acct-Output-Packets', |
| 821 |
'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 822 |
'Login-LAT-Port' |
| 823 |
], |
| 824 |
'type': 'str' |
| 825 |
}, |
| 826 |
'rsso-ep-one-ip-only': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 827 |
'rsso-flush-ip-session': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 828 |
'rsso-log-flags': { |
| 829 |
'type': 'list', |
| 830 |
'choices': [ |
| 831 |
'none', 'protocol-error', 'profile-missing', 'context-missing', 'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 832 |
'endpoint-block' |
| 833 |
], |
| 834 |
'elements': 'str' |
| 835 |
}, |
| 836 |
'rsso-log-period': {'type': 'int'}, |
| 837 |
'rsso-radius-response': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 838 |
'rsso-radius-server-port': {'type': 'int'}, |
| 839 |
'rsso-secret': {'no_log': True, 'type': 'raw'}, |
| 840 |
'rsso-validate-request-secret': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 841 |
'secondary-secret': {'no_log': True, 'type': 'raw'}, |
| 842 |
'secondary-server': {'type': 'str'}, |
| 843 |
'secret': {'no_log': True, 'type': 'raw'}, |
| 844 |
'server': {'type': 'str'}, |
| 845 |
'source-ip': {'type': 'str'}, |
| 846 |
'sso-attribute': { |
| 847 |
'choices': [ |
| 848 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 849 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 850 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 851 |
'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 852 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 853 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 854 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', 'Acct-Output-Packets', |
| 855 |
'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 856 |
'Login-LAT-Port' |
| 857 |
], |
| 858 |
'type': 'str' |
| 859 |
}, |
| 860 |
'sso-attribute-key': {'no_log': True, 'type': 'str'}, |
| 861 |
'sso-attribute-value-override': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 862 |
'tertiary-secret': {'no_log': True, 'type': 'raw'}, |
| 863 |
'tertiary-server': {'type': 'str'}, |
| 864 |
'timeout': {'type': 'int'}, |
| 865 |
'use-group-for-profile': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 866 |
'use-management-vdom': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 867 |
'username-case-sensitive': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 868 |
'interface': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'type': 'str'}, |
| 869 |
'interface-select-method': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'choices': ['auto', 'sdwan', 'specify'], 'type': 'str'}, |
| 870 |
'group-override-attr-type': {'v_range': [['6.4.0', '']], 'choices': ['filter-Id', 'class'], 'type': 'str'}, |
| 871 |
'switch-controller-acct-fast-framedip-detect': {'v_range': [['6.4.0', '']], 'type': 'int'}, |
| 872 |
'accounting-server': { |
| 873 |
'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], |
| 874 |
'type': 'list', |
| 875 |
'options': { |
| 876 |
'id': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'}, |
| 877 |
'interface': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'}, |
| 878 |
'interface-select-method': { |
| 879 |
'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], |
| 880 |
'choices': ['auto', 'sdwan', 'specify'], |
| 881 |
'type': 'str' |
| 882 |
}, |
| 883 |
'port': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'}, |
| 884 |
'secret': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'no_log': True, 'type': 'raw'}, |
| 885 |
'server': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'}, |
| 886 |
'source-ip': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'}, |
| 887 |
'status': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 888 |
'vrf-select': {'v_range': [['7.6.2', '']], 'type': 'int'} |
| 889 |
}, |
| 890 |
'elements': 'dict' |
| 891 |
}, |
| 892 |
'switch-controller-service-type': { |
| 893 |
'v_range': [['6.4.2', '']], |
| 894 |
'type': 'list', |
| 895 |
'choices': [ |
| 896 |
'login', 'framed', 'callback-login', 'callback-framed', 'outbound', 'administrative', 'nas-prompt', 'authenticate-only', |
| 897 |
'callback-nas-prompt', 'call-check', 'callback-administrative' |
| 898 |
], |
| 899 |
'elements': 'str' |
| 900 |
}, |
| 901 |
'delimiter': {'v_range': [['7.2.0', '']], 'choices': ['plus', 'comma'], 'type': 'str'}, |
| 902 |
'mac-case': {'v_range': [['7.2.1', '']], 'choices': ['uppercase', 'lowercase'], 'type': 'str'}, |
| 903 |
'mac-password-delimiter': {'v_range': [['7.2.1', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'}, |
| 904 |
'mac-username-delimiter': {'v_range': [['7.2.1', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'}, |
| 905 |
'nas-id': {'v_range': [['7.2.2', '']], 'type': 'str'}, |
| 906 |
'nas-id-type': {'v_range': [['7.2.2', '']], 'choices': ['legacy', 'custom', 'hostname'], 'type': 'str'}, |
| 907 |
'ca-cert': {'v_range': [['7.4.0', '']], 'type': 'str'}, |
| 908 |
'client-cert': {'v_range': [['7.4.0', '']], 'type': 'str'}, |
| 909 |
'server-identity-check': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 910 |
'status-ttl': {'v_range': [['7.4.0', '']], 'type': 'int'}, |
| 911 |
'tls-min-proto-version': { |
| 912 |
'v_range': [['7.4.0', '']], |
| 913 |
'choices': ['default', 'TLSv1', 'TLSv1-1', 'TLSv1-2', 'SSLv3', 'TLSv1-3'], |
| 914 |
'type': 'str' |
| 915 |
}, |
| 916 |
'transport-protocol': {'v_range': [['7.4.0', '']], 'choices': ['udp', 'tcp', 'tls'], 'type': 'str'}, |
| 917 |
'account-key-cert-field': {'v_range': [['7.4.1', '']], 'choices': ['othername', 'rfc822name', 'dnsname', 'cn'], 'type': 'str'}, |
| 918 |
'account-key-processing': {'v_range': [['7.4.1', '']], 'choices': ['same', 'strip'], 'type': 'str'}, |
| 919 |
'call-station-id-type': {'v_range': [['7.4.1', '']], 'choices': ['legacy', 'IP', 'MAC'], 'type': 'str'}, |
| 920 |
'switch-controller-nas-ip-dynamic': {'v_range': [['7.2.6', '7.2.12'], ['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 921 |
'source-ip-interface': {'v_range': [['7.6.0', '']], 'type': 'raw'}, |
| 922 |
'require-message-authenticator': { |
| 923 |
'v_range': [['7.2.10', '7.2.12'], ['7.4.6', '7.4.10'], ['7.6.2', '']], |
| 924 |
'choices': ['disable', 'enable'], |
| 925 |
'type': 'str' |
| 926 |
}, |
| 927 |
'vrf-select': {'v_range': [['7.6.2', '']], 'type': 'int'} |
| 928 |
} |
| 929 |
} |
| 930 |
} |
| 931 |
|
| 932 |
module_option_spec = get_module_arg_spec('full crud') |
| 933 |
module_arg_spec.update(module_option_spec) |
| 934 |
check_galaxy_version(module_arg_spec) |
| 935 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'user_radius_dynamicmapping'), |
| 936 |
supports_check_mode=True) |
| 937 |
if not module._socket_path: |
| 938 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 939 |
connection = Connection(module._socket_path) |
| 940 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 941 |
'complex:{{module}}["_scope"][0]["name"]+"/"+{{module}}["_scope"][0]["vdom"]', 'data', module, connection) |
| 942 |
fmgr.process_crud() |
| 943 |
module.exit_json(meta=module.params) |
| 944 |
|
| 945 |
|
| 946 |
if __name__ == '__main__': |
| 947 |
main() |