AW: (RADIATOR) multiple instances of usernames in users file

Martin Wallner Martin.Wallner at eunet.co.at
Mon Jul 25 19:52:39 CDT 2005


Hello Tariq,
 
There are probably more exact answers to this, but .... well, here are my 2 cent worth :-)
 
You can't have the same user twice in a file with the same realm in a dbm-file (at least, not one known to me .-), without getting nice double effects (like you described), but you CAN have a handler for each NAS-Identifier, which then authenticates against a users file special for the NAS-Identifier.... OR you can try SQL Authentication, which gives for one check attrib another answer than for the second one (you have to have the user twice in the table for it, that can sometimes be tricky)... You also (and thinking that out is probably better) can have  a users database (is this now dbm or SQL or LDAP), which holds only username and password (more exact: all the fields common to both NAS), and a handler per NAS in which you simply add the special attributes you need for the different NAS, that is, have the common set for both of the NAS in the DB and the rest in the AuthBy claus of the handler for the NAS, where you then add the special stuff with AddToReplyIfNotExist....
 
regards 
Martin Wallner
hostmaster at eunet.co.at

________________________________

Von: owner-radiator at open.com.au im Auftrag von Tariq Rashid
Gesendet: Mo 25.07.2005 16:22
An: radiator at open.com.au
Betreff: (RADIATOR) multiple instances of usernames in users file




hi, i'm trying to have the same username multiple times in the "users" file
- but each record has a different set of "check items".

for example:

test at devradius  Password = "xxx", NAS-Identifier = "9.8.7.6"
        Tunnel-Server-Endpoint = "1:1.2.3.4",
        Tunnel-Type = "1:L2TP",
        Tunnel-Medium-Type = "1:IP",
        Tunnel-Password = "1:xxx",
        User-Service = "Framed-User",
        Framed-Protocol = "PPP"

test at devradius  Password = "xxx", NAS-Identifier = "1.2.3.4"
        Framed-Address = 87.81.140.24,
        Framed-Netmask = 255.255.255.255,
        Framed-Protocol = "PPP"

the aim being that when the nas_ip_address is 9.8.7.6 the first set of reply
items are sent, and then when the secodn request arrives from 1.2.3.4 the
second set are set.

however, in practise only the second entry works (i guess it replaces the
first one when the users file is read).

i'm using radiator 3.8 on freebad 4.10

tariq

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20050726/0c5bf7a7/attachment.html>


More information about the radiator mailing list