authorize an user using a multivalue ldap attribute

Alan DeKok aland at deployingradius.com
Fri Oct 22 12:57:03 CEST 2010


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 stop
> procesing the attributes if I found one wihtout a minus sign.
> 
> 
> if ("%{reply:Relaciones}" =~ /^([0-9]{2})/) {

  You can't really do that with "unlang".  I suggest using the perl module.

  Alan DeKok.




More information about the Freeradius-Users mailing list