Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin account not recognized on new installation #1255

Closed
wakerb opened this issue Aug 17, 2016 · 7 comments
Closed

Admin account not recognized on new installation #1255

wakerb opened this issue Aug 17, 2016 · 7 comments

Comments

@wakerb
Copy link

wakerb commented Aug 17, 2016

What version of ejabberd are you using?

I tried both 16.08 and 16.06

What operating system (version) are you using?

Windows Server 2008R2, Windows 7 and 10

How did you install ejabberd (source, package, distribution)?

Windows Installer downloaded from Process One.

What did not work as expected? Are there error messages in the log? What
was the unexpected behavior? What was the expected result?

After installing ejabberd, and attempting to log into the admin interface the login credentials are not recognized. The system thinks the default admin account does not exist. The install and ejabberd logs are attached.
ejabberd-logs.zip

@badlop
Copy link
Member

badlop commented Aug 19, 2016

I've tested using ejabberd 16.08 linux compiled from source, configured in ejabberd.yml the host "Jabber":

hosts:
  - "Jabber"

Then I created account admin@Jabber and logged in it.

11:13:01.872 [info] ({socket_state,gen_tcp,#Port<0.22734>,<0.1339.0>})
 Accepted legacy authentication for admin@jabber/tka1 by ejabberd_auth_mnesia from 127.0.0.1

Then in the webadmin, provided as user "admin@Jabber", and the proper password, and I was able to login.

If I provide another username or another servername in the login window, then it returns the same error you get:

11:14:32.789 [warning] Access of <<"admin2@Jabber">> from <<"127.0.0.1">> failed with error:
 <<"inexistent-account">>

In your case, the problem is that the installer is not able to register the account:

C:\Program Files\ejabberd-16.06\bin>bash ejabberdctl register "admin" "Jabber" "12345"
Can't register user admin@Jabber at node ejabberd@localhost: not_allowed

This is probably a bug in the installer. Until this is fixed, you can enable mod_register in the configuration file, then create that account yourself using a Jabber client, or calling the command line:

ejabberdctl register "admin" "Jabber" "12345"

@debalance
Copy link

I guess this is because of #1231, at least with 16.08.

@wakerb
Copy link
Author

wakerb commented Aug 22, 2016

Thanks for your help guys, I've been away for a few days.

Badlop, I'm not quite sure what you mean when you say "enable mod_register"
I found the configuration file. The mod_register section, according to the documentation, contains a number of attributes. I'm not quite sure what to change. Below is the mod_register section from my configuration file.

  mod_register:
    ##
    ## Protect In-Band account registrations with CAPTCHA.
    ##
    ##   captcha_protected: true
    ##
    ## Set the minimum informational entropy for passwords.
    ##
    ##   password_strength: 32
    ##
    ## After successful registration, the user receives
    ## a message with this subject and body.
    ##
    welcome_message:
      subject: "Welcome!"
      body: |-
        Hi.
        Welcome to this XMPP server.
    ##
    ## When a user registers, send a notification to
    ## these XMPP accounts.
    ##
    ##   registration_watchers:
    ##     - "admin1@example.org"
    ##
    ## Only clients in the server machine can register accounts
    ##
    ip_access: trusted_network
    ##
    ## Local c2s or remote s2s users cannot register accounts
    ##
    ##   access_from: deny
    access: register

@badlop
Copy link
Member

badlop commented Aug 23, 2016

Apparently you have mod_register already enabled. So, continue with my steps: try to register the admin account using a Jabber client (don't use ejabberdctl register, because it has a bug in ejabberd 16.08), then try again to login in the web.

@wakerb
Copy link
Author

wakerb commented Aug 24, 2016

Thanks all who volunteered their time to help.

I did use Miranda IM client and did appear to create an admin user (I think). A small IM style window did pop up, but showed admin@jabber to be offline and couldn't be brought online. I am still unable to connect to the admin interface. I can not connect to this machine from any other machine with any type of client.

I downloaded and installed Openfire Server on the same machine. It just worked. I created a bunch of tables in my SQL database with very little effort and can established chat sessions on demand with several clients from any machine. I can now proceed with the IM component of my project.

It seems to me that on Windows, Ejabberd is like a nice, feature loaded, high performance car that just won’t start. In other words, it’s useless.

@badlop
Copy link
Member

badlop commented Aug 25, 2016

Ok, as the original problem seems to be #1231 and it will be fixed in 16.09, this ticket can be closed.

@badlop badlop closed this as completed Aug 25, 2016
@lock
Copy link

lock bot commented Jun 11, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants