Configure TACACS+ Authentication
To use TACACS+ authentication on the router, configure information about one or more TACACS+ servers on the network by including the
tacplus-serverstatement at the[edit system]hierarchy level:[edit system]tacplus-serverserver-address{secretpassword;single-connection;timeoutseconds;}In
server-address, specify the address of the TACACS+ server.You must specify a secret (password) that the local router passes to the TACACS+ client by including the
secretstatement. Secrets can contain spaces. The secret used by the local router must match that used by the server.You can optionally specify the length of time that the local router waits to receive a response from a TACACS+ server by including thethe
timeoutstatement. By default, the router waits 3 seconds. You can configure this to be a value in the range 1 through 90 seconds.You can optionally have the software maintain one open TCP connection to the server for multiple requests, rather than opening a connection for each connection attempt by including the
single-connectionstatement.
To configure multiple TACACS+ servers, include multiple
tacplus-serverstatements.To configure a set of users that share a single account for authorization purposes, you create a template user. To do this, include the
userstatement at the[edit system login]hierarchy level, as described in Configure Template Accounts for RADIUS and TACACS+ Authentication.Configure Juniper Networks-Specific TACACS+ Attributes
The TACACS attributes listed in Table 10 are specific to Juniper Networks. They are specified in the TACACS+ server configuration file on a per-user basis. The JUNOS software retrieves these attributes through an authorization request of the TACACS+ server after authenticating a user. You do not need to configure these attributes to run JUNOS with TACACS+.
To specify these attributes, include a
servicestatement in the TACACS+ server configuration file of the following form:service = junos-exec {local-user-name = <username-local-to-router>allow-commands = "<allow-commands-regexp>"allow-configuration = "<allow-configuration-regexp>"deny-commands = "<deny-commands-regexp>"deny-configuration = "<deny-configuration-regexp>"}This service statement can appear in a
userorgroupstatement.