[jdev] Node Owner subscribing users to a node
andy nes
andynes83 at gmail.com
Wed Dec 5 12:03:40 UTC 2012
hmm. Looks like I need to go the hard coded way from the client side.
Thanks for suggestions.
/andy
On Wed, Dec 5, 2012 at 5:30 PM, Sergey Dobrov <binary at jrudevels.org> wrote:
> On 12/05/2012 06:48 PM, andy nes wrote:
>
>> I did try it with bare JIDs. The sender is an admin. But even then it
>> failed. The server (ejabberd) sent an error message.
>>
>
> So you need to patch the server in order to be able to send such queries.
>
> But I still recommend to do this action from the subscriber side.
>
>
>> /andy
>>
>>
>> On Wed, Dec 5, 2012 at 4:52 PM, Sergey Dobrov <binary at jrudevels.org
>> <mailto: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><
>> 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>
>> <http://mail.jabber.org/**mailman/listinfo/jdev<http://mail.jabber.org/mailman/listinfo/jdev>
>> >
>> Unsubscribe: JDev-unsubscribe at jabber.org
>> <mailto:JDev-unsubscribe@**jabber.org<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>
>> <http://mail.jabber.org/**mailman/listinfo/jdev<http://mail.jabber.org/mailman/listinfo/jdev>
>> >
>> Unsubscribe: JDev-unsubscribe at jabber.org
>> <mailto:JDev-unsubscribe@**jabber.org <JDev-unsubscribe at jabber.org>>
>> ______________________________**___________________
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> 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: <https://www.jabber.org/jdev/attachments/20121205/bd15be62/attachment-0001.html>
More information about the JDev
mailing list