Hello Phil,<br>thanks for your fast an helpfull Reply!<br><br>I added the following Line in the dicontairy Configuration File ( I use the dictonairy.cisco.asa ):<br><br>ATTRIBUTE Webpage 4001 string<br>
<br>Now I checked the Return Value of pairmake like this: <br><br> VALUE_PAIR *rep;<br> rep = pairmake("WebPage","<a href="http://www.google.de">www.google.de</a>",T_OP_EQ);<br> if(rep == NULL)<br> {<br>
printf("Errorrrrrrrrrrrrrrrrrrrrrrrr\n\n\n\n");<br> exit(1);<br> }<br><br><br>And if I "make" && "make install" and run my radius it exited, so i see that the Value will not be created!<br>
Is it possible to get Error Messages, to see why i fails to make a pair ?<br>And could you please help me to explain the last value (T_OP_EQ) of the pairmake function. I don't really understand which function this value has ?<br>
<br><br>Greetz<br>Patrick<br><br><div class="gmail_quote">2013/2/18 Phil Mayers <span dir="ltr"><<a href="mailto:p.mayers@imperial.ac.uk" target="_blank">p.mayers@imperial.ac.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 18/02/13 11:49, Patrick Ko wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello everybody is it possible to add inside from a Module an Attribute.<br>
I have included an C-Modul to my freeradis which works!<br>
Now i want do add an individual Attribute like, "Web-Page" =<br></div>
"<a href="http://www.google.de" target="_blank">www.google.de</a> <<a href="http://www.google.de" target="_blank">http://www.google.de</a>>"<div class="im"><br>
<br>
Which also works it's to change the Attribute-Value if the "State"<br>
Attribute, but I also want to have antoher Name like "State".<br>
<br>
<br>
VALUE_PAIR *reply;<br></div>
reply = pairmake("*State*", "*Hello State*", T_OP_EQ);<br>
pairadd(&request->reply->vps, reply);<br>
</blockquote>
<br>
This should really be:<br>
<br>
if (reply) pairadd(...);<br>
<br>
i.e. you must check the return value of pairmake, in case it fails.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
This works fine, but If now I want to add an individual Attribute it<br>
doens't work.<br>
<br>
VALUE_PAIR *reply;<br></div>
reply = pairmake("*Web_page*", "*<a href="http://www.google.de" target="_blank">www.google.de</a> <<a href="http://www.google.de" target="_blank">http://www.google.de</a>>*",<div class="im"><br>
T_OP_EQ);<br>
pairadd(&request->reply->vps, reply);<br>
<br>
<br>
Did everyone know what did I made wrong and could help me please ?<br>
</div></blockquote>
<br>
Did you define the attribute in a dictionary? If not, pairmake will return null.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/devel.html" target="_blank">http://www.freeradius.org/<u></u>list/devel.html</a><br>
</blockquote></div><br>