>
> The key for all was to use an id < 255.
Well, it seemed to works, but it doesn't.
Now I have in my users file an entry like this:
stive Auth-Type := Local, User-Password == "testing"
Framed-IP-Address = 172.16.3.33,
Framed-IP-Netmask = 255.255.255.0,
MS-Primary-DNS-Server = 130.0.2.12,
MS-Secondary-DNS-Server = 130.0.3.12,
MyOwnAttribute = "thisi",
Reply-Message=" eccolo",
Framed-Compression = Van-Jacobsen-TCP-IP
then in dictionary I have added the following:
$INCLUDE dictionary.pigi
and create a dictionary.pigi containing:
VENDOR pigi 40000
BEGIN-VENDOR pigi
ATTRIBUTE MyOwnAttribute 1 string
END-VENDOR pigi
When I issue the : radtest stive testing localhost:1645 0 testing123
I got as reply:
Sending Access-Request of id 57 to 127.0.0.1:1645
User-Name = "stive"
User-Password = "testing"
NAS-IP-Address = topolinux
NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1645, id=57, length=71
Framed-IP-Address = 172.16.3.33
Framed-IP-Netmask = 255.255.255.0
MS-Primary-DNS-Server = 130.0.2.12
MS-Secondary-DNS-Server = 130.0.3.12
Reply-Message = " eccolo"
Framed-Compression = Van-Jacobson-TCP-IP
As we can see, all the attribute are passed back in reply, except for my
attribute.
>From the log I have :
Tue Sep 7 18:23:40 2004 : Debug: Thread 1 handling request 0, (1 handled
so far)
User-Name = "stive"
User-Password = "testing"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
Tue Sep 7 18:23:40 2004 : Debug: Processing the authorize section of
radiusd.conf
...
...
Tue Sep 7 18:23:40 2004 : Debug: modsingle[authorize]: calling files
(rlm_files) for request 0
Tue Sep 7 18:23:40 2004 : Debug: users: Matched stive at 81
Tue Sep 7 18:23:40 2004 : Debug: modsingle[authorize]: returned from
files (rlm_files) for request 0
Tue Sep 7 18:23:40 2004 : Debug: modcall[authorize]: module "files"
returns ok for request 0
Tue Sep 7 18:23:40 2004 : Debug: modcall: group authorize returns ok for
request 0
Tue Sep 7 18:23:40 2004 : Debug: rad_check_password: Found Auth-Type
Local
Tue Sep 7 18:23:40 2004 : Debug: auth: type Local
Tue Sep 7 18:23:40 2004 : Debug: auth: user supplied User-Password
matches local User-Password
Tue Sep 7 18:23:40 2004 : Debug: radius_xlat: ' eccolo'
Sending Access-Accept of id 184 to 127.0.0.1:32771
Framed-IP-Address = 172.16.3.33
Framed-IP-Netmask = 255.255.255.0
MS-Primary-DNS-Server = 130.0.2.12
MS-Secondary-DNS-Server = 130.0.3.12
Reply-Message = " eccolo"
Framed-Compression = Van-Jacobson-TCP-IP
The same behaviour arise if I put "MyOwnAttribute" dictionary or
dictionary.freeradius file.
Other hints ?
Pigi
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html