hmm. Looks like I need to go the hard coded way from the client side. Thanks for suggestions.<div><br></div><div>/andy</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 5:30 PM, Sergey Dobrov <span dir="ltr"><<a href="mailto:binary@jrudevels.org" target="_blank">binary@jrudevels.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 12/05/2012 06:48 PM, andy nes wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I did try it with bare JIDs. The sender is an admin. But even then it<br>
failed. The server (ejabberd) sent an error message.<br>
</blockquote>
<br></div>
So you need to patch the server in order to be able to send such queries.<br>
<br>
But I still recommend to do this action from the subscriber side.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
/andy<br>
<br>
<br>
On Wed, Dec 5, 2012 at 4:52 PM, Sergey Dobrov <<a href="mailto:binary@jrudevels.org" target="_blank">binary@jrudevels.org</a><br></div><div class="im">
<mailto:<a href="mailto:binary@jrudevels.org" target="_blank">binary@jrudevels.org</a>>> wrote:<br>
<br>
On 12/05/2012 06:16 PM, Kim Alvefur wrote:<br>
<br>
On 2012-12-05 11:00, andy nes wrote:<br>
<br>
Hey,<br>
<br>
I have a pubsub node, to which publishers publish their updates.<br>
<br>
As an admin and node owner, I want some users to subscribe<br>
to the node. I<br>
want to do that in the backend using the web admin so that<br>
the first time<br>
the users login using their jid, they start receiving the<br>
published items<br>
from the node.<br>
<br>
Is this possible?<br>
<br>
<br>
The protocol doesn't make it impossible for someone with sufficient<br>
privileges to subscribe someone else, see<br></div>
<a href="http://xmpp.org/extensions/__xep-0060.html#subscriber-__subscribe" target="_blank">http://xmpp.org/extensions/__<u></u>xep-0060.html#subscriber-__<u></u>subscribe</a> <<a href="http://xmpp.org/extensions/xep-0060.html#subscriber-subscribe" target="_blank">http://xmpp.org/extensions/<u></u>xep-0060.html#subscriber-<u></u>subscribe</a>><div class="im">
<br>
<br>
And the server can of course do whatever it wishes to the<br>
subscription list.<br>
<br>
<br>
Hm, interesting note, it seems you're right. But don't sure if<br>
ejabberd supports this trick:<br>
<br>
If the bare JID portions of the JIDs do not match as described<br>
above and the requesting entity does not have some kind of admin<br>
or proxy privilege as defined by the implementation, the service<br>
MUST return a <bad-request/> error, which SHOULD also include a<br>
pubsub-specific error condition of <invalid-jid/>.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Regards,<br>
Kim "Zash" Alvefur<br>
<br>
<br>
<br>
<br></div>
______________________________<u></u>___________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/__mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/__<u></u>mailman/listinfo/jdev</a><br>
<<a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/<u></u>mailman/listinfo/jdev</a>><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
<mailto:<a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@<u></u>jabber.org</a>><br>
______________________________<u></u>___________________<div class="im"><br>
<br>
<br>
<br>
--<br>
With best regards,<br>
Sergey Dobrov,<br>
XMPP Developer and JRuDevels.org founder.<br></div>
______________________________<u></u>___________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/__mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/__<u></u>mailman/listinfo/jdev</a><br>
<<a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/<u></u>mailman/listinfo/jdev</a>><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
<mailto:<a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@<u></u>jabber.org</a>><br>
______________________________<u></u>___________________<div class="im"><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/<u></u>mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
______________________________<u></u>_________________<br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
With best regards,<br>
Sergey Dobrov,<br>
XMPP Developer and JRuDevels.org founder.<br>
______________________________<u></u>_________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/<u></u>mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
______________________________<u></u>_________________<br>
</div></div></blockquote></div><br></div>