Re: authorize an user using a multivalue ldap attribute

2010-10-26 Thread Ana Gallardo
Thank you very much for your responses. Conversely, you could comment out/remove the "use Data::Dumper" line > since you're not using it. It's mainly for debugging and easily > printing the entire contents of an object/array/hash/etc. > > Ok, Kevin, I don't use Data::Dumper and I can run Freerad

Re: authorize an user using a multivalue ldap attribute

2010-10-22 Thread Kevin Ehlers
On 10/22/10 6:25 AM, Jonathan Gazeley wrote: > On 22/10/10 13:16, Ana Gallardo wrote: >> Can't load '/usr/lib/perl/5.10/auto/Data/Dumper/Dumper.so' for module >> Data::Dumper: /usr/lib/perl/5.10/auto/Data/Dumper/Dumper.so: undefined >> symbol: Perl_sv_cmp at /usr/lib/perl/5.10/XSLoader.pm line 64.

Re: authorize an user using a multivalue ldap attribute

2010-10-22 Thread Jonathan Gazeley
On 22/10/10 13:16, Ana Gallardo wrote: Can't load '/usr/lib/perl/5.10/auto/Data/Dumper/Dumper.so' for module Data::Dumper: /usr/lib/perl/5.10/auto/Data/Dumper/Dumper.so: undefined symbol: Perl_sv_cmp at /usr/lib/perl/5.10/XSLoader.pm line 64. at /usr/lib/perl/5.10/Data/Dumper.pm line 36 You n

Re: authorize an user using a multivalue ldap attribute

2010-10-22 Thread Ana Gallardo
Hello Alan, and thank you for your response. You can't really do that with "unlang". I suggest using the perl module. > I flow your suggestion and write this: # cat /etc/freeradius/perl/checkRelaciones.pm use strict; use vars qw(%RAD_REQUEST %RAD_REPLY %RAD_CHECK); use Data::Dumper; use co

Re: authorize an user using a multivalue ldap attribute

2010-10-22 Thread Alan DeKok
Ana Gallardo wrote: > I want to authorize the access only if there is one attibute Relaciones > whith a positive value. So I would like to use unlang in authorize > module to check all the attributes "Relaciones" whit a regex, but I > don't know how can I check all the attributes, and how can I sto

Re: authorize an user using a multivalue ldap attribute

2010-10-22 Thread Ana Gallardo
Hello again, I have a string attribute named Relaciones in my ldap. > > This attribute can have more than one value. Actually I return those values > in the reply: > > Sending Access-Accept of id 229 to X.X.X.X port 32796 > Relaciones += "-11" > Relaciones += "03" > Relaciones += "-01"

authorize an user using a multivalue ldap attribute

2010-10-22 Thread Ana Gallardo
Hello, I have a string attribute named Relaciones in my ldap. This attribute can have more than one value. Actually I return those values in the reply: Sending Access-Accept of id 229 to X.X.X.X port 32796 Relaciones += "-11" Relaciones += "03" Relaciones += "-01" I want to authoriz