[ejabberd] Admin subscribing to node on behalf of users

Andy Skelton skeltoac at gmail.com
Wed Nov 25 04:05:15 MSK 2009


On Tue, Nov 24, 2009 at 6:29 PM, Adriano Bonat <adrianob at gmail.com> wrote:
> Hello,
>
> I'm trying to use PubSub to send notifications to a large number of
> users, but these users will be subscribed to nodes by the admin user
> of our ejabberd server.
>
> The problem at the moment is that the admin user is creating the node,
> and when it tries to subscribe an user to the node, I'm receiving a
> bad-request/invalid-jid error.
>
> Doesn't ejabberd support admin users or node's owners to subscribe on
> behalf of other users?

Yes but it doesn't allow you to use the Subscriber methods as any JID
other than the subscriber. You must use the owner's Manage
Subscriptions method:
http://xmpp.org/extensions/xep-0060.html#owner-subscriptions

Cheers,
Andy


More information about the ejabberd mailing list