[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11.2.5 Login Verification Functions

A login verification function is invoked to process the output from the NAS. This process is described in 7.9 Multiple Login Checking. The function to be invoked for given NAS is defined by a function flag in the `raddb/nastypes' or `raddb/naslist' file (see section 5.5 NAS Types -- `raddb/nastypes'). It must be defined as follows:

Function Template: integer check (string str, string name, integer pid, string sid)

Its arguments are:

str
Input string. If the query method is finger, this is the string of output received from the NAS with trailing newline stripped off. If the query method is snmp, it is the received variable value converted to its string representation.
name
User name.
pid
Port ID of the session.
sid
Session ID.

The function should return non-0 if its arguments match the user's session, and 0 otherwise.

11.2.5.1 Examples of Login Verification Functions  



This document was generated by Sergey Poznyakoff on November, 20 2004 using texi2html