[jdev] Node Owner subscribing users to a node

andy nes andynes83 at gmail.com
Wed Dec 5 11:48:05 UTC 2012


I did try it with bare JIDs. The sender is an admin. But even then it
failed. The server (ejabberd) sent an error message.

/andy


On Wed, Dec 5, 2012 at 4:52 PM, Sergey Dobrov <binary at jrudevels.org> wrote:

> On 12/05/2012 06:16 PM, Kim Alvefur wrote:
>
>> On 2012-12-05 11:00, andy nes wrote:
>>
>>> Hey,
>>>
>>> I have a pubsub node, to which publishers publish their updates.
>>>
>>> As an admin and node owner, I want some users to subscribe to the node. I
>>> want to do that in the backend using the web admin so that the first time
>>> the users login using their jid, they start receiving the published items
>>> from the node.
>>>
>>> Is this possible?
>>>
>>
>> The protocol doesn't make it impossible for someone with sufficient
>> privileges to subscribe someone else, see
>> http://xmpp.org/extensions/**xep-0060.html#subscriber-**subscribe<http://xmpp.org/extensions/xep-0060.html#subscriber-subscribe>
>>
>> And the server can of course do whatever it wishes to the subscription
>> list.
>>
>
> Hm, interesting note, it seems you're right. But don't sure if ejabberd
> supports this trick:
>
>  If the bare JID portions of the JIDs do not match as described above and
>> the requesting entity does not have some kind of admin or proxy privilege
>> as defined by the implementation, the service MUST return a <bad-request/>
>> error, which SHOULD also include a pubsub-specific error condition of
>> <invalid-jid/>.
>>
>
>
>
>
>> --
>> Regards,
>> Kim "Zash" Alvefur
>>
>>
>>
>>
>> ______________________________**_________________
>> JDev mailing list
>> Info: http://mail.jabber.org/**mailman/listinfo/jdev<http://mail.jabber.org/mailman/listinfo/jdev>
>> Unsubscribe: JDev-unsubscribe at jabber.org
>> ______________________________**_________________
>>
>>
>
> --
> With best regards,
> Sergey Dobrov,
> XMPP Developer and JRuDevels.org founder.
> ______________________________**_________________
> JDev mailing list
> Info: http://mail.jabber.org/**mailman/listinfo/jdev<http://mail.jabber.org/mailman/listinfo/jdev>
> Unsubscribe: JDev-unsubscribe at jabber.org
> ______________________________**_________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20121205/1296abe1/attachment.html>


More information about the JDev mailing list