| United States-English |
|
|
|
![]() |
HP-UX AAA Server A.06.02 Administrator's Guide: HP-UX 11i v1 and 11i v2 > Chapter 23 Configuration
Files Decision Files |
|
A decision file contains group entries that define conditions based on combinations of A-V pairs and associates each condition with a set of returned A-V pairs. These files are only used when the radius.fsm file has been modified to call a specific decision file. Decision files can be used for complex policy decisions, for logging, and for other custom server configurations. (See Chapter 22 “The Finite State Machine (FSM) ” for more information about radius.fsm modifications). If a decision file is being used, the AAA server will evaluate each condition according to A-V pairs in RADIUS messages, like the Access-Request, and other values generated by the server. When a condition evaluates to true, the server will return the associated attribute values as reply items and can return an event value to the FSM. There are sample decision files in the /etc/opt/aaa directory that provide a template for implementing Dialed Number Identification Service (DNIS) routing and Dynamic Access Control (DAC) decisions. You can also create your own decision files, but they must be stored in the same directory that contains the server's other configuration files. There are no required naming conventions for a decision file, but the file name must match its reference in radius.fsm.
Below is the syntax of a decision file:
The simplest expression is a comparison of two A-V pairs with one relative operator. You can use relative and Boolean operators to create an expression with various combinations of A-V pairs and comparisons. Table 23-3 “A-V Pair Expression Operators” lists the operators that you can use. Table 23-3 A-V Pair Expression Operators
You can also use parentheses to nest expressions. Line breaks are not significant. Table 23-4 “A-V Pair Expression Examples” illustrates some possible expressions that you can use if you want to control access according to the dial-in phone number and time called. Table 23-4 A-V Pair Expression Examples
Your expressions can be as short or as long as you like. Since only one group match can be made for each request, you choose to use shorter expressions, and manage each distinct decision (DNIS routing, dynamic access control, membership in groups, and so on) in a separate file. You can also create a single file with longer expressions that cover a wide range of decision criteria. You can create decision groups for provisioning with the A-V pairs that may be used in a user profile for session logging with accounting attributes, refer to Chapter 11 “Logging and Monitoring ”. In addition, you can use the following attributes to define a group condition or reply. Day-Of-Week A string, representing the day of the week (spelled out or three letter abbreviation), or a number from 0 to 6, where 0 represents Sunday and 6 represents Saturday. This attribute is compared to the current system clock of the machine hosting the AAA server that is making the comparison. Date-Time 24 hour clock in yyyy:mm:dd:hh:mm format. This attribute is compared to the current system clock of the machine hosting the AAA server that is making the comparison. Time-of-Day 24 hour clock in hh:mm format. This attribute is compared to the current system clock of the machine hosting the AAA server that is making the comparison. Hours must be two digits, for example, 08:00, not 8:00. Decision You assign a value to this attribute that corresponds to a predefined or custom event that will be returned to the finite state machine when the group entry's condition has evaluated to true. Interlink-Packet-Code An integer value that indicates what type of RADIUS message has been received: either 1 (Access-Request) or 4 (Accounting-Request). Interlink-Proxy-Action A string determined by information in an Access-Request or Accounting-Request. This indicates the name of the starting event in the FSM when the AAA server receives a RADIUS message. You can preempt this value by beginning radius.fsm with an *.*.ACK event that invokes the POLICY action, which could then determine the start event based on a policy decision. User-Id After the AAA server parses the NAI, it assigns the user name to this attribute. User-Realm After the AAA server parses the NAI, it assigns the realm to this attribute. You can also use indirection to compare or assign attribute values to each other. Follow a Test Operator $Value$Pos$Len syntax, where Test is the attribute to check or assign a value to, and Value is the attribute with the value to check against or assign to the Test attribute; Operator is the relative or Boolean operator to use. $Pos and $Len are optional parameters that allow you to test or assign a substring of the specified Value attribute. Pos indicates the index position in the attribute's value to begin the substring and if specified Len determines the length. When used in the condition section of a group entry, indirection checks values. When used in the reply section, it assigns a value. For example, in an expression Port-Id <= $Port-Limit would only allow access to users who access the server through ports that don't exceed the limit set in their profile. As a reply item Decision = $Interlink-Proxy-Action would assign the current FSM event to the Decision attribute.
The HP-UX AAA server includes two sample decision files:
This example shows a simple DNIS routing scheme. Refer to Chapter 11 “Logging and Monitoring ” for an example of a modified radius.fsm file that will work with this decision file.
This example shows a simple DAC decision scheme based on the value of an Access-Group attribute.
Refer to Chapter 11 “Logging and Monitoring ” for an example of a modified radius.fsm file that will work with this decision file. In addition, this decision file would only work if the Access-Group attribute were added to the dictionary and added to user profiles as a configuration item, refer to “The dictionary File ”.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||