System Security Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

PDF

System Security Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

Task-based authorization

Want to summarize with AI?

Log in

Describes task-based authorization, detailing supported task-ID behaviors, methods for assigning permissions to external AAA users, privilege level mapping, task map structure, and configuration using XML schema and protocols such as NETCONF and RESTCONF.


A task-based authorization model is an access control model that

  • authorizes CLI and API operations based on assigned task permissions

  • controls configuration, monitoring, and operational access through AAA task permissions, and

  • replaces the privilege-level concept used previously in Cisco IOS with a task-based approach in Cisco IOS XR software.

Additional reference information

AAA employs task permissions for any control, configuration, or monitoring operation through CLI or API. The Cisco IOS software concept of privilege levels has been replaced by a task-based authorization system.


Task IDs for authorization

A task ID is a permission identifier that

  • defines the permission to run an operation for a Cisco IOS XR command or API request

  • represents control, configuration, and monitoring operations, and

  • allows users associated with the task ID to execute operations that require that task ID.

Additional reference information

Task IDs are assigned to users through membership in user groups and task groups. Each user is associated with one or more user groups. Every user group is associated with one or more task groups, and each task group is defined by a set of task IDs. Thus, a user's membership in a user group links that user to a specific set of task IDs, which determine the scope of their authorized access to the router.

The operational tasks that enable users to control, configure, and monitor Cisco IOS XR software are represented by task IDs. A task ID defines the permission for a command. Users associated with the appropriate task IDs can execute any operation permitted by those IDs.


Requirement: Use supported task-ID behavior

You must follow these requirements when using task IDs for CLI commands, XML API invocations, and other operations in Cisco IOS XR:

  • Most router control, configuration, or monitoring operations using the CLI or XML API are associated with a specific set of task IDs. Each command or API invocation typically is associated with at least one task ID.

  • The config and commit commands, as well as command aliases, do not require any specific task ID permissions. To perform a configuration replace operation, you must have root-lr permissions. To restrict access to configuration mode, use TACACS+ command authorization to deny the config command.

  • Task ID associations are hard-coded within the router and cannot be modified. Task IDs grant permission to perform certain tasks but do not deny permission. Permissions can be read, write, execute, or debug.

  • Task ID classes include:

    • Read: Permit only read operations.

    • Write: Permit change operations (and implicitly allow read).

    • Execute: Permit access operations (e.g., ping, Telnet).

    • Debug: Permit debug operations.

  • Multiple operations separated by a slash (e.g., read/write) or comma (e.g., read/write, execute) apply to the specified task IDs accordingly.

  • If no task ID or operation is specified for a command, then you may use it without a prior association.

  • ROM monitor commands do not require task ID association.

  • In specific configuration submodes, you may need additional task ID permissions to use some commands. For example, to execute show redundancy , you must be associated with the system (read) task ID.

  • If you experience issues using a CLI command, contact your system administrator.


Methods for assigning task permissions to external AAA users

Cisco IOS XR AAA supports several methods for assigning task permissions to users authenticated through TACACS+ or RADIUS external servers:

  • Text task map: Specify the text version of the task map directly in the configuration file of the external TACACS+ or RADIUS server.

  • Privilege level: Set the privilege level within the external server’s configuration file for users.

  • Matching local username: Create a local user with the same username as the externally authenticated user; this user inherits the local task permissions.

  • Default task group: Configure a default task group whose permissions are applied to any user authenticating with TACACS+ or RADIUS.

Use the assignment method that matches the external AAA server's task-ID or privilege-level support.


Task maps for external AAA users

A task map is a remote task-permission definition that

  • lets external AAA servers define router task IDs remotely

  • can include specific task IDs and user group references, and

  • is represented by task strings in external server configuration.

Additional reference information

For users who are authenticated using an external TACACS+ server and RADIUS server, Cisco IOS XR software AAA supports a method to define task IDs remotely.


External AAA task string syntax and token rules

The task string used for configuring remote task permissions in external TACACS+ or RADIUS servers consists of comma-delimited tokens. Each token contains either a task ID and its permissions or a user group to include for a specific user.

Task String Structure

The syntax format is as follows:

task = "permissions:taskid_name, #usergroup_name, ..."

Permissions are represented by letters:

  • r: read

  • w: write

  • x: execute

  • d: debug

