Reimplement workaround for samba dependency on webserver module