Authenticating access via caller-id or username/password

John Ward john at agent-j.com
Tue Oct 13 17:44:43 CEST 2009


Hi There,
the authentication will take place based only on the calling station id.

in one scenario: the users use usernames and passwords.

in the second scenario, a device is authenticated on the
calling-station-id as it has no username or password.
the device is put into a different part of the network.

i was thinking of this:
sql_user_name = "%{User-Name:-%{Calling-Station-Id:-DENY}}"

the problem is that the NAS returns "VOID" as the username if its left blank.

seeing as i have to tie the username to something usefull to make a
select statement i guess i'm looking for a method to put the calling
station id into the username field if the username is "VOID"

where would the best place for that be and how could it be done? I see
some nifty UNLANG examples but none that work on run time
substitutions.

Regards
John

On Tue, Oct 13, 2009 at 3:54 PM, Ivan Kalik <tnt at kalik.net> wrote:
>> I now have to authenticate users based on username and password in one
>> instance
>
> That's easy, but ...
>
>> and solely calling-station-id in another.
>
> ... what does that mean? Each user can call from a specific callerID? Each
> user can call from a specific list of callerIDs? Every user can call from
> a list of (all) known callerIDs? Solution will depend on the policy.
>
> Ivan Kalik
> Kalik Informatika ISP
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>



More information about the Freeradius-Users mailing list