Add Attribute inside an Module

Patrick Ko patrick0585 at googlemail.com
Mon Feb 18 12:49:32 CET 2013


Hello everybody is it possible to add inside from a Module an Attribute. I
have included an C-Modul to my freeradis which works!
Now i want do add an individual Attribute like, "Web-Page" = "www.google.de"

Which also works it's to change the Attribute-Value if the "State"
Attribute, but I also want to have antoher Name like "State".


VALUE_PAIR *reply;
reply = pairmake("*State*", "*Hello State*", T_OP_EQ);
pairadd(&request->reply->vps, reply);

This works fine, but If now I want to add an individual Attribute it
doens't work.

VALUE_PAIR *reply;
reply = pairmake("*Web_page*", "*www.google.de*", T_OP_EQ);
pairadd(&request->reply->vps, reply);


Did everyone know what did I made wrong and could help me please ?



Thanks,
Greetz Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20130218/441de62b/attachment.html>


More information about the Freeradius-Devel mailing list