Copyright © 2003 FhG FOKUS
|Revision $Revision: 4473 $||$Date: 2008-07-11 23:16:22 +0200 (Fri, 11 Jul 2008) $|
Table of Contents
List of Examples
This module export functions necessary for group membership checking over radius. There is a database table that contains list of users and groups they belong to. The table is used by functions of this module.
The module depends on the following modules (in the other words the listed modules must be loaded before this module):
The following libraries or applications must be installed before compilling OpenSIPS with this module loaded:
radiusclient-ng 0.5.0 or higher -- library and development files. See http://developer.berlios.de/projects/radiusclient-ng/.
Location of the configuration file of the radius client library.
Default value is “/usr/local/etc/radiusclient-ng/radiusclient.conf”.
Example 1.1. Set
... modparam("group_radius", "radius_config", "/etc/radiusclient.conf") ...
The function returns true if username in the given URI is member of the given group and false if not.
Meaning of the parameters is as follows:
URI - URI whose username and optionally domain to be used, this can be one of:
Request-URI - Use Request-URI username and (optionally) domain.
To - Use To username and (optionally) domain.
From - Use From username and (optionally) domain.
Credentials - Use digest credentials username.
group - Name of the group to check.
This function can be used from REQUEST_ROUTE.