The pound sign (#) indicates that a user group follows.

user = user1{
member = some-tac-server-group
opap = cleartext "lab"
service = exec {
task = "rwx:bgp,#operator"
}
}

In this example, user1 receives BGP read, write, and execute permissions, and belongs to the user group "operator".

Usage notes
  • Task strings should be defined without blank spaces or quotation marks within the custom attribute field.

  • Cisco IOS XR software allows you to specify task IDs as attributes in the external server configuration.

  • If the server is used with systems other than Cisco IOS XR, attributes may be marked as optional, as described in server documentation (for instance, CiscoSecure ACS and Cisco freeware TACACS+ server require an asterisk * instead of an equal sign = for optional attributes).

Optional attributes
  • To enable interoperability with Cisco IOS-based systems, add the optional keyword in front of "task".

  • When configuring optional attributes, consult your TACACS+ server documentation to determine the required syntax.

Task string example for CiscoSecure ACS

To specify task IDs and user groups in CiscoSecure ACS:

task = "permissions:taskid name, #usergroup name, ..."

task=rwx:bgp,#netadmin


Configure task permissions for external AAA users in CiscoSecure ACS

Assign Cisco IOS XR task IDs or user groups to an external AAA user via a shell custom attribute, enabling explicit control of user task permissions at login.

Task strings in the TACACS+ server configuration file consist of comma-delimited tokens representing task IDs with associated permissions and user group membership. This mechanism allows precise control over what commands and features the user can access on Cisco IOS XR devices after authenticating through CiscoSecure ACS.

Before you begin

  • Create or select the external AAA user group to be assigned task permissions.

  • Ensure you have access to CiscoSecure ACS and the relevant user accounts.

  • Review TACACS+ server documentation if you're assigning optional attributes.

Procedure

  1. Log in to CiscoSecure ACS using your administrator credentials.

  2. Navigate to Group Setup.

  3. From the Group drop-down list, select the user group you want to update.

  4. Click Edit Settings to modify the group configuration.

  5. Locate and select the Shell (exec) check box to enable custom attribute configuration.

  6. Check the Custom attributes option.

  7. In the custom attributes field, enter the task string to assign task IDs and user groups. For example:

    Example:

    task=rwx:bgp,#netadmin
  8. Click Submit + Restart to apply changes and restart the server.

Assigning multiple tasks and groups in RADIUS Vendor-Specific Attributes:

  • shell:tasks=#sysadmin,rwx:bgp,r:ospf

After login, the user may verify their assigned tasks using the show user tasks command.


How privilege level mapping works

Privilege level mapping provides compatibility with TACACS+ daemons that do not support task IDs.

Summary

The key components involved in the process are:

  • External TACACS+ server: Authenticates users and returns a privilege level based on the user’s configuration.

  • AAA system: Receives the returned privilege level and maps it to a corresponding local user group.

  • Local user groups (priv1–priv13, owner-sdr): Supply task maps that define the permissions assigned to authenticated users.

Privilege level mapping provides compatibility with TACACS+ daemons that do not support task IDs. AAA maps the returned external privilege level to a local user group and assigns that group's task map to the authenticated user.

Workflow

These stages describe how privilege level mapping works.

  1. The external TACACS+ server authenticates the user and returns a privilege level.

  2. AAA maps privilege levels 1 through 13 to local user groups named priv1 through priv13. Privilege level 14 maps to the owner-sdr user group.

  3. AAA assigns the task map of the mapped local user group to the authenticated user.

Suppose the TACACS+ server returns privilege level 5 for a user. AAA maps this to the local user group priv5 and assigns the corresponding task map:

user = sampleuser1{
    member = bar
    service = exec-ext {
        priv_lvl = 5
    }
}

Categories of AAA XML schema for configuration and monitoring

Cisco IOS XR publishes various XML schema categories to support XML-based configuration and monitoring of AAA (Authentication, Authorization, and Accounting) services through management tools and applications. These schema define the structure of XML requests and responses used to communicate with the XML agent for AAA.

AAA XML schema categories:

  • Authentication, Authorization and Accounting configuration

  • User, user group, and task group configuration

  • TACACS+ server and server group configuration

  • RADIUS server and server group configuration

Use these schema categories to guide XML-based communication between configuration tools or management applications and the XML agent when performing AAA-related operations.


Support for username and password control in NETCONF and RESTCONF AAA services

NETCONF and RESTCONF manage username and password access in management workflows by using either local or AAA (Authentication, Authorization, Accounting) services. This approach parallels the control methods used in XML schema-based access.

Key reference information

  • Both protocols utilize local or AAA services to manage credentials.

  • RESTCONF support for AAA control will be added in a future release.

  • Use this reference to understand management protocol scope and RESTCONF support limitations.

Summary of protocol support

  • NETCONF currently supports username and password control using local or AAA services.

  • RESTCONF support for AAA-based credential control is planned for future releases; it presently relies on local authentication.