Skip to content

GROUP_RADIUS module

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):

  • none

The following libraries or applications must be installed before compilling OpenSIPS with this module loaded:

Location of the configuration file of the radius client library.

Default value is “/usr/local/etc/radiusclient-ng/radiusclient.conf”.

Set radius_config parameter
...
modparam("group_radius", "radius_config", "/etc/radiusclient.conf")
...

If set to 1 then username@domain will be used for lookup, if set to 0 then only username will be used.

Default value is 0 (no).

Set use_domain parameter
...
modparam("group_radius", "use_domain", 1)
...

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.

radius_is_user_in usage
...
if (radius_is_user_in("Request-URI", "ld")) {
...
};
...

Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)

#NameDevScoreCommitsLines++Lines—
1.Jan Janak (@janakj)26111113278
2.Bogdan-Andrei Iancu (@bogdan-iancu)2520148136
3.Daniel-Constantin Mierla (@miconda)141162112
4.Andrei Pelinescu-Onciul861016
5.Stefan Darius (@dariusstefan)6314521
6.Maksym Sobolyev (@sobomax)523262
7.Peter Nixon3145
8.Razvan Crainea (@razvancrainea)3122
9.Konstantin Bokarius3125
10.Edson Gellert Schubert310103

All remaining contributors: Jiri Kuthan (@jiriatipteldotorg).

(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)

(2) including any documentation-related commits, excluding merge commits

(3) ignoring whitespace edits, renamed files and auto-generated files

#NameCommit Activity
1.Stefan Darius (@dariusstefan)Jun 2026 - Jul 2026
2.Razvan Crainea (@razvancrainea)Jun 2026 - Jun 2026
3.Bogdan-Andrei Iancu (@bogdan-iancu)Jun 2005 - Jul 2008
4.Daniel-Constantin Mierla (@miconda)Oct 2005 - Mar 2008
5.Konstantin BokariusMar 2008 - Mar 2008
6.Edson Gellert SchubertFeb 2008 - Feb 2008
7.Peter NixonJan 2007 - Jan 2007
8.Andrei Pelinescu-OnciulMar 2003 - Dec 2004
9.Jan Janak (@janakj)Mar 2003 - Dec 2004
10.Maksym Sobolyev (@sobomax)Dec 2003 - Jan 2004

All remaining contributors: Jiri Kuthan (@jiriatipteldotorg).

(1) including any documentation-related commits, excluding merge commits

Last edited by: Razvan Crainea (@razvancrainea), Bogdan-Andrei Iancu (@bogdan-iancu), Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Jan Janak (@janakj).

All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0