.. _dellemc.enterprise_sonic.sonic_mfa_module:
**********************************
dellemc.enterprise_sonic.sonic_mfa
**********************************
**Manage Multi-factor authentication (MFA) configurations on SONiC.**
Version added: 4.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides configuration management of MFA parameters for devices running SONiC.
- Pre-configured host cert is required for MFA security profile, and ca-cert for RSA/CAC-PIV security profiles.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
Specifies MFA configurations.
|
|
cac_piv_global
dictionary
|
|
CAC-PIV Global configuration.
|
|
|
cert_username_field
string
|
Choices:
- common-name
- common-name-or-user-principal-name
- user-principal-name
|
SSH user certificate field for matching with SSH login username.
|
|
|
cert_username_match
string
|
Choices:
- 10digit-username
- first-name
- username-as-is
- username-without-domain
|
Match option to parse the username from respective certificate field.
|
|
|
security_profile
string
|
|
Security profile for SSH access with CAC-PIV.
|
|
mfa_global
dictionary
|
|
MFA Global configuration.
|
|
|
client_secret
string
|
|
Password used in basic authorization header for MFA REST API.
Minimum 32 characters with atleast one symbol, digit, uppercase, and lowercase.
Plain text password i.e. client_secret_encrypted=false will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be changed=true.
|
|
|
client_secret_encrypted
boolean
|
|
Indicates whether client_secret is plain text or encrypted.
|
|
|
key_seed
string
|
|
Seed for generating secure key in MFA service.
Plain text seed i.e. key_seed_encrypted=false will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be changed=true.
|
|
|
key_seed_encrypted
boolean
|
|
Indicates whether key_seed is plain text or encrypted.
|
|
|
security_profile
string
|
|
Security profile contains the certificate for MFA service.
|
|
rsa_global
dictionary
|
|
RSA Global configuration.
|
|
|
security_profile
string
|
|
Security profile with CA-cert for validating RSA SecurID server.
|
|
rsa_servers
list
/ elements=dictionary
|
|
RSA Server configuration.
|
|
|
client_id
string
|
|
Unique identifier of the system as a client of SecurID service, assigned by SecurID service.
|
|
|
client_key
string
|
|
Key associated with the client-id, assigned by SecurID service.
Plain text key i.e. client_key_encrypted=false will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be changed=true.
|
|
|
client_key_encrypted
boolean
|
|
Indicates whether client_key is plain text or encrypted.
|
|
|
connection_timeout
integer
|
|
Timeout in seconds for connection to the SecurID server.
Range 1-30.
|
|
|
hostname
string
/ required
|
|
RSA server's hostname or IP address.
|
|
|
read_timeout
integer
|
|
Timeout in seconds to read from the SecurID server.
Range 1-150.
|
|
|
server_port
integer
|
|
Port number of the RSA SecurID server.
Range 1025-49151.
|
|
state
string
|
Choices:
merged ←
- deleted
- replaced
- overridden
|
The state of the configuration after module completion.
merged - Merges provided MFA configuration with on-device configuration.
replaced - Replaces on-device MFA configuration with provided configuration.
overridden - Overrides all on-device MFA configurations with the provided configuration.
deleted - Deletes on-device MFA configuration.
|