ejabberd - Comments for "Error on start ejabberd" https://www.ejabberd.im/node/1132 en Hm… https://www.ejabberd.im/node/1132#comment-2412 <div class="quote-msg"> <div class="quote-author"><em>craton</em> wrote:</div> <pre>% Authentication method. If you want to use internal user base, then use % this line: {auth_method, internal}. % Host name: {hosts, ["host1","host1.domain","localhost"]}. {host_config, "localhost", [{auth_method, internal}]}. {host_config, "host1", [{auth_method, internal}]}. {host_config, "host1.domain", [{auth_method, internal}]}. </pre></div> <p>The last three lines aren't really necessary, as the global auth_method is inherited. I don't see why they would cause a problem, though…</p> Tue, 17 Oct 2006 14:55:45 +0000 legoscia comment 2412 at https://www.ejabberd.im my config % $Id: https://www.ejabberd.im/node/1132#comment-2411 <p>my config</p> <p>% $Id: ejabberd.cfg.example 538 2006-04-22 04:02:42Z alexey $</p> <p>%override_acls.</p> <p>override_global.<br /> override_local.<br /> 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, "ermine"}}.</p> <p>% Blocked users:<br /> %{acl, blocked, {user, "test"}}.</p> <p>% Local users:<br /> {acl, local, {user_regexp, ""}}.</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@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>% 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>% Host name:<br /> {hosts, ["host1","host1.domain","localhost"]}.</p> <p>{host_config, "localhost", [{auth_method, internal}]}.<br /> {host_config, "host1", [{auth_method, internal}]}.<br /> {host_config, "host1.domain", [{auth_method, internal}]}.</p> <p>% Default language for server messages<br /> {language, "ru"}.</p> <p>% Listened ports:<br /> {listen,[{5222, ejabberd_c2s,[{access, c2s}, {shaper, c2s_shaper},{max_stanza_si<br /> ze, 65536}]},<br /> {5280, ejabberd_http, [http_poll, web_admin]}<br /> ]}.</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.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_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> Tue, 17 Oct 2006 14:33:35 +0000 craton comment 2411 at https://www.ejabberd.im It looks for https://www.ejabberd.im/node/1132#comment-2410 <p>It looks for "ejabberd_auth_undefined", which means that for some reason one of your virtual hosts is configured to use "undefined" authentication. Find the error in the configuration file.</p> Mon, 16 Oct 2006 21:55:20 +0000 legoscia comment 2410 at https://www.ejabberd.im