[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Radiusplugin-users] help with VSA script
From: |
Ralf Lübben |
Subject: |
Re: [Radiusplugin-users] help with VSA script |
Date: |
Thu, 26 Mar 2009 08:19:47 +0100 |
User-agent: |
KMail/1.10.4 (Linux/2.6.27-11-generic; KDE/4.1.4; i686; ; ) |
Sorry I was only partially right:
1) If your attribute is a string, you don't have to do anything. Every unknown
attribute is passed to the vsascript as a string.
2) If not:
a) Update the dictionary file radiusplugin_2c/RadiusClass/utilities/dictionary
, this file should be equal to the dictionary file of the radius server.
b) Run vsahelper.pl in the current directory.
c) Copy vsa.h to radiusplugin_2c/RadiusClass/
d) Replace the old if statement in radiusplugin_2c/UserAuth.cpp with new one
in radiusplugin_2c/RadiusClass/utilities/vsa_if_statements.txt.
e) Recompile the plugin.
Ralf
On Wednesday 25 March 2009 21:47:16 you wrote:
> Actually freeradius doesn't use the mysql dictionary. The radius gui
> manager just imported the dictionary file and created a lookup table for
> easy attribute management.
>
> So if I understand correctly there is not need to use the vsahelper
> script to compile the modified dictionary?
>
> Ralf Lübben wrote:
> > Hi,
> >
> > you have to declare your vs attribute somewhere. I did it always in the
> > dictionary file, but I think the freeradius mysql dictionary should be
> > fine also (without warrenty I have never used freeradius with mysql).
> >
> > The plugin only needs the path to the vsa-script in the config that's
> > all. Than the plugin will call your script and pass the attribute to your
> > script.
> >
> > Ralf
> >
> >
> >
> > -------- Original-Nachricht --------
> >
> >> Datum: Wed, 25 Mar 2009 13:51:08 -0400
> >> Von: William Cooley <address@hidden>
> >> An: address@hidden
> >> Betreff: [Radiusplugin-users] help with VSA script
> >>
> >>
> >>
> >> I'm interested in creating a vsa script that adds a custom iptables rule
> >> when a user connects and removes it when the user disconnects.
> >>
> >> I looked at the sample perl script and am wondering how to setup a
> >> custom vendor and attribute.
> >> Can I just add it to my freeradius mysql dictionary or does it have to
> >> be added to the dictionary file in the plugin source folder and added
> >> with the
> >> vsahelper script? Do I have to recompile the plugin once I've added the
> >> attribute?
> >>
> >> -William
> >>
> >>
> >>
> >> _______________________________________________
> >> Radiusplugin-users mailing list
> >> address@hidden
> >> http://lists.nongnu.org/mailman/listinfo/radiusplugin-users