rlm_sql_log - directory creation

Brian Candler B.Candler at pobox.com
Thu Feb 9 13:13:37 CET 2012


Attached is a small patch we use to rlm_sql_log to create (one level of)
directories automatically.

This is because we use

  sql_log {
    path = "${radacctdir}/%{%{NAS-IP-Address}:-0.0.0.1}/sql_%Y%m%d.acc"
    ...
  }

and we don't want to have to remember to create new subdirectories whenever
a new NAS comes online.

Is this something which might be considered for a future version? Perhaps
more generally, any module which writes files could have a flag which
enables 'mkdir -p' type functionality?

Regards,

Brian.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlm_sql_log.diff.gz
Type: application/x-gunzip
Size: 741 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20120209/3b8d7741/attachment.bin>


More information about the Freeradius-Devel mailing list