com.theorem.tacacs.examples.modserver
Class ModAttributes
Object
ModAttributes
- public class ModAttributes
- extends Object
Example of a class run on the Cisco server to modify or create a 'group' attribute.
It's also an example of the modification of AV-Pairs and the Attributelist.
This class is invoked by placing this in the tac_plus configuration file in a group:
after authorization "java com.theorem.tacacs.examples.test.ModAttributes admin"
This will create or modify the attribute called 'group' to become group=admin. This
class may used as a 'before' or 'after' authorization.
To allow the attribute 'group' the method AuthorizationPacket.addAttribute("group")
must be added to the client to permit the exchange of the 'group' attribute.
If this is run as a 'before authorization' script the server will only return what ever was
in the request authorization packet and the 'group' change.
If run as the after authorization the server's returned attributes will be altered with
the addition or replacement of the 'group' attribute.
|
Method Summary |
static void |
main(String[] args)
Exit with value 0 to be ignored, 1 to offer an error, 2 for acceptance of the args. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModAttributes
public ModAttributes()
main
public static void main(String[] args)
- Exit with value 0 to be ignored, 1 to offer an error, 2 for acceptance of the args.
Submit a bug report or feature request
Copyright 1998-2002 AXL Software™ PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.