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
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@lists.freeradius.org [mailto:freeradius-users-bounces+shankarganesh=tataelxsi.co.in@lists.freerad ius.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
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@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@lists.freeradius.org [mailto: freeradius-users-bounces+shankarganesh=tataelxsi.co.in@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
Hi again By the way, the better approach to catch attributes' values is through the usage of the following function: vp_prints_value(char *out, int outlen, VALUE_PAIR *vp,int delimitst); Regards Ali On 9/12/06, Ali Majdzadeh <ali.majdzadeh@gmail.com> wrote:
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@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@lists.freeradius.org [mailto:freeradius-users-bounces+shankarganesh=tataelxsi.co.in@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
Hi; I need to know what is the best to work with, if I want to redirect a subnet of IPs to a single one (which is a single page), for the dial up users. I will be testing the chillispot, if there's another tested software to be used on linux, please advice. Thanks Elie Hani
On Tue 12 Sep 2006 18:43, Elie Hani wrote:
Hi;
I need to know what is the best to work with, if I want to redirect a subnet of IPs to a single one (which is a single page), for the dial up users.
I will be testing the chillispot, if there's another tested software to be used on linux, please advice.
iptables? -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Hi Peter, I have used the iptables, and I was able to redirect the Real pool of IPs to a certain destination. But after connecting and authenticated with a fake IP, I was able to trace only to the RAS server. Any idea? -----Original Message----- From: freeradius-users-bounces+ehani=wise.net.lb@lists.freeradius.org [mailto:freeradius-users-bounces+ehani=wise.net.lb@lists.freeradius.org] On Behalf Of Peter Nixon Sent: Tuesday, September 12, 2006 11:55 PM To: FreeRadius users mailing list Subject: Re: opinion?? anyone?? On Tue 12 Sep 2006 18:43, Elie Hani wrote:
Hi;
I need to know what is the best to work with, if I want to redirect a subnet of IPs to a single one (which is a single page), for the dial up users.
I will be testing the chillispot, if there's another tested software to be used on linux, please advice.
iptables? -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
I found out the solution, I used policy based routing. Thanks anyway -----Original Message----- From: freeradius-users-bounces+ehani=wise.net.lb@lists.freeradius.org [mailto:freeradius-users-bounces+ehani=wise.net.lb@lists.freeradius.org] On Behalf Of Elie Hani Sent: Wednesday, September 13, 2006 12:34 PM To: 'FreeRadius users mailing list' Subject: RE: opinion?? anyone?? Hi Peter, I have used the iptables, and I was able to redirect the Real pool of IPs to a certain destination. But after connecting and authenticated with a fake IP, I was able to trace only to the RAS server. Any idea? -----Original Message----- From: freeradius-users-bounces+ehani=wise.net.lb@lists.freeradius.org [mailto:freeradius-users-bounces+ehani=wise.net.lb@lists.freeradius.org] On Behalf Of Peter Nixon Sent: Tuesday, September 12, 2006 11:55 PM To: FreeRadius users mailing list Subject: Re: opinion?? anyone?? On Tue 12 Sep 2006 18:43, Elie Hani wrote:
Hi;
I need to know what is the best to work with, if I want to redirect a subnet of IPs to a single one (which is a single page), for the dial up users.
I will be testing the chillispot, if there's another tested software to be used on linux, please advice.
iptables? -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Shankar Ganesh C <shankarganesh@tataelxsi.co.in> wrote:
Could you let me know how did u capture the vendor specfic attributes in the rlm_module ?
Read the source code to rlm_files. VSA's are just normal attributes. You can refer to them by name. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
"Ali Majdzadeh" <ali.majdzadeh@gmail.com> wrote:
What is(are) the coresponding function pointer(s) for start and stop packets in an rlm module? (Something like xxx_authenticate)
The "accounting" sections handle accounting packets. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
participants (5)
-
Alan DeKok -
Ali Majdzadeh -
Elie Hani -
Peter Nixon -
Shankar Ganesh C