Hello,
I try to subscription node by with admin JID by using XEP-0060.
Goal is to create node and subscribe user by administrator over XMPP.
But server responds error 404 or Bad request invalid JID.
Is it possible to configure Ejbberd to allowing this case?
(Ejabberd community ed v. 15.02)
<iq xmlns='jabber:client' from='pubsub.testco.com' to='admin@testco.com/MatriX' type='error' id='MX_6'><pubsub xmlns='http://jabber.org/protocol/pubsub'><subscribe node='titi25' jid='lolo@testco.com/MatriX'/></pubsub><error code='400' type='modify'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><invalid-jid xmlns='http://jabber.org/protocol/pubsub#errors'/></error></iq>
Thanks,
Hello, The behaviour you
Hello,
The behaviour you describe would not be conforme to the PubSub specification as described inXEP-0060: Publish-Subscribe .
More specifically,section 6.1.3.1 JIDs Do Not Match is self explanatory:
To have a non-custom PubSub behaviour, you probably need to write your own ejabberd PubSub plugin. However, it really depend what you want to do. Relying on admin status of ejabberd to do privileged operations may be a security risk. I would rather write a custom ejabberd module to handle back-end to back-end operation for admin tasks.
Hello , In section 6.1.3.1
Hello ,
In section 6.1.3.1 JIDs Do Not Match, you have a note that explain this :
Note: An implementation MAY enable the service administrator to configure a list of entities that are excluded from this check; those entities may be considered "trusted proxies" that are allowed to subscribe on behalf of other entities. In the same way, implementations MAY enable blacklisting of entities that are not allowed to perform specific operations (such as subscribing or creating nodes).
Ejabberd can be set user as "trusted proxies" ?
thanks,
No, this feature is not
No, this feature is not supported. As I mentioned is it generally not a good approach to grant right to privileged users. It means that you have a way to seriously compromise your service if the password for that user is compromised.
If you still want to go that way, I think you will need to change the Pubsub code is a custom way.
hi cvoluter, did you managed
hi cvoluter,
did you managed to add a user as "trusted proxies" ?
what was your solution for that?
Thanks,