Tacacs+ 4.4
Author: Andrew Young (baram@rcn.com)
Date: 25.02.2003
- License
tac_plus is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either v10 or (at your option)
any later version.
- Scope
This document describes how to setup tacacs+ with/without mysql and php.
- Requirements
- tacacs_4.4.tgz -- This package is at http://www.networkforums.net
- tacacs_web_1.1.tgz -- This package is at http://www.networkforums.net
- MYSQL 3.23 -- This package is at http://www.mysql.com
- PHP 4.2.3 or above -- This package is at http://www.php.net
- Apache Web Server -- This package is at http://www.apache.org
** This source does not support all the features given in the web interface. ** Please use the pre-compiled binary because it supports all features given ** in the web interface. If you cannot find a pre-compiled binary for your ** system, please send fill out the form at http://www.networkforums.net and ** we will provide you a compiled version for your system within a week. ** You must be a registered to get to the form.
How to install tacacs+ for the first time?
- Unpack the tacacs+ package in any location # tar xzf tac_plus_v10_source.tgz
- Run the configuration script to create te Makefiles
# cd tac_plus_v10
# ./configure **This is for no mysql support
or # ./configure --with-db --with-mysql **This is for mysql support
# make tac_plus
- Copy files in the appropriate place # cp tac_plus /usr/sbin # mkdir /etc/tacacs # cp tac_plus.cfg /etc/tacacs # cp tac_plus.init /etc/init.d/tac_plus # chmod +x /etc/init.d/tac_plus # ln -s /etc/init.d/tac_plus /etc/rc5.d/S99tac_plus
- If no DB support, please change configuration file (tac_plus.cfg) as specified in the users_guide.
- If using DB support, install MYSQL as the instructions given in the package.
** Run the following once MYSQL is installed. # mysql -u root -p < tac_plus.sql
** Edit configuration file # vi /etc/tac_plus.cfg
** Change key by replacing "put_your_key_here" with your key.
- Start tacacs+. # /etc/rc5.d/S99tac_plus start
- Done.
How upgrade tacacs+?
- Follow the first 2 instructions of the first time install.
- Copy files over the current. **Note: for linux, please stop the process # cp tac_plus <current location>
- If have DB support and database name is tacacs, # mysql -u root -p tacacs < tac_plus_upgrade.sql **Please enter password
** Note: This command will upgrade your current database to work with the new code.
# vi <current configuration file>
** remove "accounting file = db" and "default authentification = db"
** add "default db = mysql://tacacs:tac_plus@<host>/tacacs"
where <host> is the database server name or IP.
** save the new configuration.
4) If have DB support and database name is not tacacs,
** dump the database
# mysqldump -u root -p <dbname> > /tmp/<dbname>.sql
** edit the file and add:
create database tacacs;
use tacacs;
before the first "CREATE TABLE". Save the changes.
# mysql -u root -p < /tmp/<dbname>.sql
** goto step 3.
5) restart tac_plus process.
6) Done.
How to add tacacs+ web administration?
- Install Apache and PHP as specified in the their documentations.
- Copy tacacs_web.tgz to Apache doc root (default in linux is /var/www/html).
- Unpack file. # tar xzf tacacs_web.tgz
- Remove current index.html # rm index.html
- Connect to web server via browser.
- If web page comes up, use userid admin and password system. **Please change password asap. This ID have the maximum administrative priviledge **
- If does not come up, please refer to the documentations of Apache and PHP.
- Done.
