Hi again<br>By the way, the better approach to catch attributes' values is through the usage of the following function:<br><br>vp_prints_value(char *out, int outlen, VALUE_PAIR *vp,int delimitst);<br><br>Regards<br>Ali<br>
<br><div><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Ali Majdzadeh</b> <<a href="mailto:ali.majdzadeh@gmail.com">ali.majdzadeh@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi Shankar<br>Yes, of course.<br>code:<br><br>char USER_NAME[128];<br>VALUE_PAIR *vp_iterator;<br>vp_iterator = request->packet->vps;<br>while (vp_iterator)<br>{<br> if (strcmp (vp_iterator->name, "User-Name") == 0)
<br> strcpy (USER_NAME, vp_iterator->strvalue);<br> vp_iterator = vp_iterator->next;<br>}<br>This method also works for vendor specific attributes like Cisco-AVPAIR and ... .<br>Regards<br>Ali<br><br>
<div></div><div><span class="e" id="q_10da23f357b6e6d5_1"><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Shankar Ganesh C</b> <<a href="mailto:shankarganesh@tataelxsi.co.in" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
shankarganesh@tataelxsi.co.in</a>> wrote:</span></span></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div></div><div><span class="e" id="q_10da23f357b6e6d5_3">
<div>
<div><span><font color="#0000ff" face="Arial" size="2">Hi
Ali,</font></span></div>
<div><span></span><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">Could
you let me know how did u capture the vendor specfic attributes in the
rlm_module ?</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">like
the one you have described earlier </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">getenv(USER_NAME) , getnev(Cisco_AVP) ?</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">Rgds,</font></span></div></div><div><span>
<div><span><font color="#0000ff" face="Arial" size="2">Shankar ganesh</font></span></div></span></div><div><span>
<blockquote>
<div dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b>
freeradius-users-bounces+shankarganesh=<a href="mailto:tataelxsi.co.in@lists.freeradius.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tataelxsi.co.in@lists.freeradius.org</a>
[mailto:<a href="mailto:freeradius-users-bounces+shankarganesh=tataelxsi.co.in@lists.freeradius.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">freeradius-users-bounces+shankarganesh=tataelxsi.co.in@lists.freeradius.org
</a>]<b>On
Behalf Of </b>Ali Majdzadeh<br><b>Sent:</b> Tuesday, September 12, 2006 5:10
PM<br><b>To:</b> FreeRadius users mailing list<br><b>Subject:</b> Question
about rlm modules<br><br></font></div>Hi all<br>What is(are) the coresponding
function pointer(s) for start and stop packets in an rlm module? (Something
like xxx_authenticate)<br>Should I define my own custome funtion pointers?
Then, How can I test them?<br><br>Best
Regards<br>Ali<br></blockquote></span></div><div></div></span></div><div>
</div><br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.freeradius.org/list/users.html</a>
<br><br></blockquote></div><br>
</div></blockquote></div><br>