Question about rlm modules

Ali Majdzadeh ali.majdzadeh at gmail.com
Tue Sep 12 15:37:33 CEST 2006


Hi Shankar
Yes, of course.
code:

char                     USER_NAME[128];
VALUE_PAIR      *vp_iterator;
vp_iterator = request->packet->vps;
while (vp_iterator)
{
      if (strcmp (vp_iterator->name, "User-Name") == 0)
            strcpy (USER_NAME, vp_iterator->strvalue);
      vp_iterator = vp_iterator->next;
}
This method also works for vendor specific attributes like Cisco-AVPAIR and
... .
Regards
Ali

On 9/12/06, Shankar Ganesh C <shankarganesh at tataelxsi.co.in> wrote:
>
>  Hi Ali,
>
> Could you let me know how did u capture the vendor specfic attributes in
> the rlm_module ?
> like the one you have described earlier
> getenv(USER_NAME) , getnev(Cisco_AVP) ?
>
> Rgds,
> Shankar ganesh
>
> -----Original Message-----
> *From:* freeradius-users-bounces+shankarganesh=
> tataelxsi.co.in at lists.freeradius.org [mailto:
> freeradius-users-bounces+shankarganesh=tataelxsi.co.in at lists.freeradius.org
> ]*On Behalf Of *Ali Majdzadeh
> *Sent:* Tuesday, September 12, 2006 5:10 PM
> *To:* FreeRadius users mailing list
> *Subject:* Question about rlm modules
>
> Hi all
> What is(are) the coresponding function pointer(s) for start and stop
> packets in an rlm module? (Something like xxx_authenticate)
> Should I define my own custome funtion pointers? Then, How can I test
> them?
>
> Best Regards
> Ali
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20060912/514b020e/attachment.html>


More information about the Freeradius-Users mailing list