HP-UX AAA Server A.08.01 administrator's guide (T1428-90072, May 2010)

Table Of Contents
3. Add the aatv_load function to register the AATV to the HP-UX AAA Server.
The aatv_load function, shown below, initializes the global aatv_info_v2_t
structure that contains the function pointer to the init(), action(), timer(),
and cleanup() functions.
int aatv_load (aatv_info_v2_t **aatv_list, int * aatv_count)
where:
aatv_list is a list of all the AATVs that are loaded.
aatv_count is the number of AATVs that are loaded.
aatv_info_v2_t is the data structure containing the function pointer to the
init(), action(), timer(), and cleanup() functions.
For more information on the aatv_info_v2_t data
structure, see “Header Files, Data Structures, and APIs in
the HP-UX AAA Server SDK” (page 579).
4. Set the parameters of the aatv_info_v2_t data structure. Add them to
aatv_list and set the value of aatv_count.
NOTE: You can also add init (), timer (), and cleanup () functions, based
on your requirements. These functions are not used in this example, because the
checkCSI AATV does not use them.
Compiling and Loading a Plug-in
To compile and load a plug-in, complete the following steps:
NOTE: Before you start this procedure, ensure that the HP-UX AAA Server is not
running.
1. Navigate to the /opt/aaa/examples/sdk/CSI directory.
2. Enter the following command:
# cc -I /opt/aaa/include -c +z checkCSI.c
3. Enter the following command to link the AATV with the libradlib file:
# ld -b -o checkCSI.so -L/opt/aaa/lib -lradlib checkCSI.o
4. Enter the following command to copy the compiled plug-in to the /opt/aaa/
aatv/ directory:
# cp checkCSI. so /opt/aaa/aatv/
After copying the AATV to the /opt/aaa/aatv/ directory, you can configure
the AATV name in the authfile or in the FSM.
5. Start the radiusd daemon by entering the following command:
# /opt/aaa/bin/radiusd
452 Customizing the HP-UX AAA Server Using the SDK