HP-UX AAA Server A.08.02 Administrator's Guide
# kill <radius pid>
3. Enter the following command:
# chatr +dbg enable /opt/aaa/bin/radiusd
4. Start radiusd by entering the following command:
# /opt/aaa/bin/radiusd
5. Start the debugger by entering the following command:
# gdb
This command starts a gdb session in UNIX and the gdb prompt appears. You can access
help by typing help at the gdb prompt. For more information about gdb, enter man gdb at
the command prompt.
If you start the gdb session from some other location, you must specify the directory in which
your plug-in module source code is located (for more information, see gdb help).
6. At the gdb prompt, enter the dir command to include the path of your software module, as
shown in the following example:
# gdb> dir /opt/aaa/examples/sdk/csi
7. Attach the radius pid, as follows:
# gdb> attach <radius pid>
An output similar to the following displays:
Reading symbols from /opt/aaa/aatv/proldap.so...done.
Reading symbols from /opt/aaa/aatv/securidAatv.so...done.
Reading symbols from /opt/aaa/aatv/snmpAgent.so...done.
Reading symbols from /opt/aaa/aatv/tacplus.so...done.
Reading symbols from /opt/aaa/aatv/tunneling.so...done.
Reading symbols from /opt/aaa/aatv/vlogit.so...done.
Reading symbols from /opt/aaa/aatv/samplesc.so...done
8. Set a breakpoint at the specified line of function, as shown in the following example:
# gdb> b <function>
9. Enter the continue command, as shown below:
# gdb> c
10. At another window prompt, enter the radpwtst command as shown in the following example:
# radpwtst -a localhost -w password test_user
11. Use gdb commands to step through the code and look at the data to see how it is being
processed in your plug-in module.
12. To quit gdb, enter the following command:
# gdb> q
Creating Plug-ins for AATVs
This section addresses plug-ins that are used to customize AATVs, such as Extensible Authentication
Protocol (EAP) Subscriber Identity Module (SIM) and EAP Authentication and Key Agreement (AKA).
This section addresses the following:
• “A3 and A8 Algorithm Plug-in for EAP-SIM” (page 334)
• “AKA Algorithm Plug-in for EAP-AKA” (page 336)
A3 and A8 Algorithm Plug-in for EAP-SIM
The Global System for Communications (GSM) A3 and A8 algorithms are used in EAP-SIM. The
content of A3 and A8 algorithm plug-ins is specific to the EAP-SIM protocol requirements.
[GSM-03.20] specifies the general GSM authentication procedure and the external interface of
the A3 and A8 algorithms. The operations of these functions are associated with the domain of
334 Customizing the HP-UX AAA Server Using the SDK