ejabberd - Comments for "ejabbered v.0.9.1 admin login" https://www.ejabberd.im/node/305 en Another thing to check https://www.ejabberd.im/node/305#comment-1135 <p>Verify your hosts file contains the server name allstate</p> Wed, 07 Dec 2005 20:30:02 +0000 enus comment 1135 at https://www.ejabberd.im Possible Answer https://www.ejabberd.im/node/305#comment-1134 <p>Try this assuming your server is called allstate<br /> To verify th ejabberd service is running</p> <p>Ejabberdctl --node ejabberd@allstate status</p> <p>If all is ok<br /> Register the admin user (I noted you called it mike)<br /> Ejabberdctl --node ejabberd@allstate register mike allstate password</p> <p>When using the ejabberdctl tool always start the process with<br /> Ejabberdctl --node ejabberd@allstate </p> <p>Once the admin is registered you should be able to use the web tool<br /> <noindex><a href="http://allstate:5280/mike" title="http://allstate:5280/mike" rel="nofollow" >http://allstate:5280/mike</a></noindex><br /> Then the user: mike@allstate<br /> password: password</p> <p>Of course change this password for security reasons on the web version</p> Wed, 07 Dec 2005 19:56:08 +0000 enus comment 1134 at https://www.ejabberd.im Yes, there's something that https://www.ejabberd.im/node/305#comment-627 <p>Yes, there's something that you did not understand because it's not explained anywhere. There are two identifiers, don't confuse them: <ul> <li>the JabberID identifies an user, as you already know: mike@jabberme.org </li><li>in Erlang, each node (each ejabberd node) has an identifier: dante@mynetwork. That ID has no relation to Jabber, it's an Erlang thing. It's usually specified on ejabberd startup (erl... -name dante@mynetwork), but it may be composed automatically. </li></ul> </p> <p>Ejabberdctl can operate not only with a local ejabberd server, it can administrate any ejabberd node on the network, if properly configured. So, for any command in ejabberdctl you must indicate the Erlang node name. Additionally, some commands like 'register' require the JID. </p> <p>So, I think this command looks better: <pre>./ejabberdctl dante@mynetwork register mike jabberme.org hispa55w0rd</pre> </p> <p>Anyway, don't forget you can register new users using the webadmin, too.</p> Tue, 12 Jul 2005 20:16:22 +0000 mfoss comment 627 at https://www.ejabberd.im Okay, maybe I'm not https://www.ejabberd.im/node/305#comment-626 <p>Okay, maybe I'm not understanding properly what I have to do.</p> <p>The JID is user@server@host correct?</p> <p>&gt;[root@dev2 bin]# ./ejabberdctl register mike default@localhost *(psswd)*<br /> Usage: ejabberdctl node command</p> <p>Available commands:<br /> start start ejabberd<br /> status get ejabberd status<br /> stop stop ejabberd<br /> restart restart ejabberd<br /> reopen-log reopen log file<br /> register user server password register a user<br /> unregister user server unregister a user<br /> backup file store a database backup to file<br /> restore file restore a database backup from file<br /> install-fallback file install a database fallback from file<br /> dump file dump a database to a text file<br /> load file restore a database from a text file<br /> import-file file import user data from jabberd 1.4 spool file<br /> import-dir dir import user data from jabberd 1.4 spool directory<br /> registered-users list all registered users<br /> delete-expired-messages delete expired offline messages from database</p> <p>&gt;Example:<br /> ejabberdctl ejabberd@host restart</p> <p>&gt;Note that except the start command, all other commands require the ejabberd server to be running.</p> <p>Is my command not correct?</p> Tue, 12 Jul 2005 18:26:39 +0000 allstatefastener comment 626 at https://www.ejabberd.im To register a user put the full JID https://www.ejabberd.im/node/305#comment-607 To register a user using webadmin on ejabberd 0.9.1, put the fill JID, not only the name. It should work. What error does the webadmin and ejabberdctl report, if any? Fri, 08 Jul 2005 15:03:27 +0000 mfoss comment 607 at https://www.ejabberd.im Okay. Now I understand why https://www.ejabberd.im/node/305#comment-600 <p>Okay.</p> <p> Now I understand why I can't login via the webadmin. That makes sense, but it still refuses to let me register users, either via /ejabbertctl register etc.. or through a client. </p> <p> My config file looks as follows:<br /> % $Id: $</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"}}.<br /> {acl, admin, {user, "mike"}}.</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 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 Instant Messaging server localhost"<br /> "For information about ejabberd visit http://www.process-one.net/"}}.<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@localhost",<br /> % "admin2@localhost"]}.</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>% This rule allows access only for local users:<br /> {access, local, [{allow, local}]}.</p> <p>% Authentification method. If you want to use internal user base, then use<br /> % this line:<br /> {auth_method, internal}.</p> <p>% For LDAP authentification use these lines instead of above one:<br /> %{auth_method, ldap}.<br /> %{ldap_servers, ["localhost"]}. % 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 authentification via external script use the following:<br /> %{auth_method, external}.<br /> %{extauth_program, "/path/to/authentification/script"}.</p> <p>% For authentification via ODBC use the following:<br /> %{auth_method, odbc}.<br /> %{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.</p> <p>% Host name:<br /> {hosts, ["allstate"]}.</p> <p>% Default language for server messages<br /> {language, "en"}.</p> <p>% Listened ports:<br /> {listen, [{5222, ejabberd_c2s, [{access, c2s},<br /> {shaper, c2s_shaper}]},<br /> %% Use this line to enable SSL:<br /> %%{5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},<br /> %%<br /> %% Use those lines instead for TLS support:<br /> %%{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},<br /> %% starttls, {certfile, "./ssl.pem"}]},<br /> %% {5223, ejabberd_c2s, [{access, c2s},<br /> %% tls, {certfile, "./ssl.pem"}]},</p> <p> %% Remove this line if you want to prevent s2s connections:<br /> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},</p> <p> %% remove http_poll to remove support for http polling<br /> %% remove web_admin to disable admin interface:<br /> {5280, ejabberd_http, [http_poll, web_admin]}<br /> %% This is an example on how to define an external service/transport:<br /> %% {8888, ejabberd_service, [{access, all},<br /> %% {hosts, ["icq.localhost", "sms.localhost"],<br /> %% [{password, "secret"}]}]}<br /> ]}.</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_configure, []},<br /> {mod_configure2, []},<br /> {mod_disco, []},<br /> {mod_stats, []},<br /> {mod_vcard, []},<br /> {mod_offline, []},<br /> {mod_announce, [{access, announce}]},<br /> {mod_echo, [{host, "echo.localhost"}]},<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_pubsub, []},<br /> {mod_time, []},<br /> {mod_last, []},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:</p> <p> Is there anything that I'm not configuring properly? Our network has a 10.0.10.1 default gateway, and 255.255.255.0 subnet mask. The IP of the computer is 10.0.10.6.</p> <p>Thanks again,<br /> Mike</p> Wed, 06 Jul 2005 20:08:43 +0000 allstatefastener comment 600 at https://www.ejabberd.im create/register the user with a jabber client! https://www.ejabberd.im/node/305#comment-597 <p>Maybe you did not understand how that works, or I did not understand your explanation. Let's check: <ul> <li>You can create a Jabber account on your Jabber server with any Jabber client, with ejabberdctl or inside the webadmin (that you can't access yet). </li><li>Once your account exists, you give it admin rights on ejabberd.cfg and restart the server. </li><li>When, and only when the account exists and has admin rights you will be able to login to the webadmin using the full JID and password. </li></ul></p> Tue, 05 Jul 2005 18:40:24 +0000 mfoss comment 597 at https://www.ejabberd.im