ejabberd - Comments for "Cannot login http://hostname:5280/admin" https://www.ejabberd.im/node/999 en Ejabberd is running, but do not know how to connect to it, help! https://www.ejabberd.im/node/999#comment-2132 <p>Hi, I have made the ejabberd running. I opened the <noindex><a href="http://hostnmae:5280/admin" title="http://hostnmae:5280/admin" rel="nofollow" >http://hostnmae:5280/admin</a></noindex> page but I do not understand anything in it.<br /> How to set up a client?<br /> The client can make a new account or we have to set it up for him prior he get connected?<br /> I used the same user name and password which is used in the adminstration page and tried to connect ejabberd server from Exodus, it always failed to log to my server. Then I had a look in the server it says the connnection has accepted.<br /> If any body would help me, I would give you the user name and password to go into my administration page to set up an initial configuration for me.</p> Sun, 13 Aug 2006 14:01:33 +0000 breakevilaxis comment 2132 at https://www.ejabberd.im naive error % https://www.ejabberd.im/node/999#comment-2131 <p>I did not know the % sign is the comment sign in erl. After I erase it and make the line effected. Now it is working.</p> Sun, 13 Aug 2006 02:27:00 +0000 breakevilaxis comment 2131 at https://www.ejabberd.im Client cannot connect to the server. https://www.ejabberd.im/node/999#comment-2130 <p>This is my configuration file. I canno figour out what is wrong.<br /> Someone please help!<br /> Is there any debug mode so that we can find any hint from the log file? Now the log file is useless. No error can be grapped.</p> <p>% $Id: ejabberd.cfg.example 538 2006-04-22 04:02:42Z alexey $</p> <p>%override_acls.</p> <p>% Users that have admin access. Add line like one of the following after you<br /> % will be successfully registered on server to get admin access:<br /> %{acl, admin, {user, "admin","anna90"}}.<br /> %{acl, admin, {user, "ermine"}}.</p> <p>% Blocked users:<br /> %{acl, blocked, {user, "test"}}.</p> <p>% Local users:<br /> {acl, local, {user_regexp, ""}}.</p> <p>% Another examples of ACLs:<br /> %{acl, jabberorg, {server, "jabber.org"}}.<br /> %{acl, aleksey, {user, "aleksey", "jabber.ru"}}.<br /> %{acl, test, {user_regexp, "^test"}}.<br /> %{acl, test, {user_glob, "test*"}}.</p> <p>% Only admins can use configuration interface:<br /> {access, configure, [{allow, admin}]}.</p> <p>% Every username can be registered via in-band registration:<br /> % You could replace {allow, all} with {deny, all} to prevent user from using<br /> % in-band registration<br /> {access, register, [{allow, all}]}.</p> <p>% After successful registration user will get message with following subject<br /> % and body:<br /> {welcome_message,<br /> {"Welcome!",<br /> "Welcome to Jabber Service. "<br /> "For information about Jabber visit http://jabber.org"}}.<br /> % Replace them with 'none' if you don't want to send such message:<br /> %{welcome_message, none}.</p> <p>% List of people who will get notifications about registered users<br /> %{registration_watchers, ["admin1@anna90",<br /> % "admin2@anna90"]}.</p> <p>% Only admins can send announcement messages:<br /> {access, announce, [{allow, admin}]}.</p> <p>% Only non-blocked users can use c2s connections:<br /> {access, c2s, [{deny, blocked},<br /> {allow, all}]}.</p> <p>% Set shaper with name "normal" to limit traffic speed to 1000B/s<br /> {shaper, normal, {maxrate, 1000}}.</p> <p>% Set shaper with name "fast" to limit traffic speed to 50000B/s<br /> {shaper, fast, {maxrate, 50000}}.</p> <p>% For all users except admins used "normal" shaper<br /> {access, c2s_shaper, [{none, admin},<br /> {normal, all}]}.</p> <p>% For all S2S connections used "fast" shaper<br /> {access, s2s_shaper, [{fast, all}]}.</p> <p>% Admins of this server are also admins of MUC service:<br /> {access, muc_admin, [{allow, admin}]}.</p> <p>% All users are allowed to use MUC service:<br /> {access, muc, [{allow, all}]}.</p> <p>% This rule allows access only for local users:<br /> {access, local, [{allow, local}]}.</p> <p>% Authentication method. If you want to use internal user base, then use<br /> % this line:<br /> {auth_method, internal}.</p> <p>% For LDAP authentication use these lines instead of above one:<br /> %{auth_method, ldap}.<br /> %{ldap_servers, ["anna90"]}. % List of LDAP servers<br /> %{ldap_uidattr, "uid"}. % LDAP attribute that holds user ID<br /> %{ldap_base, "dc=example,dc=com"}. % Search base of LDAP directory<br /> %{ldap_rootdn, "dc=example,dc=com"}. % LDAP manager<br /> %{ldap_password, "******"}. % Password to LDAP manager</p> <p>% For authentication via external script use the following:<br /> %{auth_method, external}.<br /> %{extauth_program, "/path/to/authentication/script"}.</p> <p>% For authentication via ODBC use the following:<br /> %{auth_method, odbc}.<br /> %{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.</p> <p>% Host name:<br /> {hosts, ["anna90"]}.</p> <p>%% Anonymous login support:<br /> %% auth_method: anonymous<br /> %% anonymous_protocol: sasl_anon|login_anon|both<br /> %% allow_multiple_connections: true|false<br /> %%{host_config, "public.example.org", [{auth_method, anonymous},<br /> %% {allow_multiple_connections, false},<br /> %% {anonymous_protocol, sasl_anon}]}.<br /> %% To use both anonymous and internal authentication:<br /> %%{host_config, "public.example.org", [{auth_method, [anonymous, internal]}]}.</p> <p>% Default language for server messages<br /> {language, "en"}.</p> <p>% Listened ports:<br /> {listen,<br /> [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},<br /> {max_stanza_size, 65536},<br /> starttls, {certfile, "./server.pem"}]},<br /> {5223, ejabberd_c2s, [{access, c2s},<br /> {max_stanza_size, 65536},<br /> tls, {certfile, "./server.pem"}]},<br /> % Use these two lines instead if TLS support is not compiled<br /> %{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},<br /> %{5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./server.pem"}]},<br /> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper},<br /> {max_stanza_size, 131072}<br /> ]},<br /> {5280, ejabberd_http, [http_poll, web_admin]},<br /> {8888, ejabberd_service, [{access, all},<br /> {hosts, ["icq.anna90", "sms.anna90"],<br /> [{password, "secret"}]}]}<br /> ]}.</p> <p>% Use STARTTLS+Dialback for S2S connections<br /> {s2s_use_starttls, true}.<br /> {s2s_certfile, "./server.pem"}.<br /> %{domain_certfile, "example.org", "./example_org.pem"}.<br /> %{domain_certfile, "example.com", "./example_com.pem"}.</p> <p>% If SRV lookup fails, then port 5269 is used to communicate with remote server<br /> {outgoing_s2s_port, 5269}.</p> <p>% Used modules:<br /> {modules,<br /> [<br /> {mod_register, [{access, register}]},<br /> {mod_roster, []},<br /> {mod_privacy, []},<br /> {mod_adhoc, []},<br /> {mod_configure, []}, % Depends on mod_adhoc<br /> {mod_configure2, []},<br /> {mod_disco, []},<br /> {mod_stats, []},<br /> {mod_vcard, []},<br /> {mod_offline, []},<br /> {mod_announce, [{access, announce}]}, % Depends on mod_adhoc<br /> {mod_echo, [{host, "echo.anna90"}]},<br /> {mod_private, []},<br /> {mod_irc, []},<br /> % Default options for mod_muc:<br /> % host: "conference." ++ ?MYNAME<br /> % access: all<br /> % access_create: all<br /> % access_admin: none (only room creator has owner privileges)<br /> {mod_muc, [{access, muc},<br /> {access_create, muc},<br /> {access_admin, muc_admin}]},<br /> % {mod_muc_log, []},<br /> % {mod_shared_roster, []},<br /> {mod_pubsub, []},<br /> {mod_time, []},<br /> {mod_last, []},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:</p> Sun, 13 Aug 2006 01:46:09 +0000 breakevilaxis comment 2130 at https://www.ejabberd.im Sorry, the --node should not be there. https://www.ejabberd.im/node/999#comment-2129 <p>Now it accepts the command and reported it is started.</p> <p>Then I fired a command ejabberdctl ejabber@hostname rigister admin hostname "thepassword"</p> <p>No error.</p> <p>Then I typed <noindex><a href="http://hostname:5280/admin" title="http://hostname:5280/admin" rel="nofollow" >http://hostname:5280/admin</a></noindex></p> <p>Not allowed!</p> <p>I think it needs configuration previledge. I will find out the command to assign the admin with configuration previledge.</p> <p>I already saw this in the configuration file. I do not know why it did not work.</p> Sun, 13 Aug 2006 00:36:25 +0000 breakevilaxis comment 2129 at https://www.ejabberd.im I tried ejabberdctl --node ejabberd@whatever status https://www.ejabberd.im/node/999#comment-2128 <p>It all dupms RPC failed.<br /> Is that possible that I should enable something for something RPC service in the Linux?</p> <p>I know I should use ejabberdctl to create a password for admin. Is this right?</p> <p>I read somewhere says it needs some patch for this release then it failed to work after patch. Somehow no solution yet.</p> <p>Any way I need understand what RPC failed means. Simply because it cannot find the hostname or something else?</p> Sun, 13 Aug 2006 00:28:07 +0000 breakevilaxis comment 2128 at https://www.ejabberd.im Re: Cannot login http://hostname:5280/admin https://www.ejabberd.im/node/999#comment-2127 <div class="quote-msg"> <div class="quote-author"><em>breakevilaxis</em> wrote:</div> <p>I tried admin, admin@hostname with blank password. It let me try 3 times then a 401 error messaage shows up.<br /> On the server side, I cannot find anything wrong.</p></div> <p>You first need to create a user with administrative permissions, check the documentation; there is a section with step-by-step instructions.</p> Sat, 12 Aug 2006 23:00:12 +0000 sander comment 2127 at https://www.ejabberd.im