All I did was run FreeRADIUS in debug mode to see what attributes it was
being sent. Sip-Uri-User happened to be one of them which contained the
username. So it's just a case of adding an additional rad check item.
With FreeRADIUS using MySQL as the back end, you would have the following in
the radcheck table
+----+----------------------------+---------------+----+------------+
| id | UserName | Attribute | op | Value |
+----+----------------------------+---------------+----+------------+
| 1 | 01913405062(a)mydomain.com | User-Password | == | testing123 |
| 2 | 01913405062(a)mydomain.com | Sip-Uri-User | == | 01913405062 |
+----+----------------------------+---------------+----+------------+
in a similar way as you would set the Sip-Rpid in the radreply table.
The ser config remains the same as it would for standard authentication,
nothing in that needs to be changed!
-----Original Message-----
From: Bruno Lopes F. Cabral [mailto:bruno@openline.com.br]
Sent: 22 December 2004 15:13
To: hostmaster(a)telcoelectronics.co.uk
Subject: Re: [Serusers] SER + RADIUS
I'd like to see a ser.cfg snippet, if you can of course,
because I could not find how to do this on my tests,
nor get help on this from the list :~)
Thanks for answering, anyway
hostmaster(a)telcoelectronics.co.uk wrote:
With regards to the check_to functionality when using
RADIUS, you can
always
add an additional check constraint for Sip-Uri-User
which does the same
job.
> RADIUS auth works but without check_to and
> check_from (to solve this, use an Exec-Program-Wait
> script to deny the access). Sorry, no SIP
> Session-timeout
-------------------------------------------------------------------------------------------------------
This email, and any files transmitted with it, is copyright and may contain confidential
information.
The contents are intended for the use of the addressee(s) only.
Unauthorized use may be unlawful.
If you receive this email by mistake, please advise sender immediately.
The views of the author may not necessarily constitute the views of Telco Electronics
Limited.
Nothing in this mail shall bind Telco Electronics Limited in any contract or obligation.
Telco Electronics Limited
6-8 Oxford Court
Brackley
Northants
NN13 7XY
Tel 01280 761600
Fax 01280 841174