Craig Huckabee wrote:


attr_rewrite works but breaks EAP for me :(


I've reattempted using the users file again, and double checked that files does indeed come before the ldap sections in the authorize section - still get a blank filter.

A debug run shows that files is indeed getting processed, somehow 'Hint' is never getting set. Could my regex be wrong ?


DEFAULT User-Name =~ "^([^/]+)/(.*)", Hint := `%{2}` Fall-Through = yes



Just to follow up to myself, here is the behavior I'm seeing (using FreeRADIUS built from CVS yesterday to include Alan's fix - thanks!)


If I use this in the users file:

DEFAULT User-Name =~  "^([^/]+)/(.*)", Foo := `%{2}`
...

then attempt to look at Foo using %{check:Foo} (in radiusd.conf), I get nothing - Foo is empty.


However, if I use this:


DEFAULT User-Name =~  "^([^/]+)/(.*)"
   Foo = `%{2}`
...

then attempt to look at Foo using %{reply:Foo}, I get the expected value and the filter works.

(note Foo is defined in the dictionary as a custom attribute, wasn't 100% sure if that was required - using Hint yielded the same results)


So, should 'check:<variable>' work for the first case ? Is this a bug or (more likely) something I'm missing from my configuration.


Thanks in advance and also thanks for the patience while I learn the ins and outs of the configuration.

--Craig

- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to