How does user1 (admin) submit presence subscription request from user2 to user 3 [closed]

让人想犯罪 __ 提交于 2019-12-25 04:58:16

问题


I hope it is possible because I couldn't find it anywhere on the web or in the XMPP/ejabberd docs: I run ejabberd and would like the ability for user1 (an administrator account) to be able to push a presence subscription request to user3 that appears to have come from user2. For security reasons I would have user1 be designated as a user with privileges to do this. Is this possible and can you give me any pointers?


回答1:


It can be managed through Ejabberd database.

Configure the Ejabberd to communicate with the external database (mysql or mssql).

Create the dynamic web page in any server-side prog. to login with admin on ejabberd and change the rosterusers table in the external database.

By default Ejabberd uses mnesia database. You can configure it with mssql or mysql.

For mssql :

http://www.ejabberd.im/mssql



来源:https://stackoverflow.com/questions/10954382/how-does-user1-admin-submit-presence-subscription-request-from-user2-to-user-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!