Ejabberd: Docker Container Web Admin

Created on 17 May 2019  路  3Comments  路  Source: processone/ejabberd

When running
docker run --name ejabberd -d -p 5222:5222 -p 5280:5280 ejabberd/ecs

and then adding an admin user with
docker exec -it ejabberd bin/ejabberdctl register admin localhost passw0rd

I am able to login to the admin page but only Virtual Host is available for configuration.

Needs more info

Most helpful comment

I am able to login to the admin page

This means that the JID and password you provided in the WebAdmin page are correct, in the sense that they correspond to an existing account, registered in ejabberd. Of course, as you recently registered that account, that account exists :)

but only Virtual Host is available for configuration.

That account can not see any of the administrative pages in WebAdmin because that account does NOT have admin rights set in ejabberd.yml. Search in that configuration file, what you are missing is something like this:

    acl:
      admin:
        - user: "admin@localhost"

All 3 comments

i don't understand the problem

I am able to login to the admin page

This means that the JID and password you provided in the WebAdmin page are correct, in the sense that they correspond to an existing account, registered in ejabberd. Of course, as you recently registered that account, that account exists :)

but only Virtual Host is available for configuration.

That account can not see any of the administrative pages in WebAdmin because that account does NOT have admin rights set in ejabberd.yml. Search in that configuration file, what you are missing is something like this:

    acl:
      admin:
        - user: "admin@localhost"

@badlop That was it thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BoopathyRaja picture BoopathyRaja  路  3Comments

shazvan275 picture shazvan275  路  3Comments

ThomasLeister picture ThomasLeister  路  4Comments

sujankumar4593 picture sujankumar4593  路  4Comments

lgg picture lgg  路  4Comments