FreeRADIUS InkBridge

Cat

The file.cat function returns the contents of a file.

The function takes a second argument, which is the maximum number of bytes that should be returned. If the file is larger than this then the function fails and nothing is returned.

Syntax

%file.cat(string, uint32)

Example 1. Returning the contents of a file
octets crl

crl := %file.cat('/etc/ssl/certs/ca.crl', 8192)

File access restriction

Files accessed in this function are restricted by the limit files section in the main security configuration. If present in radiusd.conf, only files in the paths listed can be accessed.