Re: Confused by doc/variables.txt

2004-05-10 Thread Craig Huckabee
Alan DeKok wrote: Craig Huckabee <[EMAIL PROTECTED]> wrote: Doesn't work - both %{Foo} and %{request:Foo} come back empty when setting Foo on the check line in users. Hmm... Anything else you can think of ? Try using another attribute. Or, follow the code execution in src/modules/

Re: Confused by doc/variables.txt

2004-05-10 Thread Alan DeKok
Craig Huckabee <[EMAIL PROTECTED]> wrote: > Doesn't work - both %{Foo} and %{request:Foo} come back empty when > setting Foo on the check line in users. Hmm... > Anything else you can think of ? Try using another attribute. Or, follow the code execution in src/modules/rlm_files/rlm_files

Re: Confused by doc/variables.txt

2004-05-10 Thread Craig Huckabee
Alan DeKok wrote: Craig Huckabee <[EMAIL PROTECTED]> wrote: 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. Try the original, but look for foo in %{Foo}, or %{r

Re: Confused by doc/variables.txt

2004-05-07 Thread Alan DeKok
Craig Huckabee <[EMAIL PROTECTED]> wrote: > 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. Try the original, but look for foo in %{Foo}, or %{reques

Re: Confused by doc/variables.txt

2004-05-07 Thread Craig Huckabee
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

Re: Confused by doc/variables.txt

2004-05-06 Thread Alan DeKok
Craig Huckabee <[EMAIL PROTECTED]> wrote: >Trying to follow the examples given in variables.txt and using the > 'users' file, things like: > > DEFAULT User-Name =~ "^([^/]+)/(.*)", > Everything = `%{0}`, > Test-Variable = `%{2}`, > Fall-Through = yes > > causes a core du

Re: Confused by doc/variables.txt

2004-05-06 Thread Craig Huckabee
Another data point - Trying to follow the examples given in variables.txt and using the 'users' file, things like: DEFAULT User-Name =~ "^([^/]+)/(.*)", Everything = `%{0}`, Test-Variable = `%{2}`, Fall-Through = yes causes a core dump on startup. --Craig - List info

Re: Confused by doc/variables.txt

2004-05-06 Thread Craig Huckabee
Kostas Kalevras wrote: The other idea is to use attr_rewrite as already suggested. In any case, make sure that the files module comes before ldap in the authorize section for the above to work. attr_rewrite works but breaks EAP for me :( I've reattempted using the users file again, and double c

Re: Confused by doc/variables.txt

2004-05-05 Thread Kostas Kalevras
On Wed, 5 May 2004, Craig Huckabee wrote: > > > Kostas Kalevras wrote: > > > > > The above won't work. You can't just add the User-Name line in the rlm_ldap > > configuration and expect it to work. > > I didn't expect it to just work, but I wanted to at least try something > before posting a quest

Re: Confused by doc/variables.txt

2004-05-05 Thread Craig Huckabee
Kostas Kalevras wrote: The above won't work. You can't just add the User-Name line in the rlm_ldap configuration and expect it to work. I didn't expect it to just work, but I wanted to at least try something before posting a question. The documentation isn't as clear as your answer so I was g

Re: Confused by doc/variables.txt

2004-05-05 Thread Kostas Kalevras
On Tue, 4 May 2004, Craig Huckabee wrote: > > Where can the regular expressions discussed in 'doc/variables.txt' be > used ? I'd like to modify the User-Name attribute as passed in for use > as a filter for rlm_ldap. > > For example, during an EAP-TLS, I get an EAP packet like this: > > NAS-IP-Ad

Confused by doc/variables.txt

2004-05-04 Thread Craig Huckabee
Where can the regular expressions discussed in 'doc/variables.txt' be used ? I'd like to modify the User-Name attribute as passed in for use as a filter for rlm_ldap. For example, during an EAP-TLS, I get an EAP packet like this: NAS-IP-Address = ... NAS-Port-Type = Async User-Name = "host/g21