---
title: AAA
slug: enterprise-v6p1/z2IL-aaa
createdAt: 2025-12-18T08:15:26.404Z
---

# <font color="#1d50a2">AsterNOS-AAA</font>

Authentication, Authorization, and Accounting (AAA) is a framework for controlling access to network resources.
It provides a way to manage user access and permissions, ensuring that only authorized users can access specific resources.

AsterNOS support Authentication, Authorization, and Accounting (AAA) for user management with following capabilities.

For Authentication, AsterNOS supports the following methods:

- Local Authentication
- RADIUS Authentication
- TACACS+ Authentication

For Authorization, AsterNOS supports the following methods:

- Local Authorization
- TACACS+ Authorization
- RADIUS Authorization

For Accounting, AsterNOS supports the following methods:

- Local Accounting
- TACACS+ Accounting
- RADIUS Accounting

## <font color="#1d50a2">Modify AAA Configuration</font>

The following example give a typical AAA configuration:

- Use TACACS+ as primary authentication protocol, and local as secondary protocol.
- Enable failthrough and fallback for authentication, which will allow local user database to be used if TACACS+ server is unreachable.
- Enable debug for authentication, which will log detailed information about authentication attempts.
- Use TACACS+ as authorization protocol, and enable auth-cmd, which strictly checks user permissions for executing commands via TACACS+ protocol.
- Enable debug for authorization, which will log detailed information about authorization attempts.
- use TACACS+ as accounting protocol, which will sending user activity logs to TACACS+ server.

Request example

```xml
<config><top>
  <aaa>
    <accounting>
        <protocol>tacacs+</protocol>
    </accounting>
    <authorization>
        <protocol>tacacs+</protocol>
        <auth-service>false</auth-service>
        <auth-cmd>true</auth-cmd>
        <debug>true</debug>
    </authorization>
    <authentication>
        <protocol>tacacs+</protocol>
        <protocol>local</protocol>
        <failthrough>true</failthrough>
        <fallback>true</fallback>
        <debug>true</debug>
    </authentication>
  </aaa>
</top></config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c0494172-98ab-4056-b83c-8c0df58e3e92">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Get Current AAA Configurations</font>

Request example to get current AAA configurations via **get-config**

```xml
<filter type="subtree">
    <top>
        <aaa/>
    </top>
</filter>"""
```

Response example

```xml
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <top>
    <aaa xmlns="http://asterfusion.com/ns/yang/asternos-aaa">
      <accounting>
        <protocol>tacacs+</protocol>
      </accounting>
      <authentication>
        <protocol>tacacs+</protocol>
        <protocol>local</protocol>
        <failthrough>true</failthrough>
        <fallback>true</fallback>
        <debug>true</debug>
      </authentication>
      <authorization>
        <protocol>tacacs+</protocol>
        <auth-service>false</auth-service>
        <auth-cmd>true</auth-cmd>
        <debug>true</debug>
      </authorization>
    </aaa>
  </top>
</data>
```

## <font color="#1d50a2">Reset AAA Configurations</font>

Request example to reset AAA configurations to factory default.

```xml
<config><top>
  <aaa operation="delete"/>
</top></config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:fcc97206-be43-444a-8a9c-1d69cc14992f">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Show AAA Status via rpc</font>

Use **show-aaa** rpc to show current AAA status.

Request example to show current AAA configurations in CLI format via rpc **show-aaa**

```xml
<show-aaa/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:55a84d56-e32a-4713-87ae-674b4070812f">
  <data xmlns="http://asterfusion.com/ns/yang/asternos-aaa">
AAA authentication login ['tacacs+', 'local']
AAA authentication failthrough True
AAA authentication fallback True
AAA authentication debug True
AAA authorization command ['tacacs+']
AAA authorization auth_cmd True
AAA authorization debug True
AAA accounting command ['tacacs+']
  </data>
</rpc-reply>
```

