| 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 |
| 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 |
user_radius: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
accounting_server: |
| 34 |
aliases: ['accounting-server'] |
| 35 |
type: list |
| 36 |
elements: dict |
| 37 |
description: Accounting server. |
| 38 |
suboptions: |
| 39 |
id: |
| 40 |
type: int |
| 41 |
description: ID |
| 42 |
port: |
| 43 |
type: int |
| 44 |
description: RADIUS accounting port number. |
| 45 |
secret: |
| 46 |
type: raw |
| 47 |
description: (list) Secret key. |
| 48 |
server: |
| 49 |
type: str |
| 50 |
description: No description |
| 51 |
source_ip: |
| 52 |
aliases: ['source-ip'] |
| 53 |
type: str |
| 54 |
description: Source IP address for communications to the RADIUS server. |
| 55 |
status: |
| 56 |
type: str |
| 57 |
description: Status. |
| 58 |
choices: ['disable', 'enable'] |
| 59 |
interface: |
| 60 |
type: str |
| 61 |
description: Specify outgoing interface to reach server. |
| 62 |
interface_select_method: |
| 63 |
aliases: ['interface-select-method'] |
| 64 |
type: str |
| 65 |
description: Specify how to select outgoing interface to reach server. |
| 66 |
choices: ['auto', 'sdwan', 'specify'] |
| 67 |
vrf_select: |
| 68 |
aliases: ['vrf-select'] |
| 69 |
type: int |
| 70 |
description: VRF ID used for connection to server. |
| 71 |
acct_all_servers: |
| 72 |
aliases: ['acct-all-servers'] |
| 73 |
type: str |
| 74 |
description: Enable/disable sending of accounting messages to all configured servers |
| 75 |
choices: ['disable', 'enable'] |
| 76 |
acct_interim_interval: |
| 77 |
aliases: ['acct-interim-interval'] |
| 78 |
type: int |
| 79 |
description: Time in seconds between each accounting interim update message. |
| 80 |
all_usergroup: |
| 81 |
aliases: ['all-usergroup'] |
| 82 |
type: str |
| 83 |
description: Enable/disable automatically including this RADIUS server in all user groups. |
| 84 |
choices: ['disable', 'enable'] |
| 85 |
auth_type: |
| 86 |
aliases: ['auth-type'] |
| 87 |
type: str |
| 88 |
description: Authentication methods/protocols permitted for this RADIUS server. |
| 89 |
choices: ['pap', 'chap', 'ms_chap', 'ms_chap_v2', 'auto'] |
| 90 |
class: |
| 91 |
type: raw |
| 92 |
description: (list) Class attribute name |
| 93 |
dynamic_mapping: |
| 94 |
type: list |
| 95 |
elements: dict |
| 96 |
description: Dynamic mapping. |
| 97 |
suboptions: |
| 98 |
_scope: |
| 99 |
type: list |
| 100 |
elements: dict |
| 101 |
description: Scope. |
| 102 |
suboptions: |
| 103 |
name: |
| 104 |
type: str |
| 105 |
description: Name. |
| 106 |
vdom: |
| 107 |
type: str |
| 108 |
description: Vdom. |
| 109 |
acct_all_servers: |
| 110 |
aliases: ['acct-all-servers'] |
| 111 |
type: str |
| 112 |
description: Acct all servers. |
| 113 |
choices: ['disable', 'enable'] |
| 114 |
acct_interim_interval: |
| 115 |
aliases: ['acct-interim-interval'] |
| 116 |
type: int |
| 117 |
description: Acct interim interval. |
| 118 |
all_usergroup: |
| 119 |
aliases: ['all-usergroup'] |
| 120 |
type: str |
| 121 |
description: All usergroup. |
| 122 |
choices: ['disable', 'enable'] |
| 123 |
auth_type: |
| 124 |
aliases: ['auth-type'] |
| 125 |
type: str |
| 126 |
description: Auth type. |
| 127 |
choices: ['pap', 'chap', 'ms_chap', 'ms_chap_v2', 'auto'] |
| 128 |
class: |
| 129 |
type: raw |
| 130 |
description: (list) Class. |
| 131 |
dp_carrier_endpoint_attribute: |
| 132 |
aliases: ['dp-carrier-endpoint-attribute'] |
| 133 |
type: str |
| 134 |
description: Dp carrier endpoint attribute. |
| 135 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 136 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 137 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', |
| 138 |
'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 139 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', |
| 140 |
'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 141 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 142 |
'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', |
| 143 |
'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 144 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', |
| 145 |
'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 146 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', |
| 147 |
'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 148 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', |
| 149 |
'Acct-Session-Time', 'Acct-Input-Packets', |
| 150 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', |
| 151 |
'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', |
| 152 |
'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port'] |
| 153 |
dp_carrier_endpoint_block_attribute: |
| 154 |
aliases: ['dp-carrier-endpoint-block-attribute'] |
| 155 |
type: str |
| 156 |
description: Dp carrier endpoint block attribute. |
| 157 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 158 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 159 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', |
| 160 |
'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 161 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', |
| 162 |
'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 163 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 164 |
'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', |
| 165 |
'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 166 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', |
| 167 |
'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 168 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', |
| 169 |
'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 170 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', |
| 171 |
'Acct-Session-Time', 'Acct-Input-Packets', |
| 172 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', |
| 173 |
'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', |
| 174 |
'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port'] |
| 175 |
dp_context_timeout: |
| 176 |
aliases: ['dp-context-timeout'] |
| 177 |
type: int |
| 178 |
description: Dp context timeout. |
| 179 |
dp_flush_ip_session: |
| 180 |
aliases: ['dp-flush-ip-session'] |
| 181 |
type: str |
| 182 |
description: Dp flush ip session. |
| 183 |
choices: ['disable', 'enable'] |
| 184 |
dp_hold_time: |
| 185 |
aliases: ['dp-hold-time'] |
| 186 |
type: int |
| 187 |
description: Dp hold time. |
| 188 |
dp_http_header: |
| 189 |
aliases: ['dp-http-header'] |
| 190 |
type: str |
| 191 |
description: Dp http header. |
| 192 |
dp_http_header_fallback: |
| 193 |
aliases: ['dp-http-header-fallback'] |
| 194 |
type: str |
| 195 |
description: Dp http header fallback. |
| 196 |
choices: ['ip-header-address', 'default-profile'] |
| 197 |
dp_http_header_status: |
| 198 |
aliases: ['dp-http-header-status'] |
| 199 |
type: str |
| 200 |
description: Dp http header status. |
| 201 |
choices: ['disable', 'enable'] |
| 202 |
dp_http_header_suppress: |
| 203 |
aliases: ['dp-http-header-suppress'] |
| 204 |
type: str |
| 205 |
description: Dp http header suppress. |
| 206 |
choices: ['disable', 'enable'] |
| 207 |
dp_log_dyn_flags: |
| 208 |
aliases: ['dp-log-dyn_flags'] |
| 209 |
type: list |
| 210 |
elements: str |
| 211 |
description: Dp log dyn flags. |
| 212 |
choices: ['none', 'protocol-error', 'profile-missing', 'context-missing', |
| 213 |
'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 214 |
'endpoint-block'] |
| 215 |
dp_log_period: |
| 216 |
aliases: ['dp-log-period'] |
| 217 |
type: int |
| 218 |
description: Dp log period. |
| 219 |
dp_mem_percent: |
| 220 |
aliases: ['dp-mem-percent'] |
| 221 |
type: int |
| 222 |
description: Dp mem percent. |
| 223 |
dp_profile_attribute: |
| 224 |
aliases: ['dp-profile-attribute'] |
| 225 |
type: str |
| 226 |
description: Dp profile attribute. |
| 227 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 228 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 229 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', |
| 230 |
'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 231 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', |
| 232 |
'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 233 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 234 |
'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', |
| 235 |
'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 236 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', |
| 237 |
'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 238 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', |
| 239 |
'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 240 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', |
| 241 |
'Acct-Session-Time', 'Acct-Input-Packets', |
| 242 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', |
| 243 |
'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', |
| 244 |
'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port'] |
| 245 |
dp_profile_attribute_key: |
| 246 |
aliases: ['dp-profile-attribute-key'] |
| 247 |
type: str |
| 248 |
description: Dp profile attribute key. |
| 249 |
dp_radius_response: |
| 250 |
aliases: ['dp-radius-response'] |
| 251 |
type: str |
| 252 |
description: Dp radius response. |
| 253 |
choices: ['disable', 'enable'] |
| 254 |
dp_radius_server_port: |
| 255 |
aliases: ['dp-radius-server-port'] |
| 256 |
type: int |
| 257 |
description: Dp radius server port. |
| 258 |
dp_secret: |
| 259 |
aliases: ['dp-secret'] |
| 260 |
type: raw |
| 261 |
description: (list) Dp secret. |
| 262 |
dp_validate_request_secret: |
| 263 |
aliases: ['dp-validate-request-secret'] |
| 264 |
type: str |
| 265 |
description: Dp validate request secret. |
| 266 |
choices: ['disable', 'enable'] |
| 267 |
dynamic_profile: |
| 268 |
aliases: ['dynamic-profile'] |
| 269 |
type: str |
| 270 |
description: Dynamic profile. |
| 271 |
choices: ['disable', 'enable'] |
| 272 |
endpoint_translation: |
| 273 |
aliases: ['endpoint-translation'] |
| 274 |
type: str |
| 275 |
description: Endpoint translation. |
| 276 |
choices: ['disable', 'enable'] |
| 277 |
ep_carrier_endpoint_convert_hex: |
| 278 |
aliases: ['ep-carrier-endpoint-convert-hex'] |
| 279 |
type: str |
| 280 |
description: Ep carrier endpoint convert hex. |
| 281 |
choices: ['disable', 'enable'] |
| 282 |
ep_carrier_endpoint_header: |
| 283 |
aliases: ['ep-carrier-endpoint-header'] |
| 284 |
type: str |
| 285 |
description: Ep carrier endpoint header. |
| 286 |
ep_carrier_endpoint_header_suppress: |
| 287 |
aliases: ['ep-carrier-endpoint-header-suppress'] |
| 288 |
type: str |
| 289 |
description: Ep carrier endpoint header suppress. |
| 290 |
choices: ['disable', 'enable'] |
| 291 |
ep_carrier_endpoint_prefix: |
| 292 |
aliases: ['ep-carrier-endpoint-prefix'] |
| 293 |
type: str |
| 294 |
description: Ep carrier endpoint prefix. |
| 295 |
choices: ['disable', 'enable'] |
| 296 |
ep_carrier_endpoint_prefix_range_max: |
| 297 |
aliases: ['ep-carrier-endpoint-prefix-range-max'] |
| 298 |
type: int |
| 299 |
description: Ep carrier endpoint prefix range max. |
| 300 |
ep_carrier_endpoint_prefix_range_min: |
| 301 |
aliases: ['ep-carrier-endpoint-prefix-range-min'] |
| 302 |
type: int |
| 303 |
description: Ep carrier endpoint prefix range min. |
| 304 |
ep_carrier_endpoint_prefix_string: |
| 305 |
aliases: ['ep-carrier-endpoint-prefix-string'] |
| 306 |
type: str |
| 307 |
description: Ep carrier endpoint prefix string. |
| 308 |
ep_carrier_endpoint_source: |
| 309 |
aliases: ['ep-carrier-endpoint-source'] |
| 310 |
type: str |
| 311 |
description: Ep carrier endpoint source. |
| 312 |
choices: ['http-header', 'cookie'] |
| 313 |
ep_ip_header: |
| 314 |
aliases: ['ep-ip-header'] |
| 315 |
type: str |
| 316 |
description: Ep ip header. |
| 317 |
ep_ip_header_suppress: |
| 318 |
aliases: ['ep-ip-header-suppress'] |
| 319 |
type: str |
| 320 |
description: Ep ip header suppress. |
| 321 |
choices: ['disable', 'enable'] |
| 322 |
ep_missing_header_fallback: |
| 323 |
aliases: ['ep-missing-header-fallback'] |
| 324 |
type: str |
| 325 |
description: Ep missing header fallback. |
| 326 |
choices: ['session-ip', 'policy-profile'] |
| 327 |
ep_profile_query_type: |
| 328 |
aliases: ['ep-profile-query-type'] |
| 329 |
type: str |
| 330 |
description: Ep profile query type. |
| 331 |
choices: ['session-ip', 'extract-ip', 'extract-carrier-endpoint'] |
| 332 |
h3c_compatibility: |
| 333 |
aliases: ['h3c-compatibility'] |
| 334 |
type: str |
| 335 |
description: H3c compatibility. |
| 336 |
choices: ['disable', 'enable'] |
| 337 |
nas_ip: |
| 338 |
aliases: ['nas-ip'] |
| 339 |
type: str |
| 340 |
description: Nas ip. |
| 341 |
password_encoding: |
| 342 |
aliases: ['password-encoding'] |
| 343 |
type: str |
| 344 |
description: Password encoding. |
| 345 |
choices: ['ISO-8859-1', 'auto'] |
| 346 |
password_renewal: |
| 347 |
aliases: ['password-renewal'] |
| 348 |
type: str |
| 349 |
description: Password renewal. |
| 350 |
choices: ['disable', 'enable'] |
| 351 |
radius_coa: |
| 352 |
aliases: ['radius-coa'] |
| 353 |
type: str |
| 354 |
description: Radius coa. |
| 355 |
choices: ['disable', 'enable'] |
| 356 |
radius_port: |
| 357 |
aliases: ['radius-port'] |
| 358 |
type: int |
| 359 |
description: Radius port. |
| 360 |
rsso: |
| 361 |
type: str |
| 362 |
description: Rsso. |
| 363 |
choices: ['disable', 'enable'] |
| 364 |
rsso_context_timeout: |
| 365 |
aliases: ['rsso-context-timeout'] |
| 366 |
type: int |
| 367 |
description: Rsso context timeout. |
| 368 |
rsso_endpoint_attribute: |
| 369 |
aliases: ['rsso-endpoint-attribute'] |
| 370 |
type: str |
| 371 |
description: Rsso endpoint attribute. |
| 372 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 373 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 374 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', |
| 375 |
'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 376 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', |
| 377 |
'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 378 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 379 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 380 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 381 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 382 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 383 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', |
| 384 |
'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 385 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', |
| 386 |
'Acct-Session-Time', 'Acct-Input-Packets', |
| 387 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', |
| 388 |
'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', |
| 389 |
'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port'] |
| 390 |
rsso_endpoint_block_attribute: |
| 391 |
aliases: ['rsso-endpoint-block-attribute'] |
| 392 |
type: str |
| 393 |
description: Rsso endpoint block attribute. |
| 394 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 395 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 396 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', |
| 397 |
'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 398 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', |
| 399 |
'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 400 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 401 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 402 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 403 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 404 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 405 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', |
| 406 |
'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 407 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', |
| 408 |
'Acct-Session-Time', 'Acct-Input-Packets', |
| 409 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', |
| 410 |
'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', |
| 411 |
'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port'] |
| 412 |
rsso_ep_one_ip_only: |
| 413 |
aliases: ['rsso-ep-one-ip-only'] |
| 414 |
type: str |
| 415 |
description: Rsso ep one ip only. |
| 416 |
choices: ['disable', 'enable'] |
| 417 |
rsso_flush_ip_session: |
| 418 |
aliases: ['rsso-flush-ip-session'] |
| 419 |
type: str |
| 420 |
description: Rsso flush ip session. |
| 421 |
choices: ['disable', 'enable'] |
| 422 |
rsso_log_flags: |
| 423 |
aliases: ['rsso-log-flags'] |
| 424 |
type: list |
| 425 |
elements: str |
| 426 |
description: Rsso log flags. |
| 427 |
choices: ['none', 'protocol-error', 'profile-missing', 'context-missing', |
| 428 |
'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 429 |
'endpoint-block'] |
| 430 |
rsso_log_period: |
| 431 |
aliases: ['rsso-log-period'] |
| 432 |
type: int |
| 433 |
description: Rsso log period. |
| 434 |
rsso_radius_response: |
| 435 |
aliases: ['rsso-radius-response'] |
| 436 |
type: str |
| 437 |
description: Rsso radius response. |
| 438 |
choices: ['disable', 'enable'] |
| 439 |
rsso_radius_server_port: |
| 440 |
aliases: ['rsso-radius-server-port'] |
| 441 |
type: int |
| 442 |
description: Rsso radius server port. |
| 443 |
rsso_secret: |
| 444 |
aliases: ['rsso-secret'] |
| 445 |
type: raw |
| 446 |
description: (list) Rsso secret. |
| 447 |
rsso_validate_request_secret: |
| 448 |
aliases: ['rsso-validate-request-secret'] |
| 449 |
type: str |
| 450 |
description: Rsso validate request secret. |
| 451 |
choices: ['disable', 'enable'] |
| 452 |
secondary_secret: |
| 453 |
aliases: ['secondary-secret'] |
| 454 |
type: raw |
| 455 |
description: (list) Secondary secret. |
| 456 |
secondary_server: |
| 457 |
aliases: ['secondary-server'] |
| 458 |
type: str |
| 459 |
description: Secondary server. |
| 460 |
secret: |
| 461 |
type: raw |
| 462 |
description: (list) Secret. |
| 463 |
server: |
| 464 |
type: str |
| 465 |
description: Server. |
| 466 |
source_ip: |
| 467 |
aliases: ['source-ip'] |
| 468 |
type: str |
| 469 |
description: Source ip. |
| 470 |
sso_attribute: |
| 471 |
aliases: ['sso-attribute'] |
| 472 |
type: str |
| 473 |
description: Sso attribute. |
| 474 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 475 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 476 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', |
| 477 |
'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 478 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', |
| 479 |
'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 480 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 481 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 482 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 483 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 484 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 485 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', |
| 486 |
'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 487 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', |
| 488 |
'Acct-Session-Time', 'Acct-Input-Packets', |
| 489 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', |
| 490 |
'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', |
| 491 |
'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port'] |
| 492 |
sso_attribute_key: |
| 493 |
aliases: ['sso-attribute-key'] |
| 494 |
type: str |
| 495 |
description: Sso attribute key. |
| 496 |
sso_attribute_value_override: |
| 497 |
aliases: ['sso-attribute-value-override'] |
| 498 |
type: str |
| 499 |
description: Sso attribute value override. |
| 500 |
choices: ['disable', 'enable'] |
| 501 |
tertiary_secret: |
| 502 |
aliases: ['tertiary-secret'] |
| 503 |
type: raw |
| 504 |
description: (list) Tertiary secret. |
| 505 |
tertiary_server: |
| 506 |
aliases: ['tertiary-server'] |
| 507 |
type: str |
| 508 |
description: Tertiary server. |
| 509 |
timeout: |
| 510 |
type: int |
| 511 |
description: Timeout. |
| 512 |
use_group_for_profile: |
| 513 |
aliases: ['use-group-for-profile'] |
| 514 |
type: str |
| 515 |
description: Use group for profile. |
| 516 |
choices: ['disable', 'enable'] |
| 517 |
use_management_vdom: |
| 518 |
aliases: ['use-management-vdom'] |
| 519 |
type: str |
| 520 |
description: Use management vdom. |
| 521 |
choices: ['disable', 'enable'] |
| 522 |
username_case_sensitive: |
| 523 |
aliases: ['username-case-sensitive'] |
| 524 |
type: str |
| 525 |
description: Username case sensitive. |
| 526 |
choices: ['disable', 'enable'] |
| 527 |
interface: |
| 528 |
type: str |
| 529 |
description: Interface. |
| 530 |
interface_select_method: |
| 531 |
aliases: ['interface-select-method'] |
| 532 |
type: str |
| 533 |
description: Interface select method. |
| 534 |
choices: ['auto', 'sdwan', 'specify'] |
| 535 |
group_override_attr_type: |
| 536 |
aliases: ['group-override-attr-type'] |
| 537 |
type: str |
| 538 |
description: Group override attr type. |
| 539 |
choices: ['filter-Id', 'class'] |
| 540 |
switch_controller_acct_fast_framedip_detect: |
| 541 |
aliases: ['switch-controller-acct-fast-framedip-detect'] |
| 542 |
type: int |
| 543 |
description: Switch controller acct fast framedip detect. |
| 544 |
accounting_server: |
| 545 |
aliases: ['accounting-server'] |
| 546 |
type: list |
| 547 |
elements: dict |
| 548 |
description: Accounting server. |
| 549 |
suboptions: |
| 550 |
id: |
| 551 |
type: int |
| 552 |
description: Id. |
| 553 |
interface: |
| 554 |
type: str |
| 555 |
description: Interface. |
| 556 |
interface_select_method: |
| 557 |
aliases: ['interface-select-method'] |
| 558 |
type: str |
| 559 |
description: Interface select method. |
| 560 |
choices: ['auto', 'sdwan', 'specify'] |
| 561 |
port: |
| 562 |
type: int |
| 563 |
description: Port. |
| 564 |
secret: |
| 565 |
type: raw |
| 566 |
description: (list) Secret. |
| 567 |
server: |
| 568 |
type: str |
| 569 |
description: Server. |
| 570 |
source_ip: |
| 571 |
aliases: ['source-ip'] |
| 572 |
type: str |
| 573 |
description: Source ip. |
| 574 |
status: |
| 575 |
type: str |
| 576 |
description: Status. |
| 577 |
choices: ['disable', 'enable'] |
| 578 |
vrf_select: |
| 579 |
aliases: ['vrf-select'] |
| 580 |
type: int |
| 581 |
description: VRF ID used for connection to server. |
| 582 |
switch_controller_service_type: |
| 583 |
aliases: ['switch-controller-service-type'] |
| 584 |
type: list |
| 585 |
elements: str |
| 586 |
description: Switch controller service type. |
| 587 |
choices: ['login', 'framed', 'callback-login', 'callback-framed', |
| 588 |
'outbound', 'administrative', 'nas-prompt', 'authenticate-only', |
| 589 |
'callback-nas-prompt', 'call-check', 'callback-administrative'] |
| 590 |
delimiter: |
| 591 |
type: str |
| 592 |
description: Configure delimiter to be used for separating profile group names in the SSO attribute |
| 593 |
choices: ['plus', 'comma'] |
| 594 |
mac_case: |
| 595 |
aliases: ['mac-case'] |
| 596 |
type: str |
| 597 |
description: MAC authentication case |
| 598 |
choices: ['uppercase', 'lowercase'] |
| 599 |
mac_password_delimiter: |
| 600 |
aliases: ['mac-password-delimiter'] |
| 601 |
type: str |
| 602 |
description: MAC authentication password delimiter |
| 603 |
choices: ['hyphen', 'single-hyphen', 'colon', 'none'] |
| 604 |
mac_username_delimiter: |
| 605 |
aliases: ['mac-username-delimiter'] |
| 606 |
type: str |
| 607 |
description: MAC authentication username delimiter |
| 608 |
choices: ['hyphen', 'single-hyphen', 'colon', 'none'] |
| 609 |
nas_id: |
| 610 |
aliases: ['nas-id'] |
| 611 |
type: str |
| 612 |
description: Custom NAS identifier. |
| 613 |
nas_id_type: |
| 614 |
aliases: ['nas-id-type'] |
| 615 |
type: str |
| 616 |
description: NAS identifier type configuration |
| 617 |
choices: ['legacy', 'custom', 'hostname'] |
| 618 |
ca_cert: |
| 619 |
aliases: ['ca-cert'] |
| 620 |
type: str |
| 621 |
description: CA of server to trust under TLS. |
| 622 |
client_cert: |
| 623 |
aliases: ['client-cert'] |
| 624 |
type: str |
| 625 |
description: Client certificate to use under TLS. |
| 626 |
server_identity_check: |
| 627 |
aliases: ['server-identity-check'] |
| 628 |
type: str |
| 629 |
description: Enable/disable RADIUS server identity check |
| 630 |
choices: ['disable', 'enable'] |
| 631 |
status_ttl: |
| 632 |
aliases: ['status-ttl'] |
| 633 |
type: int |
| 634 |
description: Time for which server reachability is cached so that when a server is unreachable, it will not be retried for at l... |
| 635 |
tls_min_proto_version: |
| 636 |
aliases: ['tls-min-proto-version'] |
| 637 |
type: str |
| 638 |
description: Minimum supported protocol version for TLS connections |
| 639 |
choices: ['default', 'TLSv1', 'TLSv1-1', 'TLSv1-2', 'SSLv3', 'TLSv1-3'] |
| 640 |
transport_protocol: |
| 641 |
aliases: ['transport-protocol'] |
| 642 |
type: str |
| 643 |
description: Transport protocol to be used |
| 644 |
choices: ['udp', 'tcp', 'tls'] |
| 645 |
account_key_cert_field: |
| 646 |
aliases: ['account-key-cert-field'] |
| 647 |
type: str |
| 648 |
description: Define subject identity field in certificate for user access right checking. |
| 649 |
choices: ['othername', 'rfc822name', 'dnsname', 'cn'] |
| 650 |
account_key_processing: |
| 651 |
aliases: ['account-key-processing'] |
| 652 |
type: str |
| 653 |
description: Account key processing operation. |
| 654 |
choices: ['same', 'strip'] |
| 655 |
call_station_id_type: |
| 656 |
aliases: ['call-station-id-type'] |
| 657 |
type: str |
| 658 |
description: Calling & Called station identifier type configuration |
| 659 |
choices: ['legacy', 'IP', 'MAC'] |
| 660 |
switch_controller_nas_ip_dynamic: |
| 661 |
aliases: ['switch-controller-nas-ip-dynamic'] |
| 662 |
type: str |
| 663 |
description: Enable/Disable switch-controller nas-ip dynamic to dynamically set nas-ip. |
| 664 |
choices: ['disable', 'enable'] |
| 665 |
source_ip_interface: |
| 666 |
aliases: ['source-ip-interface'] |
| 667 |
type: raw |
| 668 |
description: (list) Source interface for communication with the RADIUS server. |
| 669 |
require_message_authenticator: |
| 670 |
aliases: ['require-message-authenticator'] |
| 671 |
type: str |
| 672 |
description: Require message authenticator in authentication response. |
| 673 |
choices: ['disable', 'enable'] |
| 674 |
vrf_select: |
| 675 |
aliases: ['vrf-select'] |
| 676 |
type: int |
| 677 |
description: VRF ID used for connection to server. |
| 678 |
h3c_compatibility: |
| 679 |
aliases: ['h3c-compatibility'] |
| 680 |
type: str |
| 681 |
description: Enable/disable compatibility with the H3C, a mechanism that performs security checking for authentication. |
| 682 |
choices: ['disable', 'enable'] |
| 683 |
name: |
| 684 |
type: str |
| 685 |
description: RADIUS server entry name. |
| 686 |
required: true |
| 687 |
nas_ip: |
| 688 |
aliases: ['nas-ip'] |
| 689 |
type: str |
| 690 |
description: IP address used to communicate with the RADIUS server and used as NAS-IP-Address and Called-Station-ID attributes. |
| 691 |
password_encoding: |
| 692 |
aliases: ['password-encoding'] |
| 693 |
type: str |
| 694 |
description: Password encoding. |
| 695 |
choices: ['ISO-8859-1', 'auto'] |
| 696 |
password_renewal: |
| 697 |
aliases: ['password-renewal'] |
| 698 |
type: str |
| 699 |
description: Enable/disable password renewal. |
| 700 |
choices: ['disable', 'enable'] |
| 701 |
radius_coa: |
| 702 |
aliases: ['radius-coa'] |
| 703 |
type: str |
| 704 |
description: Enable to allow a mechanism to change the attributes of an authentication, authorization, and accounting session after it ... |
| 705 |
choices: ['disable', 'enable'] |
| 706 |
radius_port: |
| 707 |
aliases: ['radius-port'] |
| 708 |
type: int |
| 709 |
description: RADIUS service port number. |
| 710 |
rsso: |
| 711 |
type: str |
| 712 |
description: Enable/disable RADIUS based single sign on feature. |
| 713 |
choices: ['disable', 'enable'] |
| 714 |
rsso_context_timeout: |
| 715 |
aliases: ['rsso-context-timeout'] |
| 716 |
type: int |
| 717 |
description: Time in seconds before the logged out user is removed from the user context list of logged on users. |
| 718 |
rsso_endpoint_attribute: |
| 719 |
aliases: ['rsso-endpoint-attribute'] |
| 720 |
type: str |
| 721 |
description: RADIUS attributes used to extract the user end point identifer from the RADIUS Start record. |
| 722 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 723 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 724 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 725 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 726 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 727 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 728 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 729 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 730 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 731 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 732 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 733 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 734 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 735 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 736 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 737 |
'Login-LAT-Port'] |
| 738 |
rsso_endpoint_block_attribute: |
| 739 |
aliases: ['rsso-endpoint-block-attribute'] |
| 740 |
type: str |
| 741 |
description: RADIUS attributes used to block a user. |
| 742 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 743 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 744 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 745 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 746 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 747 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 748 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 749 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 750 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 751 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 752 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 753 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 754 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 755 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 756 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 757 |
'Login-LAT-Port'] |
| 758 |
rsso_ep_one_ip_only: |
| 759 |
aliases: ['rsso-ep-one-ip-only'] |
| 760 |
type: str |
| 761 |
description: Enable/disable the replacement of old IP addresses with new ones for the same endpoint on RADIUS accounting Start messages. |
| 762 |
choices: ['disable', 'enable'] |
| 763 |
rsso_flush_ip_session: |
| 764 |
aliases: ['rsso-flush-ip-session'] |
| 765 |
type: str |
| 766 |
description: Enable/disable flushing user IP sessions on RADIUS accounting Stop messages. |
| 767 |
choices: ['disable', 'enable'] |
| 768 |
rsso_log_flags: |
| 769 |
aliases: ['rsso-log-flags'] |
| 770 |
type: list |
| 771 |
elements: str |
| 772 |
description: Events to log. |
| 773 |
choices: ['none', 'protocol-error', 'profile-missing', 'context-missing', |
| 774 |
'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 775 |
'endpoint-block'] |
| 776 |
rsso_log_period: |
| 777 |
aliases: ['rsso-log-period'] |
| 778 |
type: int |
| 779 |
description: Time interval in seconds that group event log messages will be generated for dynamic profile events. |
| 780 |
rsso_radius_response: |
| 781 |
aliases: ['rsso-radius-response'] |
| 782 |
type: str |
| 783 |
description: Enable/disable sending RADIUS response packets after receiving Start and Stop records. |
| 784 |
choices: ['disable', 'enable'] |
| 785 |
rsso_radius_server_port: |
| 786 |
aliases: ['rsso-radius-server-port'] |
| 787 |
type: int |
| 788 |
description: UDP port to listen on for RADIUS Start and Stop records. |
| 789 |
rsso_secret: |
| 790 |
aliases: ['rsso-secret'] |
| 791 |
type: raw |
| 792 |
description: (list) RADIUS secret used by the RADIUS accounting server. |
| 793 |
rsso_validate_request_secret: |
| 794 |
aliases: ['rsso-validate-request-secret'] |
| 795 |
type: str |
| 796 |
description: Enable/disable validating the RADIUS request shared secret in the Start or End record. |
| 797 |
choices: ['disable', 'enable'] |
| 798 |
secondary_secret: |
| 799 |
aliases: ['secondary-secret'] |
| 800 |
type: raw |
| 801 |
description: (list) Secret key to access the secondary server. |
| 802 |
secondary_server: |
| 803 |
aliases: ['secondary-server'] |
| 804 |
type: str |
| 805 |
description: No description |
| 806 |
secret: |
| 807 |
type: raw |
| 808 |
description: (list) Pre-shared secret key used to access the primary RADIUS server. |
| 809 |
server: |
| 810 |
type: str |
| 811 |
description: Primary RADIUS server CN domain name or IP address. |
| 812 |
source_ip: |
| 813 |
aliases: ['source-ip'] |
| 814 |
type: str |
| 815 |
description: Source IP address for communications to the RADIUS server. |
| 816 |
sso_attribute: |
| 817 |
aliases: ['sso-attribute'] |
| 818 |
type: str |
| 819 |
description: RADIUS attribute that contains the profile group name to be extracted from the RADIUS Start record. |
| 820 |
choices: ['User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', |
| 821 |
'NAS-Port', 'Service-Type', 'Framed-Protocol', 'Framed-IP-Address', |
| 822 |
'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', |
| 823 |
'Framed-Compression', 'Login-IP-Host', 'Login-Service', |
| 824 |
'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', |
| 825 |
'Framed-Route', 'Framed-IPX-Network', 'State', 'Class', |
| 826 |
'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 827 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', |
| 828 |
'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 829 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', |
| 830 |
'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 831 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', |
| 832 |
'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', |
| 833 |
'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', |
| 834 |
'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 835 |
'Login-LAT-Port'] |
| 836 |
sso_attribute_key: |
| 837 |
aliases: ['sso-attribute-key'] |
| 838 |
type: str |
| 839 |
description: Key prefix for SSO group value in the SSO attribute. |
| 840 |
sso_attribute_value_override: |
| 841 |
aliases: ['sso-attribute-value-override'] |
| 842 |
type: str |
| 843 |
description: Enable/disable override old attribute value with new value for the same endpoint. |
| 844 |
choices: ['disable', 'enable'] |
| 845 |
tertiary_secret: |
| 846 |
aliases: ['tertiary-secret'] |
| 847 |
type: raw |
| 848 |
description: (list) Secret key to access the tertiary server. |
| 849 |
tertiary_server: |
| 850 |
aliases: ['tertiary-server'] |
| 851 |
type: str |
| 852 |
description: No description |
| 853 |
timeout: |
| 854 |
type: int |
| 855 |
description: Time in seconds between re-sending authentication requests. |
| 856 |
use_management_vdom: |
| 857 |
aliases: ['use-management-vdom'] |
| 858 |
type: str |
| 859 |
description: Enable/disable using management VDOM to send requests. |
| 860 |
choices: ['disable', 'enable'] |
| 861 |
username_case_sensitive: |
| 862 |
aliases: ['username-case-sensitive'] |
| 863 |
type: str |
| 864 |
description: Enable/disable case sensitive user names. |
| 865 |
choices: ['disable', 'enable'] |
| 866 |
interface: |
| 867 |
type: str |
| 868 |
description: Specify outgoing interface to reach server. |
| 869 |
interface_select_method: |
| 870 |
aliases: ['interface-select-method'] |
| 871 |
type: str |
| 872 |
description: Specify how to select outgoing interface to reach server. |
| 873 |
choices: ['auto', 'sdwan', 'specify'] |
| 874 |
group_override_attr_type: |
| 875 |
aliases: ['group-override-attr-type'] |
| 876 |
type: str |
| 877 |
description: RADIUS attribute type to override user group information. |
| 878 |
choices: ['filter-Id', 'class'] |
| 879 |
switch_controller_acct_fast_framedip_detect: |
| 880 |
aliases: ['switch-controller-acct-fast-framedip-detect'] |
| 881 |
type: int |
| 882 |
description: Switch controller accounting message Framed-IP detection from DHCP snooping |
| 883 |
switch_controller_service_type: |
| 884 |
aliases: ['switch-controller-service-type'] |
| 885 |
type: list |
| 886 |
elements: str |
| 887 |
description: RADIUS service type. |
| 888 |
choices: ['login', 'framed', 'callback-login', 'callback-framed', 'outbound', |
| 889 |
'administrative', 'nas-prompt', 'authenticate-only', |
| 890 |
'callback-nas-prompt', 'call-check', 'callback-administrative'] |
| 891 |
delimiter: |
| 892 |
type: str |
| 893 |
description: Configure delimiter to be used for separating profile group names in the SSO attribute |
| 894 |
choices: ['plus', 'comma'] |
| 895 |
mac_case: |
| 896 |
aliases: ['mac-case'] |
| 897 |
type: str |
| 898 |
description: MAC authentication case |
| 899 |
choices: ['uppercase', 'lowercase'] |
| 900 |
mac_password_delimiter: |
| 901 |
aliases: ['mac-password-delimiter'] |
| 902 |
type: str |
| 903 |
description: MAC authentication password delimiter |
| 904 |
choices: ['hyphen', 'single-hyphen', 'colon', 'none'] |
| 905 |
mac_username_delimiter: |
| 906 |
aliases: ['mac-username-delimiter'] |
| 907 |
type: str |
| 908 |
description: MAC authentication username delimiter |
| 909 |
choices: ['hyphen', 'single-hyphen', 'colon', 'none'] |
| 910 |
nas_id: |
| 911 |
aliases: ['nas-id'] |
| 912 |
type: str |
| 913 |
description: Custom NAS identifier. |
| 914 |
nas_id_type: |
| 915 |
aliases: ['nas-id-type'] |
| 916 |
type: str |
| 917 |
description: NAS identifier type configuration |
| 918 |
choices: ['legacy', 'custom', 'hostname'] |
| 919 |
ca_cert: |
| 920 |
aliases: ['ca-cert'] |
| 921 |
type: str |
| 922 |
description: CA of server to trust under TLS. |
| 923 |
client_cert: |
| 924 |
aliases: ['client-cert'] |
| 925 |
type: str |
| 926 |
description: Client certificate to use under TLS. |
| 927 |
server_identity_check: |
| 928 |
aliases: ['server-identity-check'] |
| 929 |
type: str |
| 930 |
description: Enable/disable RADIUS server identity check |
| 931 |
choices: ['disable', 'enable'] |
| 932 |
status_ttl: |
| 933 |
aliases: ['status-ttl'] |
| 934 |
type: int |
| 935 |
description: Time for which server reachability is cached so that when a server is unreachable, it will not be retried for at least thi... |
| 936 |
tls_min_proto_version: |
| 937 |
aliases: ['tls-min-proto-version'] |
| 938 |
type: str |
| 939 |
description: Minimum supported protocol version for TLS connections |
| 940 |
choices: ['default', 'TLSv1', 'TLSv1-1', 'TLSv1-2', 'SSLv3', 'TLSv1-3'] |
| 941 |
transport_protocol: |
| 942 |
aliases: ['transport-protocol'] |
| 943 |
type: str |
| 944 |
description: Transport protocol to be used |
| 945 |
choices: ['udp', 'tcp', 'tls'] |
| 946 |
account_key_cert_field: |
| 947 |
aliases: ['account-key-cert-field'] |
| 948 |
type: str |
| 949 |
description: Define subject identity field in certificate for user access right checking. |
| 950 |
choices: ['othername', 'rfc822name', 'dnsname', 'cn'] |
| 951 |
account_key_processing: |
| 952 |
aliases: ['account-key-processing'] |
| 953 |
type: str |
| 954 |
description: Account key processing operation. |
| 955 |
choices: ['same', 'strip'] |
| 956 |
call_station_id_type: |
| 957 |
aliases: ['call-station-id-type'] |
| 958 |
type: str |
| 959 |
description: Calling & Called station identifier type configuration |
| 960 |
choices: ['legacy', 'IP', 'MAC'] |
| 961 |
switch_controller_nas_ip_dynamic: |
| 962 |
aliases: ['switch-controller-nas-ip-dynamic'] |
| 963 |
type: str |
| 964 |
description: Enable/Disable switch-controller nas-ip dynamic to dynamically set nas-ip. |
| 965 |
choices: ['disable', 'enable'] |
| 966 |
source_ip_interface: |
| 967 |
aliases: ['source-ip-interface'] |
| 968 |
type: raw |
| 969 |
description: (list) Source interface for communication with the RADIUS server. |
| 970 |
require_message_authenticator: |
| 971 |
aliases: ['require-message-authenticator'] |
| 972 |
type: str |
| 973 |
description: Require message authenticator in authentication response. |
| 974 |
choices: ['disable', 'enable'] |
| 975 |
vrf_select: |
| 976 |
aliases: ['vrf-select'] |
| 977 |
type: int |
| 978 |
description: VRF ID used for connection to server. |
| 979 |
''' |
| 980 |
|
| 981 |
EXAMPLES = ''' |
| 982 |
- name: Example playbook |
| 983 |
hosts: fortimanagers |
| 984 |
gather_facts: false |
| 985 |
connection: httpapi |
| 986 |
vars: |
| 987 |
ansible_httpapi_use_ssl: true |
| 988 |
ansible_httpapi_validate_certs: false |
| 989 |
ansible_httpapi_port: 443 |
| 990 |
tasks: |
| 991 |
- name: Configure RADIUS server entries. |
| 992 |
fortinet.fortimanager.fmgr_user_radius: |
| 993 |
bypass_validation: false |
| 994 |
adom: ansible |
| 995 |
state: present |
| 996 |
user_radius: |
| 997 |
name: ansible-test-radius |
| 998 |
server: ansible |
| 999 |
timeout: 200 |
| 1000 |
|
| 1001 |
- name: Gathering fortimanager facts |
| 1002 |
hosts: fortimanagers |
| 1003 |
gather_facts: false |
| 1004 |
connection: httpapi |
| 1005 |
vars: |
| 1006 |
ansible_httpapi_use_ssl: true |
| 1007 |
ansible_httpapi_validate_certs: false |
| 1008 |
ansible_httpapi_port: 443 |
| 1009 |
tasks: |
| 1010 |
- name: Retrieve all the RADIUS server entries |
| 1011 |
fortinet.fortimanager.fmgr_fact: |
| 1012 |
facts: |
| 1013 |
selector: "user_radius" |
| 1014 |
params: |
| 1015 |
adom: "ansible" |
| 1016 |
radius: "your_value" |
| 1017 |
''' |
| 1018 |
|
| 1019 |
RETURN = ''' |
| 1020 |
meta: |
| 1021 |
description: The result of the request. |
| 1022 |
type: dict |
| 1023 |
returned: always |
| 1024 |
contains: |
| 1025 |
request_url: |
| 1026 |
description: The full url requested. |
| 1027 |
returned: always |
| 1028 |
type: str |
| 1029 |
sample: /sys/login/user |
| 1030 |
response_code: |
| 1031 |
description: The status of api request. |
| 1032 |
returned: always |
| 1033 |
type: int |
| 1034 |
sample: 0 |
| 1035 |
response_data: |
| 1036 |
description: The api response. |
| 1037 |
type: list |
| 1038 |
returned: always |
| 1039 |
response_message: |
| 1040 |
description: The descriptive message of the api response. |
| 1041 |
type: str |
| 1042 |
returned: always |
| 1043 |
sample: OK. |
| 1044 |
system_information: |
| 1045 |
description: The information of the target system. |
| 1046 |
type: dict |
| 1047 |
returned: always |
| 1048 |
rc: |
| 1049 |
description: The status the request. |
| 1050 |
type: int |
| 1051 |
returned: always |
| 1052 |
sample: 0 |
| 1053 |
version_check_warning: |
| 1054 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 1055 |
type: list |
| 1056 |
returned: complex |
| 1057 |
''' |
| 1058 |
from ansible.module_utils.basic import AnsibleModule |
| 1059 |
from ansible.module_utils.connection import Connection |
| 1060 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 1061 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 1062 |
|
| 1063 |
|
| 1064 |
def main(): |
| 1065 |
urls_list = [ |
| 1066 |
'/pm/config/adom/{adom}/obj/user/radius', |
| 1067 |
'/pm/config/global/obj/user/radius' |
| 1068 |
] |
| 1069 |
module_arg_spec = { |
| 1070 |
'adom': {'required': True, 'type': 'str'}, |
| 1071 |
'revision_note': {'type': 'str'}, |
| 1072 |
'user_radius': { |
| 1073 |
'type': 'dict', 'v_range': [['6.0.0', '']], |
| 1074 |
'options': { |
| 1075 |
'accounting-server': { |
| 1076 |
'type': 'list', |
| 1077 |
'options': { |
| 1078 |
'id': {'type': 'int'}, |
| 1079 |
'port': {'type': 'int'}, |
| 1080 |
'secret': {'no_log': True, 'type': 'raw'}, |
| 1081 |
'server': {'type': 'str'}, |
| 1082 |
'source-ip': {'type': 'str'}, |
| 1083 |
'status': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1084 |
'interface': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'type': 'str'}, |
| 1085 |
'interface-select-method': { |
| 1086 |
'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], |
| 1087 |
'choices': ['auto', 'sdwan', 'specify'], |
| 1088 |
'type': 'str' |
| 1089 |
}, |
| 1090 |
'vrf-select': {'v_range': [['7.6.2', '']], 'type': 'int'} |
| 1091 |
}, |
| 1092 |
'elements': 'dict' |
| 1093 |
}, |
| 1094 |
'acct-all-servers': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1095 |
'acct-interim-interval': {'type': 'int'}, |
| 1096 |
'all-usergroup': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1097 |
'auth-type': {'choices': ['pap', 'chap', 'ms_chap', 'ms_chap_v2', 'auto'], 'type': 'str'}, |
| 1098 |
'class': {'type': 'raw'}, |
| 1099 |
'dynamic_mapping': { |
| 1100 |
'type': 'list', |
| 1101 |
'options': { |
| 1102 |
'_scope': {'type': 'list', 'options': {'name': {'type': 'str'}, 'vdom': {'type': 'str'}}, 'elements': 'dict'}, |
| 1103 |
'acct-all-servers': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1104 |
'acct-interim-interval': {'type': 'int'}, |
| 1105 |
'all-usergroup': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1106 |
'auth-type': {'choices': ['pap', 'chap', 'ms_chap', 'ms_chap_v2', 'auto'], 'type': 'str'}, |
| 1107 |
'class': {'type': 'raw'}, |
| 1108 |
'dp-carrier-endpoint-attribute': { |
| 1109 |
'choices': [ |
| 1110 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1111 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 1112 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', |
| 1113 |
'Framed-IPX-Network', 'State', 'Class', 'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 1114 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 1115 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', |
| 1116 |
'Acct-Delay-Time', 'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', |
| 1117 |
'Acct-Input-Packets', 'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', |
| 1118 |
'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port' |
| 1119 |
], |
| 1120 |
'type': 'str' |
| 1121 |
}, |
| 1122 |
'dp-carrier-endpoint-block-attribute': { |
| 1123 |
'choices': [ |
| 1124 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1125 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 1126 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', |
| 1127 |
'Framed-IPX-Network', 'State', 'Class', 'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 1128 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 1129 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', |
| 1130 |
'Acct-Delay-Time', 'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', |
| 1131 |
'Acct-Input-Packets', 'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', |
| 1132 |
'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port' |
| 1133 |
], |
| 1134 |
'type': 'str' |
| 1135 |
}, |
| 1136 |
'dp-context-timeout': {'type': 'int'}, |
| 1137 |
'dp-flush-ip-session': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1138 |
'dp-hold-time': {'type': 'int'}, |
| 1139 |
'dp-http-header': {'type': 'str'}, |
| 1140 |
'dp-http-header-fallback': {'choices': ['ip-header-address', 'default-profile'], 'type': 'str'}, |
| 1141 |
'dp-http-header-status': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1142 |
'dp-http-header-suppress': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1143 |
'dp-log-dyn_flags': { |
| 1144 |
'type': 'list', |
| 1145 |
'choices': [ |
| 1146 |
'none', 'protocol-error', 'profile-missing', 'context-missing', 'accounting-stop-missed', 'accounting-event', |
| 1147 |
'radiusd-other', 'endpoint-block' |
| 1148 |
], |
| 1149 |
'elements': 'str' |
| 1150 |
}, |
| 1151 |
'dp-log-period': {'type': 'int'}, |
| 1152 |
'dp-mem-percent': {'type': 'int'}, |
| 1153 |
'dp-profile-attribute': { |
| 1154 |
'choices': [ |
| 1155 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1156 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 1157 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', |
| 1158 |
'Framed-IPX-Network', 'State', 'Class', 'Vendor-Specific', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', |
| 1159 |
'Called-Station-Id', 'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', |
| 1160 |
'Login-LAT-Group', 'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', |
| 1161 |
'Acct-Delay-Time', 'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', |
| 1162 |
'Acct-Input-Packets', 'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', |
| 1163 |
'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port' |
| 1164 |
], |
| 1165 |
'type': 'str' |
| 1166 |
}, |
| 1167 |
'dp-profile-attribute-key': {'no_log': True, 'type': 'str'}, |
| 1168 |
'dp-radius-response': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1169 |
'dp-radius-server-port': {'type': 'int'}, |
| 1170 |
'dp-secret': {'no_log': True, 'type': 'raw'}, |
| 1171 |
'dp-validate-request-secret': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1172 |
'dynamic-profile': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1173 |
'endpoint-translation': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1174 |
'ep-carrier-endpoint-convert-hex': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1175 |
'ep-carrier-endpoint-header': {'type': 'str'}, |
| 1176 |
'ep-carrier-endpoint-header-suppress': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1177 |
'ep-carrier-endpoint-prefix': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1178 |
'ep-carrier-endpoint-prefix-range-max': {'type': 'int'}, |
| 1179 |
'ep-carrier-endpoint-prefix-range-min': {'type': 'int'}, |
| 1180 |
'ep-carrier-endpoint-prefix-string': {'type': 'str'}, |
| 1181 |
'ep-carrier-endpoint-source': {'choices': ['http-header', 'cookie'], 'type': 'str'}, |
| 1182 |
'ep-ip-header': {'type': 'str'}, |
| 1183 |
'ep-ip-header-suppress': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1184 |
'ep-missing-header-fallback': {'choices': ['session-ip', 'policy-profile'], 'type': 'str'}, |
| 1185 |
'ep-profile-query-type': {'choices': ['session-ip', 'extract-ip', 'extract-carrier-endpoint'], 'type': 'str'}, |
| 1186 |
'h3c-compatibility': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1187 |
'nas-ip': {'type': 'str'}, |
| 1188 |
'password-encoding': {'choices': ['ISO-8859-1', 'auto'], 'type': 'str'}, |
| 1189 |
'password-renewal': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1190 |
'radius-coa': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1191 |
'radius-port': {'type': 'int'}, |
| 1192 |
'rsso': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1193 |
'rsso-context-timeout': {'type': 'int'}, |
| 1194 |
'rsso-endpoint-attribute': { |
| 1195 |
'choices': [ |
| 1196 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1197 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 1198 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', |
| 1199 |
'Framed-IPX-Network', 'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', |
| 1200 |
'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 1201 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 1202 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', |
| 1203 |
'Acct-Input-Packets', 'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', |
| 1204 |
'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port' |
| 1205 |
], |
| 1206 |
'type': 'str' |
| 1207 |
}, |
| 1208 |
'rsso-endpoint-block-attribute': { |
| 1209 |
'choices': [ |
| 1210 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1211 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 1212 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', |
| 1213 |
'Framed-IPX-Network', 'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', |
| 1214 |
'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 1215 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 1216 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', |
| 1217 |
'Acct-Input-Packets', 'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', |
| 1218 |
'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port' |
| 1219 |
], |
| 1220 |
'type': 'str' |
| 1221 |
}, |
| 1222 |
'rsso-ep-one-ip-only': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1223 |
'rsso-flush-ip-session': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1224 |
'rsso-log-flags': { |
| 1225 |
'type': 'list', |
| 1226 |
'choices': [ |
| 1227 |
'none', 'protocol-error', 'profile-missing', 'context-missing', 'accounting-stop-missed', 'accounting-event', |
| 1228 |
'radiusd-other', 'endpoint-block' |
| 1229 |
], |
| 1230 |
'elements': 'str' |
| 1231 |
}, |
| 1232 |
'rsso-log-period': {'type': 'int'}, |
| 1233 |
'rsso-radius-response': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1234 |
'rsso-radius-server-port': {'type': 'int'}, |
| 1235 |
'rsso-secret': {'no_log': True, 'type': 'raw'}, |
| 1236 |
'rsso-validate-request-secret': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1237 |
'secondary-secret': {'no_log': True, 'type': 'raw'}, |
| 1238 |
'secondary-server': {'type': 'str'}, |
| 1239 |
'secret': {'no_log': True, 'type': 'raw'}, |
| 1240 |
'server': {'type': 'str'}, |
| 1241 |
'source-ip': {'type': 'str'}, |
| 1242 |
'sso-attribute': { |
| 1243 |
'choices': [ |
| 1244 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1245 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', |
| 1246 |
'Login-IP-Host', 'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', |
| 1247 |
'Framed-IPX-Network', 'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', |
| 1248 |
'Calling-Station-Id', 'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', |
| 1249 |
'Framed-AppleTalk-Link', 'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', |
| 1250 |
'Acct-Input-Octets', 'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', |
| 1251 |
'Acct-Input-Packets', 'Acct-Output-Packets', 'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', |
| 1252 |
'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', 'Login-LAT-Port' |
| 1253 |
], |
| 1254 |
'type': 'str' |
| 1255 |
}, |
| 1256 |
'sso-attribute-key': {'no_log': True, 'type': 'str'}, |
| 1257 |
'sso-attribute-value-override': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1258 |
'tertiary-secret': {'no_log': True, 'type': 'raw'}, |
| 1259 |
'tertiary-server': {'type': 'str'}, |
| 1260 |
'timeout': {'type': 'int'}, |
| 1261 |
'use-group-for-profile': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1262 |
'use-management-vdom': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1263 |
'username-case-sensitive': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1264 |
'interface': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'type': 'str'}, |
| 1265 |
'interface-select-method': { |
| 1266 |
'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], |
| 1267 |
'choices': ['auto', 'sdwan', 'specify'], |
| 1268 |
'type': 'str' |
| 1269 |
}, |
| 1270 |
'group-override-attr-type': {'v_range': [['6.4.0', '']], 'choices': ['filter-Id', 'class'], 'type': 'str'}, |
| 1271 |
'switch-controller-acct-fast-framedip-detect': {'v_range': [['6.4.0', '']], 'type': 'int'}, |
| 1272 |
'accounting-server': { |
| 1273 |
'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], |
| 1274 |
'type': 'list', |
| 1275 |
'options': { |
| 1276 |
'id': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'}, |
| 1277 |
'interface': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'}, |
| 1278 |
'interface-select-method': { |
| 1279 |
'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], |
| 1280 |
'choices': ['auto', 'sdwan', 'specify'], |
| 1281 |
'type': 'str' |
| 1282 |
}, |
| 1283 |
'port': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'}, |
| 1284 |
'secret': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'no_log': True, 'type': 'raw'}, |
| 1285 |
'server': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'}, |
| 1286 |
'source-ip': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'}, |
| 1287 |
'status': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1288 |
'vrf-select': {'v_range': [['7.6.2', '']], 'type': 'int'} |
| 1289 |
}, |
| 1290 |
'elements': 'dict' |
| 1291 |
}, |
| 1292 |
'switch-controller-service-type': { |
| 1293 |
'v_range': [['6.4.2', '']], |
| 1294 |
'type': 'list', |
| 1295 |
'choices': [ |
| 1296 |
'login', 'framed', 'callback-login', 'callback-framed', 'outbound', 'administrative', 'nas-prompt', 'authenticate-only', |
| 1297 |
'callback-nas-prompt', 'call-check', 'callback-administrative' |
| 1298 |
], |
| 1299 |
'elements': 'str' |
| 1300 |
}, |
| 1301 |
'delimiter': {'v_range': [['7.2.0', '']], 'choices': ['plus', 'comma'], 'type': 'str'}, |
| 1302 |
'mac-case': {'v_range': [['7.2.1', '']], 'choices': ['uppercase', 'lowercase'], 'type': 'str'}, |
| 1303 |
'mac-password-delimiter': {'v_range': [['7.2.1', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'}, |
| 1304 |
'mac-username-delimiter': {'v_range': [['7.2.1', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'}, |
| 1305 |
'nas-id': {'v_range': [['7.2.2', '']], 'type': 'str'}, |
| 1306 |
'nas-id-type': {'v_range': [['7.2.2', '']], 'choices': ['legacy', 'custom', 'hostname'], 'type': 'str'}, |
| 1307 |
'ca-cert': {'v_range': [['7.4.0', '']], 'type': 'str'}, |
| 1308 |
'client-cert': {'v_range': [['7.4.0', '']], 'type': 'str'}, |
| 1309 |
'server-identity-check': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1310 |
'status-ttl': {'v_range': [['7.4.0', '']], 'type': 'int'}, |
| 1311 |
'tls-min-proto-version': { |
| 1312 |
'v_range': [['7.4.0', '']], |
| 1313 |
'choices': ['default', 'TLSv1', 'TLSv1-1', 'TLSv1-2', 'SSLv3', 'TLSv1-3'], |
| 1314 |
'type': 'str' |
| 1315 |
}, |
| 1316 |
'transport-protocol': {'v_range': [['7.4.0', '']], 'choices': ['udp', 'tcp', 'tls'], 'type': 'str'}, |
| 1317 |
'account-key-cert-field': {'v_range': [['7.4.1', '']], 'choices': ['othername', 'rfc822name', 'dnsname', 'cn'], 'type': 'str'}, |
| 1318 |
'account-key-processing': {'v_range': [['7.4.1', '']], 'choices': ['same', 'strip'], 'type': 'str'}, |
| 1319 |
'call-station-id-type': {'v_range': [['7.4.1', '']], 'choices': ['legacy', 'IP', 'MAC'], 'type': 'str'}, |
| 1320 |
'switch-controller-nas-ip-dynamic': { |
| 1321 |
'v_range': [['7.2.6', '7.2.12'], ['7.4.2', '']], |
| 1322 |
'choices': ['disable', 'enable'], |
| 1323 |
'type': 'str' |
| 1324 |
}, |
| 1325 |
'source-ip-interface': {'v_range': [['7.6.0', '']], 'type': 'raw'}, |
| 1326 |
'require-message-authenticator': { |
| 1327 |
'v_range': [['7.2.10', '7.2.12'], ['7.4.6', '7.4.10'], ['7.6.2', '']], |
| 1328 |
'choices': ['disable', 'enable'], |
| 1329 |
'type': 'str' |
| 1330 |
}, |
| 1331 |
'vrf-select': {'v_range': [['7.6.2', '']], 'type': 'int'} |
| 1332 |
}, |
| 1333 |
'elements': 'dict' |
| 1334 |
}, |
| 1335 |
'h3c-compatibility': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1336 |
'name': {'required': True, 'type': 'str'}, |
| 1337 |
'nas-ip': {'type': 'str'}, |
| 1338 |
'password-encoding': {'choices': ['ISO-8859-1', 'auto'], 'type': 'str'}, |
| 1339 |
'password-renewal': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1340 |
'radius-coa': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1341 |
'radius-port': {'type': 'int'}, |
| 1342 |
'rsso': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1343 |
'rsso-context-timeout': {'type': 'int'}, |
| 1344 |
'rsso-endpoint-attribute': { |
| 1345 |
'choices': [ |
| 1346 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1347 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 1348 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 1349 |
'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 1350 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 1351 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 1352 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', 'Acct-Output-Packets', |
| 1353 |
'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 1354 |
'Login-LAT-Port' |
| 1355 |
], |
| 1356 |
'type': 'str' |
| 1357 |
}, |
| 1358 |
'rsso-endpoint-block-attribute': { |
| 1359 |
'choices': [ |
| 1360 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1361 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 1362 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 1363 |
'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 1364 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 1365 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 1366 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', 'Acct-Output-Packets', |
| 1367 |
'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 1368 |
'Login-LAT-Port' |
| 1369 |
], |
| 1370 |
'type': 'str' |
| 1371 |
}, |
| 1372 |
'rsso-ep-one-ip-only': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1373 |
'rsso-flush-ip-session': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1374 |
'rsso-log-flags': { |
| 1375 |
'type': 'list', |
| 1376 |
'choices': [ |
| 1377 |
'none', 'protocol-error', 'profile-missing', 'context-missing', 'accounting-stop-missed', 'accounting-event', 'radiusd-other', |
| 1378 |
'endpoint-block' |
| 1379 |
], |
| 1380 |
'elements': 'str' |
| 1381 |
}, |
| 1382 |
'rsso-log-period': {'type': 'int'}, |
| 1383 |
'rsso-radius-response': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1384 |
'rsso-radius-server-port': {'type': 'int'}, |
| 1385 |
'rsso-secret': {'no_log': True, 'type': 'raw'}, |
| 1386 |
'rsso-validate-request-secret': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1387 |
'secondary-secret': {'no_log': True, 'type': 'raw'}, |
| 1388 |
'secondary-server': {'type': 'str'}, |
| 1389 |
'secret': {'no_log': True, 'type': 'raw'}, |
| 1390 |
'server': {'type': 'str'}, |
| 1391 |
'source-ip': {'type': 'str'}, |
| 1392 |
'sso-attribute': { |
| 1393 |
'choices': [ |
| 1394 |
'User-Name', 'User-Password', 'CHAP-Password', 'NAS-IP-Address', 'NAS-Port', 'Service-Type', 'Framed-Protocol', |
| 1395 |
'Framed-IP-Address', 'Framed-IP-Netmask', 'Framed-Routing', 'Filter-Id', 'Framed-MTU', 'Framed-Compression', 'Login-IP-Host', |
| 1396 |
'Login-Service', 'Login-TCP-Port', 'Reply-Message', 'Callback-Number', 'Callback-Id', 'Framed-Route', 'Framed-IPX-Network', |
| 1397 |
'State', 'Class', 'Session-Timeout', 'Idle-Timeout', 'Termination-Action', 'Called-Station-Id', 'Calling-Station-Id', |
| 1398 |
'NAS-Identifier', 'Proxy-State', 'Login-LAT-Service', 'Login-LAT-Node', 'Login-LAT-Group', 'Framed-AppleTalk-Link', |
| 1399 |
'Framed-AppleTalk-Network', 'Framed-AppleTalk-Zone', 'Acct-Status-Type', 'Acct-Delay-Time', 'Acct-Input-Octets', |
| 1400 |
'Acct-Output-Octets', 'Acct-Session-Id', 'Acct-Authentic', 'Acct-Session-Time', 'Acct-Input-Packets', 'Acct-Output-Packets', |
| 1401 |
'Acct-Terminate-Cause', 'Acct-Multi-Session-Id', 'Acct-Link-Count', 'CHAP-Challenge', 'NAS-Port-Type', 'Port-Limit', |
| 1402 |
'Login-LAT-Port' |
| 1403 |
], |
| 1404 |
'type': 'str' |
| 1405 |
}, |
| 1406 |
'sso-attribute-key': {'no_log': True, 'type': 'str'}, |
| 1407 |
'sso-attribute-value-override': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1408 |
'tertiary-secret': {'no_log': True, 'type': 'raw'}, |
| 1409 |
'tertiary-server': {'type': 'str'}, |
| 1410 |
'timeout': {'type': 'int'}, |
| 1411 |
'use-management-vdom': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1412 |
'username-case-sensitive': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1413 |
'interface': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'type': 'str'}, |
| 1414 |
'interface-select-method': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'choices': ['auto', 'sdwan', 'specify'], 'type': 'str'}, |
| 1415 |
'group-override-attr-type': {'v_range': [['6.4.0', '']], 'choices': ['filter-Id', 'class'], 'type': 'str'}, |
| 1416 |
'switch-controller-acct-fast-framedip-detect': {'v_range': [['6.4.0', '']], 'type': 'int'}, |
| 1417 |
'switch-controller-service-type': { |
| 1418 |
'v_range': [['6.4.2', '']], |
| 1419 |
'type': 'list', |
| 1420 |
'choices': [ |
| 1421 |
'login', 'framed', 'callback-login', 'callback-framed', 'outbound', 'administrative', 'nas-prompt', 'authenticate-only', |
| 1422 |
'callback-nas-prompt', 'call-check', 'callback-administrative' |
| 1423 |
], |
| 1424 |
'elements': 'str' |
| 1425 |
}, |
| 1426 |
'delimiter': {'v_range': [['7.2.0', '']], 'choices': ['plus', 'comma'], 'type': 'str'}, |
| 1427 |
'mac-case': {'v_range': [['7.2.1', '']], 'choices': ['uppercase', 'lowercase'], 'type': 'str'}, |
| 1428 |
'mac-password-delimiter': {'v_range': [['7.2.1', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'}, |
| 1429 |
'mac-username-delimiter': {'v_range': [['7.2.1', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'}, |
| 1430 |
'nas-id': {'v_range': [['7.2.2', '']], 'type': 'str'}, |
| 1431 |
'nas-id-type': {'v_range': [['7.2.2', '']], 'choices': ['legacy', 'custom', 'hostname'], 'type': 'str'}, |
| 1432 |
'ca-cert': {'v_range': [['7.4.0', '']], 'type': 'str'}, |
| 1433 |
'client-cert': {'v_range': [['7.4.0', '']], 'type': 'str'}, |
| 1434 |
'server-identity-check': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1435 |
'status-ttl': {'v_range': [['7.4.0', '']], 'type': 'int'}, |
| 1436 |
'tls-min-proto-version': { |
| 1437 |
'v_range': [['7.4.0', '']], |
| 1438 |
'choices': ['default', 'TLSv1', 'TLSv1-1', 'TLSv1-2', 'SSLv3', 'TLSv1-3'], |
| 1439 |
'type': 'str' |
| 1440 |
}, |
| 1441 |
'transport-protocol': {'v_range': [['7.4.0', '']], 'choices': ['udp', 'tcp', 'tls'], 'type': 'str'}, |
| 1442 |
'account-key-cert-field': {'v_range': [['7.4.1', '']], 'choices': ['othername', 'rfc822name', 'dnsname', 'cn'], 'type': 'str'}, |
| 1443 |
'account-key-processing': {'v_range': [['7.4.1', '']], 'choices': ['same', 'strip'], 'type': 'str'}, |
| 1444 |
'call-station-id-type': {'v_range': [['7.4.1', '']], 'choices': ['legacy', 'IP', 'MAC'], 'type': 'str'}, |
| 1445 |
'switch-controller-nas-ip-dynamic': {'v_range': [['7.2.6', '7.2.12'], ['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1446 |
'source-ip-interface': {'v_range': [['7.6.0', '']], 'type': 'raw'}, |
| 1447 |
'require-message-authenticator': { |
| 1448 |
'v_range': [['7.2.10', '7.2.12'], ['7.4.6', '7.4.10'], ['7.6.2', '']], |
| 1449 |
'choices': ['disable', 'enable'], |
| 1450 |
'type': 'str' |
| 1451 |
}, |
| 1452 |
'vrf-select': {'v_range': [['7.6.2', '']], 'type': 'int'} |
| 1453 |
} |
| 1454 |
} |
| 1455 |
} |
| 1456 |
|
| 1457 |
module_option_spec = get_module_arg_spec('full crud') |
| 1458 |
module_arg_spec.update(module_option_spec) |
| 1459 |
check_galaxy_version(module_arg_spec) |
| 1460 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'user_radius'), |
| 1461 |
supports_check_mode=True) |
| 1462 |
if not module._socket_path: |
| 1463 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1464 |
connection = Connection(module._socket_path) |
| 1465 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1466 |
'name', 'data', module, connection) |
| 1467 |
fmgr.process_crud() |
| 1468 |
module.exit_json(meta=module.params) |
| 1469 |
|
| 1470 |
|
| 1471 |
if __name__ == '__main__': |
| 1472 |
main() |