Let a user entry in raddb/users
DEFAULT Auth-Type := Accept
        Reply-Message := `%{sql:SELECT 'before %{User-Name:-default value} after'}`

Debug output:
Sat Jul 26 22:43:12 2003 : Debug: Thread 1 handling request 0, (1 handled so far)
        User-Name = "[EMAIL PROTECTED]"
        User-Password = "*"
        NAS-IP-Address = 255.255.255.255
        NAS-Port = 1
Sat Jul 26 22:43:12 2003 : Debug: modcall: entering group authorize
Sat Jul 26 22:43:12 2003 : Debug:   modcall[authorize]: module "preprocess" returns ok
Sat Jul 26 22:43:12 2003 : Debug:     users: Matched DEFAULT at 220
Sat Jul 26 22:43:12 2003 : Debug: radius_xlat: Running registered xlat function of 
module sql for string 'SELECT 'before %{User-Name'

It looks like ":-" was assosiated with the outer brace instead of inner.

Not sure I'm able to make a patch...


-- 
Fduch M. Pravking

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

Reply via email to