Supported Platforms
Related Documentation
- M, MX, PTX, QFX, T Series
- Junos OS Authentication Order for RADIUS, TACACS+, and Password Authentication
Using Regular Expressions on a RADIUS or TACACS+ Server to Allow or Deny Access to Commands
Use regular expressions to specify which operational or configuration mode commands are allowed or denied when you use a RADIUS or TACACS+ server for user authentication. You can specify the regular expressions using the appropriate Juniper Networks vendor-specific RADIUS or TACACS+ attributes in your authentication server configuration.
You can specify allow-configuration, deny-configuration, allow-commands, or deny-commands in a single extended regular expression, enclosing multiple commands in parentheses and separating them using the pipe symbol. For example, you can specify multiple allow-commands parameters using: allow-commands= (cmd1 | cmd2 | cmdn). You can specify user-permissions as a list of comma-separated values, and not as a regular expression.
On a RADIUS or TACACS+ server, you can also use a simplified version for regular expressions where you specify each individual expression on a separate line. The simplified version is valid for allow-commands, deny-commands, allow-configuration, deny-configuration, and permissions vendor-specific attributes.
For a RADIUS server, specify the individual regular expressions using the following syntax:
For a TACACS+ server, specify the individual regular expressions using the following syntax:
![]() |
|
For more information about Juniper Networks vendor-specific RADIUS and TACACS+ attributes, see Juniper Networks Vendor-Specific RADIUS Attributes and Juniper Networks Vendor-Specific TACACS+ Attributes.
![]() | Note: When RADIUS or TACACS+ authentication is configured for a router, regular expressions configured on the RADIUS or TACACS+ server merge with any regular expressions configured on the local router at the [edit system login class] hierarchy level using the allow-commands, deny-commands, allow-configuration, deny-configuration, or permissions statements. If the final expression has a syntax error, the overall result is an invalid regular expression. |
Related Documentation
- M, MX, PTX, QFX, T Series
- Junos OS Authentication Order for RADIUS, TACACS+, and Password Authentication
Published: 2013-08-15
Supported Platforms
Related Documentation
- M, MX, PTX, QFX, T Series
- Junos OS Authentication Order for RADIUS, TACACS+, and Password Authentication