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

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

Example C Application authmgr_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.

authmgr_example

authmgr_example.c is a sample application that demonstrates the use of OpEN's authmgr APIs. authmgr_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

authmgr CLI/API Cross Reference

CLI Command OpEN API Reference
(Config)#
[no]authentication dynamic-vlan enable
openapiAuthMgrDynamicVlanCreationModeSet()
openapiAuthMgrDynamicVlanCreationModeGet()
(Config)#
[no]authorization network radius
openapiAuthMgrVlanAssignmentModeSet()
openapiAuthMgrVlanAssignmentModeGet()
(Interface-Config Mode)#
[no]authentication order { dot1x [mab] | mab [dot1x] }
openapiAuthMgrPortAuthMethodOrderSet()
openapiAuthMgrPortAuthMethodOrderGet()
(Interface-Config Mode)#
[no]authentication priority { dot1x [mab] | mab [dot1x] }
openapiAuthMgrPortAuthMethodPrioritySet()
openapiAuthMgrPortAuthMethodPriorityGet()
(Interface-Config Mode)#
[no]authentication max-users
openapiAuthMgrPortMaxUsersSet()
openapiAuthMgrPortMaxUsersGet()
(Interface-Config Mode)#
[no]authentication event fail action authorize vlan <vlan-id>
openapiAuthMgrPortUnauthenticatedVlanSet()
openapiAuthMgrPortUnauthenticatedVlanGet()
(Config)#
[no]authentication enable
openapiAuthMgrAdminModeSet()
openapiAuthMgrAdminModeGet()
(Interface-Config Mode)#
[no]authentication port-control {auto | force-authorized | force-unauthorized}
openapiAuthMgrPortControlModeSet()
openapiAuthMgrPortControlModeGet()
(Interface-Config Mode)#
[no]authentication event no-response action authorize vlan <vlan-id>
openapiAuthMgrPortGuestVlanSet()
openapiAuthMgrPortGuestVlanGet()
(Interface-Config Mode)#
[no]authentication event fail retry <max-attempts>
openapiAuthMgrPortMaxAuthAttemptsSet()
openapiAuthMgrPortMaxAuthAttemptsGet()
(Interface-Config Mode)#
[no]authentication periodic
openapiAuthMgrAuthenticationPeriodicSet()
openapiAuthMgrAuthenticationPeriodicGet()
(Interface-Config Mode)#
[no]authentication timer reauthenticate {<sec> | server}
openapiAuthMgrAuthenticationReAuthPeriodFromServerSet()
openapiAuthMgrAuthenticationReAuthPeriodServerGet()
openapiAuthMgrAuthenticationReAuthPeriodSet()
openapiAuthMgrAuthenticationReAuthPeriodGet()
openapiAuthMgrAuthenticationReAuthPeriodFromSeverGet()
(Interface-Config Mode)#
[no]authentication host-mode {multi-auth | multi-domain | multi-domain-multi-host | multi-host | single-host}
openapiAuthMgrAuthenticationHostModeSet()
openapiAuthMgrAuthenticationHostModeGet()
(Priv-User Mode)#
show authentication interface {<interface> | all}
openapiAuthMgrPortOperatingControlModeGet()
openapiAuthMgrPortStatusGet()
openapiAuthMgrPortVlanAssignedReasonGet()
openapiAuthMgrPortControlModeGet()
openapiAuthMgrAuthenticationReAuthPeriodGet()
openapiAuthMgrAuthenticationHostModeGet()
openapiAuthMgrAuthenticationReAuthPeriodServerGet()
openapiAuthMgrPortGuestVlanGet()
openapiAuthMgrAdminModeGet()
openapiAuthMgrDynamicVlanCreationModeGet()
openapiAuthMgrVlanAssignmentModeGet()
openapiAuthMgrPortControlModeGet()
openapiAuthMgrAuthenticationHostModeGet()
openapiAuthMgrPortAuthMethodOrderGet()
openapiAuthMgrPortAuthMethodPriorityGet()
openapiAuthMgrEnabledMethodGet()
openapiAuthMgrEnabledPriorityGet()
openapiAuthMgrAuthenticationPeriodicGet()
openapiAuthMgrAuthenticationReAuthPeriodGet()
openapiAuthMgrAuthenticationReAuthPeriodFromSeverGet()
openapiAuthMgrPortMaxUsersGet()
openapiAuthMgrPortGuestVlanGet()
openapiAuthMgrPortUnauthenticatedVlanGet()
openapiAuthMgrPortMaxAuthAttemptsGet()
openapiAuthMgrNumClientsGet()
(Priv-User Mode)#
show authentication client {<interface> | all}
openapiAuthMgrPortVlanAssignedGet()
openapiAuthMgrPortVlanAssignedReasonGet()
openapiAuthMgrLogicalPortVlanAssignmentGet()
openapiAuthMgrLogicalPortClientMacAddrGet()
openapiAuthMgrLogicalPortClientAuthStatusGet()
openapiAuthMgrLogicalPortUserNameGet()
openapiAuthMgrLogicalPortClientAuthStateGet()
openapiAuthMgrLogicalPortClientReauthStateGet()
openapiAuthMgrLogicalPortClientAuthenticatedMethodGet()
openapiAuthMgrLogicalPortVlanAssignmentGet()
openapiAuthMgrLogicalPortSessionTimeGet()
openapiAuthMgrLogicalPortSessionTimeoutGet()
openapiAuthMgrLogicalPortTerminationActionGet()
openapiAuthmgrLogicalPortTimeLeftForTerminateActionGet()
openapiAuthMgrLogicalPortFilterIdGet()