ejabberd - Comments for "PubSub / Su Smack - Cant create PubSub Node / invalid conf... Please" https://www.ejabberd.im/node/3380 en Thanks https://www.ejabberd.im/node/3380#comment-53994 <p>Thanks for the quick answer, helped me a lot!!!<br /> :D</p> Thu, 05 Feb 2009 12:10:34 +0000 Pilger comment 53994 at https://www.ejabberd.im Two small errors in your stanza to create node https://www.ejabberd.im/node/3380#comment-53992 <p>Your stanza has two problems:</p> <ol> <li>The user "admin@forth-laptop" can only create nodes in "/home/forth-laptop/admin/*" . Check <noindex><a href="/mod_pubsub-usage" rel="nofollow" >How to use ejabberd's pubsub module</a></noindex> </li><li>ejabberd 2.0.3 implements XEP-0060 v1.12. It requires that a stanza for node creation includes 'create' element, and also 'configure' element. Probably you got confused by <noindex><a href="http://xmpp.org/extensions/xep-0060.html#example-113" rel="nofollow" >Example 113</a></noindex>, that shows node creation without 'configure'. I'll report this mistake in the document. </li></ol> <p>This is wrong (needs to fix 1 and 2):</p> <div class="codeblock"><code>&lt;iq to=&quot;pubsub.forth-laptop&quot; from=&quot;admin@forth-laptop&quot; type=&quot;set&quot;&gt;<br />&nbsp; &lt;pubsub xmlns=&quot;http://jabber.org/protocol/pubsub&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;create node=&#039;/home/forth/forth-laptop/pubsub&#039;/&gt;<br />&nbsp; &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> <p>This is wrong (needs to fix 1):</p> <div class="codeblock"><code>&lt;iq to=&quot;pubsub.forth-laptop&quot; from=&quot;admin@forth-laptop&quot; type=&quot;set&quot;&gt;<br />&nbsp; &lt;pubsub xmlns=&quot;http://jabber.org/protocol/pubsub&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;create node=&#039;/home/forth/forth-laptop/pubsub&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;configure/&gt;<br />&nbsp; &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> <p>This is wrong (needs to fix 2):</p> <div class="codeblock"><code>&lt;iq to=&quot;pubsub.forth-laptop&quot; from=&quot;admin@forth-laptop&quot; type=&quot;set&quot;&gt;<br />&nbsp; &lt;pubsub xmlns=&quot;http://jabber.org/protocol/pubsub&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;create node=&#039;/home/forth-laptop/admin&#039;/&gt;<br />&nbsp; &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> <p>Finally, this is correct :D</p> <div class="codeblock"><code>&lt;iq to=&quot;pubsub.forth-laptop&quot; from=&quot;admin@forth-laptop&quot; type=&quot;set&quot;&gt;<br />&nbsp; &lt;pubsub xmlns=&quot;http://jabber.org/protocol/pubsub&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;create node=&#039;/home/forth-laptop/admin&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;configure/&gt;<br />&nbsp; &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> Wed, 04 Feb 2009 16:18:49 +0000 mfoss comment 53992 at https://www.ejabberd.im