Could we make "moduleload <statically linked module>" valid if the
module name contains no "." or directory separator? Or introduce a
new "module" keyword which works that way?
That would simplify slapd.conf scripting, and documentation examples
could simply include moduleload and would be correct without any
caveats about whether the modules are statically linked.
Also, moduleload seems to take an undocumented argument list which
is passed to the module init routine. See module.c:module_load().
That ought to work whether or not the module is dynamically loaded.
I don't think it does now.