Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_mfa_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_mfa_module:
2
3
4 **********************************
5 dellemc.enterprise_sonic.sonic_mfa
6 **********************************
7
8 **Manage Multi-factor authentication (MFA) configurations on SONiC.**
9
10
11 Version added: 4.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of MFA parameters for devices running SONiC.
21 - Pre-configured host cert is required for MFA security profile, and ca-cert for RSA/CAC-PIV security profiles.
22
23
24
25
26 Parameters
27 ----------
28
29 .. raw:: html
30
31 <table border=0 cellpadding=0 class="documentation-table">
32 <tr>
33 <th colspan="3">Parameter</th>
34 <th>Choices/<font color="blue">Defaults</font></th>
35 <th width="100%">Comments</th>
36 </tr>
37 <tr>
38 <td colspan="3">
39 <div class="ansibleOptionAnchor" id="parameter-"></div>
40 <b>config</b>
41 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
42 <div style="font-size: small">
43 <span style="color: purple">dictionary</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>Specifies MFA configurations.</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="2">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>cac_piv_global</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">dictionary</span>
60 </div>
61 </td>
62 <td>
63 </td>
64 <td>
65 <div>CAC-PIV Global configuration.</div>
66 </td>
67 </tr>
68 <tr>
69 <td class="elbow-placeholder"></td>
70 <td class="elbow-placeholder"></td>
71 <td colspan="1">
72 <div class="ansibleOptionAnchor" id="parameter-"></div>
73 <b>cert_username_field</b>
74 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
75 <div style="font-size: small">
76 <span style="color: purple">string</span>
77 </div>
78 </td>
79 <td>
80 <ul style="margin: 0; padding: 0"><b>Choices:</b>
81 <li>common-name</li>
82 <li>common-name-or-user-principal-name</li>
83 <li>user-principal-name</li>
84 </ul>
85 </td>
86 <td>
87 <div>SSH user certificate field for matching with SSH login username.</div>
88 </td>
89 </tr>
90 <tr>
91 <td class="elbow-placeholder"></td>
92 <td class="elbow-placeholder"></td>
93 <td colspan="1">
94 <div class="ansibleOptionAnchor" id="parameter-"></div>
95 <b>cert_username_match</b>
96 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
97 <div style="font-size: small">
98 <span style="color: purple">string</span>
99 </div>
100 </td>
101 <td>
102 <ul style="margin: 0; padding: 0"><b>Choices:</b>
103 <li>10digit-username</li>
104 <li>first-name</li>
105 <li>username-as-is</li>
106 <li>username-without-domain</li>
107 </ul>
108 </td>
109 <td>
110 <div>Match option to parse the username from respective certificate field.</div>
111 </td>
112 </tr>
113 <tr>
114 <td class="elbow-placeholder"></td>
115 <td class="elbow-placeholder"></td>
116 <td colspan="1">
117 <div class="ansibleOptionAnchor" id="parameter-"></div>
118 <b>security_profile</b>
119 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
120 <div style="font-size: small">
121 <span style="color: purple">string</span>
122 </div>
123 </td>
124 <td>
125 </td>
126 <td>
127 <div>Security profile for SSH access with CAC-PIV.</div>
128 </td>
129 </tr>
130
131 <tr>
132 <td class="elbow-placeholder"></td>
133 <td colspan="2">
134 <div class="ansibleOptionAnchor" id="parameter-"></div>
135 <b>mfa_global</b>
136 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
137 <div style="font-size: small">
138 <span style="color: purple">dictionary</span>
139 </div>
140 </td>
141 <td>
142 </td>
143 <td>
144 <div>MFA Global configuration.</div>
145 </td>
146 </tr>
147 <tr>
148 <td class="elbow-placeholder"></td>
149 <td class="elbow-placeholder"></td>
150 <td colspan="1">
151 <div class="ansibleOptionAnchor" id="parameter-"></div>
152 <b>client_secret</b>
153 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
154 <div style="font-size: small">
155 <span style="color: purple">string</span>
156 </div>
157 </td>
158 <td>
159 </td>
160 <td>
161 <div>Password used in basic authorization header for MFA REST API.</div>
162 <div>Minimum 32 characters with atleast one symbol, digit, uppercase, and lowercase.</div>
163 <div>Plain text password i.e. <em>client_secret_encrypted=false</em> will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be <em>changed=true</em>.</div>
164 </td>
165 </tr>
166 <tr>
167 <td class="elbow-placeholder"></td>
168 <td class="elbow-placeholder"></td>
169 <td colspan="1">
170 <div class="ansibleOptionAnchor" id="parameter-"></div>
171 <b>client_secret_encrypted</b>
172 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
173 <div style="font-size: small">
174 <span style="color: purple">boolean</span>
175 </div>
176 </td>
177 <td>
178 <ul style="margin: 0; padding: 0"><b>Choices:</b>
179 <li>no</li>
180 <li>yes</li>
181 </ul>
182 </td>
183 <td>
184 <div>Indicates whether <em>client_secret</em> is plain text or encrypted.</div>
185 </td>
186 </tr>
187 <tr>
188 <td class="elbow-placeholder"></td>
189 <td class="elbow-placeholder"></td>
190 <td colspan="1">
191 <div class="ansibleOptionAnchor" id="parameter-"></div>
192 <b>key_seed</b>
193 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
194 <div style="font-size: small">
195 <span style="color: purple">string</span>
196 </div>
197 </td>
198 <td>
199 </td>
200 <td>
201 <div>Seed for generating secure key in MFA service.</div>
202 <div>Plain text seed i.e. <em>key_seed_encrypted=false</em> will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be <em>changed=true</em>.</div>
203 </td>
204 </tr>
205 <tr>
206 <td class="elbow-placeholder"></td>
207 <td class="elbow-placeholder"></td>
208 <td colspan="1">
209 <div class="ansibleOptionAnchor" id="parameter-"></div>
210 <b>key_seed_encrypted</b>
211 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
212 <div style="font-size: small">
213 <span style="color: purple">boolean</span>
214 </div>
215 </td>
216 <td>
217 <ul style="margin: 0; padding: 0"><b>Choices:</b>
218 <li>no</li>
219 <li>yes</li>
220 </ul>
221 </td>
222 <td>
223 <div>Indicates whether <em>key_seed</em> is plain text or encrypted.</div>
224 </td>
225 </tr>
226 <tr>
227 <td class="elbow-placeholder"></td>
228 <td class="elbow-placeholder"></td>
229 <td colspan="1">
230 <div class="ansibleOptionAnchor" id="parameter-"></div>
231 <b>security_profile</b>
232 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
233 <div style="font-size: small">
234 <span style="color: purple">string</span>
235 </div>
236 </td>
237 <td>
238 </td>
239 <td>
240 <div>Security profile contains the certificate for MFA service.</div>
241 </td>
242 </tr>
243
244 <tr>
245 <td class="elbow-placeholder"></td>
246 <td colspan="2">
247 <div class="ansibleOptionAnchor" id="parameter-"></div>
248 <b>rsa_global</b>
249 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
250 <div style="font-size: small">
251 <span style="color: purple">dictionary</span>
252 </div>
253 </td>
254 <td>
255 </td>
256 <td>
257 <div>RSA Global configuration.</div>
258 </td>
259 </tr>
260 <tr>
261 <td class="elbow-placeholder"></td>
262 <td class="elbow-placeholder"></td>
263 <td colspan="1">
264 <div class="ansibleOptionAnchor" id="parameter-"></div>
265 <b>security_profile</b>
266 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
267 <div style="font-size: small">
268 <span style="color: purple">string</span>
269 </div>
270 </td>
271 <td>
272 </td>
273 <td>
274 <div>Security profile with CA-cert for validating RSA SecurID server.</div>
275 </td>
276 </tr>
277
278 <tr>
279 <td class="elbow-placeholder"></td>
280 <td colspan="2">
281 <div class="ansibleOptionAnchor" id="parameter-"></div>
282 <b>rsa_servers</b>
283 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
284 <div style="font-size: small">
285 <span style="color: purple">list</span>
286 / <span style="color: purple">elements=dictionary</span>
287 </div>
288 </td>
289 <td>
290 </td>
291 <td>
292 <div>RSA Server configuration.</div>
293 </td>
294 </tr>
295 <tr>
296 <td class="elbow-placeholder"></td>
297 <td class="elbow-placeholder"></td>
298 <td colspan="1">
299 <div class="ansibleOptionAnchor" id="parameter-"></div>
300 <b>client_id</b>
301 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
302 <div style="font-size: small">
303 <span style="color: purple">string</span>
304 </div>
305 </td>
306 <td>
307 </td>
308 <td>
309 <div>Unique identifier of the system as a client of SecurID service, assigned by SecurID service.</div>
310 </td>
311 </tr>
312 <tr>
313 <td class="elbow-placeholder"></td>
314 <td class="elbow-placeholder"></td>
315 <td colspan="1">
316 <div class="ansibleOptionAnchor" id="parameter-"></div>
317 <b>client_key</b>
318 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
319 <div style="font-size: small">
320 <span style="color: purple">string</span>
321 </div>
322 </td>
323 <td>
324 </td>
325 <td>
326 <div>Key associated with the client-id, assigned by SecurID service.</div>
327 <div>Plain text key i.e. <em>client_key_encrypted=false</em> will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be <em>changed=true</em>.</div>
328 </td>
329 </tr>
330 <tr>
331 <td class="elbow-placeholder"></td>
332 <td class="elbow-placeholder"></td>
333 <td colspan="1">
334 <div class="ansibleOptionAnchor" id="parameter-"></div>
335 <b>client_key_encrypted</b>
336 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
337 <div style="font-size: small">
338 <span style="color: purple">boolean</span>
339 </div>
340 </td>
341 <td>
342 <ul style="margin: 0; padding: 0"><b>Choices:</b>
343 <li>no</li>
344 <li>yes</li>
345 </ul>
346 </td>
347 <td>
348 <div>Indicates whether <em>client_key</em> is plain text or encrypted.</div>
349 </td>
350 </tr>
351 <tr>
352 <td class="elbow-placeholder"></td>
353 <td class="elbow-placeholder"></td>
354 <td colspan="1">
355 <div class="ansibleOptionAnchor" id="parameter-"></div>
356 <b>connection_timeout</b>
357 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
358 <div style="font-size: small">
359 <span style="color: purple">integer</span>
360 </div>
361 </td>
362 <td>
363 </td>
364 <td>
365 <div>Timeout in seconds for connection to the SecurID server.</div>
366 <div>Range 1-30.</div>
367 </td>
368 </tr>
369 <tr>
370 <td class="elbow-placeholder"></td>
371 <td class="elbow-placeholder"></td>
372 <td colspan="1">
373 <div class="ansibleOptionAnchor" id="parameter-"></div>
374 <b>hostname</b>
375 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
376 <div style="font-size: small">
377 <span style="color: purple">string</span>
378 / <span style="color: red">required</span>
379 </div>
380 </td>
381 <td>
382 </td>
383 <td>
384 <div>RSA server&#x27;s hostname or IP address.</div>
385 </td>
386 </tr>
387 <tr>
388 <td class="elbow-placeholder"></td>
389 <td class="elbow-placeholder"></td>
390 <td colspan="1">
391 <div class="ansibleOptionAnchor" id="parameter-"></div>
392 <b>read_timeout</b>
393 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
394 <div style="font-size: small">
395 <span style="color: purple">integer</span>
396 </div>
397 </td>
398 <td>
399 </td>
400 <td>
401 <div>Timeout in seconds to read from the SecurID server.</div>
402 <div>Range 1-150.</div>
403 </td>
404 </tr>
405 <tr>
406 <td class="elbow-placeholder"></td>
407 <td class="elbow-placeholder"></td>
408 <td colspan="1">
409 <div class="ansibleOptionAnchor" id="parameter-"></div>
410 <b>server_port</b>
411 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
412 <div style="font-size: small">
413 <span style="color: purple">integer</span>
414 </div>
415 </td>
416 <td>
417 </td>
418 <td>
419 <div>Port number of the RSA SecurID server.</div>
420 <div>Range 1025-49151.</div>
421 </td>
422 </tr>
423
424
425 <tr>
426 <td colspan="3">
427 <div class="ansibleOptionAnchor" id="parameter-"></div>
428 <b>state</b>
429 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
430 <div style="font-size: small">
431 <span style="color: purple">string</span>
432 </div>
433 </td>
434 <td>
435 <ul style="margin: 0; padding: 0"><b>Choices:</b>
436 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
437 <li>deleted</li>
438 <li>replaced</li>
439 <li>overridden</li>
440 </ul>
441 </td>
442 <td>
443 <div>The state of the configuration after module completion.</div>
444 <div><code>merged</code> - Merges provided MFA configuration with on-device configuration.</div>
445 <div><code>replaced</code> - Replaces on-device MFA configuration with provided configuration.</div>
446 <div><code>overridden</code> - Overrides all on-device MFA configurations with the provided configuration.</div>
447 <div><code>deleted</code> - Deletes on-device MFA configuration.</div>
448 </td>
449 </tr>
450 </table>
451 <br/>
452
453
454
455
456 Examples
457 --------
458
459 .. code-block:: yaml
460
461 # Using "deleted" state
462 #
463 # Before state:
464 # -------------
465 #
466 # sonic# show running-configuration mfa
467 # mfa key-seed U2FsdGVkX1/caD7u0ZGRnb981G2DKyML/Gvyfexsurg= encrypted
468 # mfa client-secret U2FsdGVkX1+WlquxtZRbsgQhfS1lQBFbJKflxGAp6S3u+Ox5Hi+O16NmprjMVb3HQn1pNSgaaa0Cz1MHeTfDWhFR0WqdENbLU2PqkiRDHv0iVfl72xNPzhnGeO01kAu0 encrypted
469 # mfa security-profile mSecurityProfile
470 # mfa rsa-server security-profile rSecProfile
471 # mfa rsa-server host rsaserver.che-lab.it port 1030 client-id sonicdevtest.che-lab.it client-key
472 # U2FsdGVkX18QFJoB9dp8GJN92eP79FGOZDLgQakBmAasGYX77p6PtiiAfS/nGoOb2uEocUkryc+BLLYsg+Wz0gO+c1QsIbIhXk5Pt+aECoVgoFQ9QpxO9od9cTik+3Ot encrypted
473 # connection-timeout 29 read-timeout 149
474 #
475 # sonic# show running-configuration | grep "cac-piv"
476 # aaa cac-piv cert-user common-name
477 # aaa cac-piv cert-user-match 10digit-username
478 # aaa cac-piv security-profile cSecurityProfile
479 # sonic#
480
481
482 - name: Delete specified mfa configuration
483 dellemc.enterprise_sonic.sonic_mfa:
484 config:
485 mfa_global:
486 key_seed: 'U2FsdGVkX1/caD7u0ZGRnb981G2DKyML/Gvyfexsurg='
487 key_seed_encrypted: true
488 client_secret: 'U2FsdGVkX1+WlquxtZRbsgQhfS1lQBFbJKflxGAp6S3u+Ox5Hi+O16NmprjMVb3HQn1pNSgaaa0Cz1MHeTfDWhFR0WqdENbLU2PqkiRDHv0iVfl72xNPzhnGeO01kAu0'
489 client_secret_encrypted: true
490 rsa_global:
491 security_profile: 'rSecProfile'
492 rsa_servers:
493 hostname: 'rsaserver.che-lab.it'
494 server_port: 1030
495 client_id: 'sonicdevtest.che-lab.it'
496 client_key: 'U2FsdGVkX18QFJoB9dp8GJN92eP79FGOZDLgQakBmAasGYX77p6PtiiAfS/nGoOb2uEocUkryc+BLLYsg+Wz0gO+c1QsIbIhXk5Pt+aECoVgoFQ9QpxO9od9cTik+3Ot'
497 client_key_encrypted: true
498 connection_timeout: 29
499 read_timeout: 149
500 cac_piv_global:
501 security_profile: 'cSecurityProfile'
502 cert_username_field: 'common-name'
503 state: deleted
504
505
506 # After state:
507 # ------------
508 #
509 # sonic# show running-configuration mfa
510 # mfa security-profile mSecurityProfile
511 #
512 # sonic# show running-configuration | grep "cac-piv"
513 # aaa cac-piv cert-user-match 10digit-username
514 # sonic#
515
516
517 # Using "deleted" state
518 #
519 # Before state:
520 # -------------
521 #
522 # sonic# show running-configuration mfa
523 # mfa key-seed U2FsdGVkX1/caD7u0ZGRnb981G2DKyML/Gvyfexsurg= encrypted
524 # mfa client-secret U2FsdGVkX1+WlquxtZRbsgQhfS1lQBFbJKflxGAp6S3u+Ox5Hi+O16NmprjMVb3HQn1pNSgaaa0Cz1MHeTfDWhFR0WqdENbLU2PqkiRDHv0iVfl72xNPzhnGeO01kAu0 encrypted
525 # mfa security-profile mSecurityProfile
526 # mfa rsa-server security-profile rSecProfile
527 # mfa rsa-server host rsaserver.che-lab.it port 1030 client-id sonicdevtest.che-lab.it client-key
528 # U2FsdGVkX18QFJoB9dp8GJN92eP79FGOZDLgQakBmAasGYX77p6PtiiAfS/nGoOb2uEocUkryc+BLLYsg+Wz0gO+c1QsIbIhXk5Pt+aECoVgoFQ9QpxO9od9cTik+3Ot encrypted
529 # connection-timeout 29 read-timeout 149
530 #
531 # sonic# show running-configuration | grep "cac-piv"
532 # aaa cac-piv cert-user common-name
533 # aaa cac-piv cert-user-match 10digit-username
534 # aaa cac-piv security-profile cSecurityProfile
535 # sonic#
536
537
538 - name: Delete all mfa configurations
539 dellemc.enterprise_sonic.sonic_mfa:
540 config:
541 state: deleted
542
543
544 # After state:
545 # ------------
546 #
547 # sonic# show running-configuration mfa
548 # sonic#
549 #
550 # sonic# show running-configuration | grep "cac-piv"
551 # sonic#
552
553
554 # Using "merged" state
555 #
556 # Before State:
557 # -------------
558 #
559 # sonic# show running-configuration mfa
560 # sonic#
561 #
562 # sonic# show running-configuration | grep "cac-piv"
563 # sonic#
564
565
566 - name: Merge provided MFA configurations
567 dellemc.enterprise_sonic.sonic_mfa:
568 config:
569 mfa_global:
570 security_profile: 'mSecurityProfile'
571 key_seed: 'sonic'
572 key_seed_encrypted: true
573 client_secret: 'U2FsdGVkX18mPdwkM1z24i7lxMtqNZR9p2q3aa6YXR16OfDxQXCR9z9I0lQZpVjE!'
574 client_secret_encrypted: true
575 rsa_global:
576 security_profile: 'rSecProfile'
577 rsa_servers:
578 hostname: 'rsaserver.che-lab.it'
579 server_port: 1030
580 client_id: 'sonicdevtest.che-lab.it'
581 client_key: 'aplr05825jshusp80699scuv62u5l3lu63wxf66b0y883w92677ac0c9m0lwv6o8'
582 client_key_encrypted: true
583 connection_timeout: 29
584 read_timeout: 149
585 cac_piv_global:
586 security_profile: 'cSecurityProfile'
587 cert_username_field: 'user-principal-name'
588 cert_username_match: '10digit-username'
589 state: merged
590
591
592 # After State:
593 # ------------
594 #
595 # sonic# show running-configuration mfa
596 # mfa key-seed U2FsdGVkX1/caD7u0ZGRnb981G2DKyML/Gvyfexsurg= encrypted
597 # mfa client-secret U2FsdGVkX1+WlquxtZRbsgQhfS1lQBFbJKflxGAp6S3u+Ox5Hi+O16NmprjMVb3HQn1pNSgaaa0Cz1MHeTfDWhFR0WqdENbLU2PqkiRDHv0iVfl72xNPzhnGeO01kAu0 encrypted
598 # mfa security-profile mSecurityProfile
599 # mfa rsa-server security-profile rSecProfile
600 # mfa rsa-server host rsaserver.che-lab.it port 1030 client-id sonicdevtest.che-lab.it client-key
601 # U2FsdGVkX18QFJoB9dp8GJN92eP79FGOZDLgQakBmAasGYX77p6PtiiAfS/nGoOb2uEocUkryc+BLLYsg+Wz0gO+c1QsIbIhXk5Pt+aECoVgoFQ9QpxO9od9cTik+3Ot encrypted
602 # connection-timeout 29 read-timeout 149
603 #
604 # sonic# show running-configuration | grep "cac-piv"
605 # aaa cac-piv cert-user user-principal-name
606 # aaa cac-piv cert-user-match 10digit-username
607 # aaa cac-piv security-profile cSecurityProfile
608
609
610 # Using "replaced" state
611 #
612 # Before state:
613 # -------------
614 #
615 # sonic# show running-configuration mfa
616 # mfa key-seed U2FsdGVkX1/caD7u0ZGRnb981G2DKyML/Gvyfexsurg= encrypted
617 # mfa rsa-server host rsaserver.che-lab.it port 1030 client-id sonicdevtest.che-lab.it client-key
618 # U2FsdGVkX1+xnsxfUrqCvBQg0KkPUm11R8Vpn2cXLHCWzL59k3Jm4/OrRiMOemPJccnEa8sMuynOAaySpHkaMOePtpedW0aApp+qicIF2Hz32LR4vB07b7OSx7OaEZBj encrypted
619 # connection-timeout 16 read-timeout 129
620
621
622 - name: Replace specified mfa rsa-server configuration
623 dellemc.enterprise_sonic.sonic_mfa:
624 config:
625 rsa_servers:
626 - hostname: 'rsaserver.che-lab.it'
627 server_port: 1050
628 client_id: 'sonicdevtest.che-lab.it'
629 client_key: 'aplr05825jshusp80699scuv62u5l3lu63wxf66b0y883w92677ac0c9m0lwv6o8'
630 client_key_encrypted: true
631 connection_timeout: 29
632 read_timeout: 149
633 state: replaced
634
635
636 # After state:
637 # ------------
638 #
639 # sonic# show running-configuration mfa
640 # mfa key-seed U2FsdGVkX1/caD7u0ZGRnb981G2DKyML/Gvyfexsurg= encrypted
641 # mfa rsa-server host rsaserver.che-lab.it port 1050 client-id sonicdevtest.che-lab.it client-key
642 # U2FsdGVkX1/b1Tjka6pWv1BjwGd1I8cfjXxBIIJ6ZK/JaZpGgPbNAnw6WmdstRWJz49A+bymj6gJfkGjbzlWQhGCGi4VofPStOdNktqDcIyk33AaDkO+awkzyi7HRxcB encrypted
643 # connection-timeout 29 read-timeout 149
644
645
646 # Using "overridden" state
647 #
648 # Before state:
649 # -------------
650 #
651 # sonic# show running-configuration mfa
652 # mfa key-seed U2FsdGVkX1/caD7u0ZGRnb981G2DKyML/Gvyfexsurg= encrypted
653 # mfa client-secret U2FsdGVkX1+WlquxtZRbsgQhfS1lQBFbJKflxGAp6S3u+Ox5Hi+O16NmprjMVb3HQn1pNSgaaa0Cz1MHeTfDWhFR0WqdENbLU2PqkiRDHv0iVfl72xNPzhnGeO01kAu0 encrypted
654 # mfa security-profile mSecurityProfile
655 # mfa rsa-server security-profile rSecProfile
656 # mfa rsa-server host sonicrsaserver.che-lab.it port 1030 client-id sonic.che-lab.it client-key
657 # U2FsdGVkX18QFJoB9dp8GJN92eP79FGOZDLgQakBmAasGYX77p6PtiiAfS/nGoOb2uEocUkryc+BLLYsg+Wz0gO+c1QsIbIhXk5Pt+aECoVgoFQ9QpxO9od9cTik+3Ot encrypted
658 # connection-timeout 29 read-timeout 149
659 #
660 # sonic# show running-configuration | grep "cac-piv"
661 # aaa cac-piv cert-user user-principal-name
662 # aaa cac-piv cert-user-match 10digit-username
663 # aaa cac-piv security-profile cSecurityProfile
664
665
666 - name: Override device configuration of mfa with provided configuration
667 dellemc.enterprise_sonic.sonic_mfa:
668 config:
669 cac_piv_global:
670 cert_username_match: 'first-name'
671 state: overridden
672
673
674 # After state:
675 # ------------
676 #
677 # sonic# show running-configuration | grep "cac-piv"
678 # aaa cac-piv cert-user-match first-name
679
680
681
682 Return Values
683 -------------
684 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
685
686 .. raw:: html
687
688 <table border=0 cellpadding=0 class="documentation-table">
689 <tr>
690 <th colspan="1">Key</th>
691 <th>Returned</th>
692 <th width="100%">Description</th>
693 </tr>
694 <tr>
695 <td colspan="1">
696 <div class="ansibleOptionAnchor" id="return-"></div>
697 <b>after</b>
698 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
699 <div style="font-size: small">
700 <span style="color: purple">dictionary</span>
701 </div>
702 </td>
703 <td>when changed</td>
704 <td>
705 <div>The configuration resulting from module invocation.</div>
706 <br/>
707 </td>
708 </tr>
709 <tr>
710 <td colspan="1">
711 <div class="ansibleOptionAnchor" id="return-"></div>
712 <b>before</b>
713 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
714 <div style="font-size: small">
715 <span style="color: purple">dictionary</span>
716 </div>
717 </td>
718 <td>always</td>
719 <td>
720 <div>The configuration prior to module invocation.</div>
721 <br/>
722 </td>
723 </tr>
724 <tr>
725 <td colspan="1">
726 <div class="ansibleOptionAnchor" id="return-"></div>
727 <b>commands</b>
728 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
729 <div style="font-size: small">
730 <span style="color: purple">list</span>
731 </div>
732 </td>
733 <td>always</td>
734 <td>
735 <div>The set of commands pushed to the remote device.</div>
736 <br/>
737 <div style="font-size: smaller"><b>Sample:</b></div>
738 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;command 1&#x27;, &#x27;command 2&#x27;, &#x27;command 3&#x27;]</div>
739 </td>
740 </tr>
741 <tr>
742 <td colspan="1">
743 <div class="ansibleOptionAnchor" id="return-"></div>
744 <b>generated_after</b>
745 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
746 <div style="font-size: small">
747 <span style="color: purple">dictionary</span>
748 </div>
749 </td>
750 <td>when <code>check_mode</code></td>
751 <td>
752 <div>The generated configuration from module invocation.</div>
753 <br/>
754 </td>
755 </tr>
756 </table>
757 <br/><br/>
758
759
760 Status
761 ------
762
763
764 Authors
765 ~~~~~~~
766
767 - Divya Narendran (@Divya-N3)