Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
MFA API

This document provides a brief description of the MFA OpEN APIs. It provides the following services:

Example C mfa_example

Initialization

In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.

_example

mfa_example.c is a sample application that demonstrates the use of OpEN's APIs. mfa_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.

Sample Output

CLI/API Cross Reference

CLI Command OpEN API Reference
(Config)#
[no] mfa-enable
openapiGlobalMultiFactorAuthSet()
#
show mfa
openapiGlobalMultiFactorAuthGet()
(Config)#
[no] username <name> password <password>
[encryption-type [[md5][sha256][sha512][aes]]] [encrypted]
[override-complexity-check] [level <level>]
[mfa-enable] [email-id <email-address>]
openapiUserMultiFactorAuthStateSet()
openapiUserEmailIdSet()
#
show users accounts
openapiUserEmailIdGet()
openapiUserMultiFactorAuthStateGet()