On Sep 11, 2019, at 6:49 PM, Viktor Kolesnikov <vvkolesnikoff@gmail.com> wrote:
I expected this attribute to be ignored if the module is not loaded, the condition will not be met or will be skipped and the check will return a reject.
The documentation doesn't say that happens.
I am trying to create a configuration of virtual server with many access checks combining different modules and i think that enabling/disabling modules by creating a link is easier than editing configuration file in many places.
You can include pieces via $INCLUDE. There's even a $-INCLUDE which includes files only if they exist.
Maybe checking the condition that the module was loaded would be useful here, but I have not found a way to do this checking using unlang, and I think that it does not exist.
See $-INCLUDE. This is documented in "man unlang" Alan DeKok.