How to get extra attribute
Reginaldo Russinholi wrote:
Hi all,
I'm using freeradius1.1.7 and I need to get an extra attribute (like 'MyAttribute') from the database and pass it to exec module like this:
Yes. You need to define it in a dictionary.
I tried to put MyAttribute into RadReply, but it didn't work. I also tried put MyAttribute into "dictionary" file and in RadReply, but it didn't appear in the response to radtest.
Internal attributes don't go into responses. This is documented. Alan DeKok.
Reginaldo Russinholi wrote:
But now, I'd like to know if it's possible to pass MyAttribute (that is in RadReply table) to my exec module that is executed from accounting phase.
Yes. It's in the reply.
For example: ... exec echo { wait = yes program = "/bin/echo %{MyAttribute}"
See "man unlang" for how to refer to attributes in the reply list. Alan DeKok.
Hello Guys, Someone have the dictionary file for 3Com switches(5500 Series)? We have a Freeradius to management our network devices and I need 3Com dictionary to able access control level. Regards, Thiago Lizardo de Moraes System Engineer Thiago.moraes@gvt.com.br
On 2008-06-06 09:01, Thiago Lizardo de Moraes wrote:
Hello Guys, Hello,
Someone have the dictionary file for 3Com switches(5500 Series)? Yep.
We have a Freeradius to management our network devices and I need 3Com dictionary to able access control level.
The one shipped with all recent release should work. Best regards, Krzysztof Olędzki
participants (4)
-
Alan DeKok -
Krzysztof Olędzki -
Reginaldo Russinholi -
Thiago Lizardo de Moraes