FreeRADIUS InkBridge

Summary of Built-in Functions

Table 1. File Handling Functions

Function

Description

escape

Returns an escaped or safe version of the input string.

exists

Checks to see if a file exists on the filesystem.

head

Returns the first line of the file.

rm

Removes a file from the filesystem.

remove

Returns the size of a file.

tail

Return the last line of a file or the last number(n) of lines of a file.

Miscellaneous Functions

Table 2. Miscellaneous Functions

Function

Description

Server Configuration

Examine configuration items.

length

Get the length of data.

Miscellaneous

Functions to execute. regular expression search on string, using pattern.

rand

Generate random integers.

Pair Manipulation

Table 3. Pair Manipulation

Function

Description

debug

Print attributes to the debug output.

immutable

Mark attributes as immutable (cannot be changed).

print

Print attribute name and value to string.

String Manipulation

Table 4. String manipulation
Function Description

concat

Concatenate strings with delimiters.

split

Split a string based on delimiters.

length

Returns the size of the data.

lpad

Left pad a string.

rpad

Right pad a string.

rand

Return a random string .based on input format

lower

Convert the input string. to lowercase.

upper

Convert the input string. to uppercase

Time Management

Table 5. Time Management
Function Description

character

Single character. expansions

time

Generic (too complex). time function

is_dst

Is the system running in DST?.

now

Return the current time.

offset

Return UTC offset.

request

Return the time when the request was received.