erlang 如何在ejabberd.yml文件中配置admin用户

pftdvrlh  于 2022-12-08  发布在  Erlang
关注(0)|答案(1)|浏览(207)
acl:
  ##
  ## The 'admin' ACL grants administrative privileges to XMPP accounts.
  ## You can put here as many accounts as you want.
  ##
  admin:
    user:
      - "******@*****"

My ejabberd.yml file has this properties. I want to get the user value in a module to get Admin user's name. Since I am new to ejabberd, confused with so many codes which is getting max_user_sessions, shaper_rules etc. How can I do this?
Advance thanks.

mefy6pfw

mefy6pfw1#

如何在ejabberd.yml文件中配置admin用户
如果在vhost“localhost”中注册了帐户“user1”,并且您希望授予它管理权限,请在ejabberd.yml中进行如下配置:

acl:
  admin:
    user:
      - user1@localhost

相关问题