Unlang on preacct section
    Geaaru 
    geaaru at gmail.com
       
    Wed Sep 27 15:56:54 CEST 2017
    
    
  
Hi,
currently, I use freeradius-3.0.14 and I'm trying to integrate use of
cache inside of preacct section.
I see a strange behavior... when cache return not_found instead of
continue with next instruction processing of the request is interrupted
with:
Wed Sep 27 14:26:51 2017 : Debug: (0)     [cache] = notfound
Wed Sep 27 14:26:51 2017 : Debug: (0)   } # preacct = notfound
Wed Sep 27 14:26:51 2017 : Debug: (0) Not sending reply to client.
Unlang processing of the preacct section is equal to
authorize/accounting/pre-proxy o post proxy sections ?
In my server I have a configuration like this on preacct section:
preacct {
    update control {
      &Cache-Status-Only := 'yes'
      &Cache-Merge := 'no'
    }
    cache
    if (notfound) {
        sql.authorize
       update control {
         &Cache-Status-Only := 'no'
         &Cache-Merge := 'yes'
       }
        # Store entry on cache
        cache_auth
       
    } else {
      update control {
        &Cache-Status-Only := 'no'
        &Cache-Merge := 'yes'
      }
      # Retrieve data from cache
      cache
    }
    ...
}
It seems that on preacct is not accepted a return value equal to
not_found on called modules.
Thanks in advance for any suggestions or informations.
G.
    
    
More information about the Freeradius-Devel
mailing list