Is it possible to disable support for discovery at the pubsub service level? I was able to disable discovery at the top level by commenting out mod_caps and mod_disco from the modules section (now querying for disco#info and disco#items at the root level (hostname.com) returns feature-not-implemented), but arbitrary users can still get a response to disco#info and disco#items when querying the pubsub level (pubsub.hostname.com).
My goal is not to provide any sort of discovery at all. Users must know a priori the names of the nodes they're interested in subscribing to. Ideally, users would also be forbidden from retrieving information about nodes they're not whitelisted to access.
Thanks!
ondrej wrote: Is it possible
Is it possible to disable support for discovery at the pubsub service level?
Yes. In the file src/mod_pubsub/mod_pubsub.erl remove the lines:
Then compile, install and restart ejabberd.