ejabberd - Comments for "Проблема с ростером" https://www.ejabberd.im/node/1639 en разобрался, https://www.ejabberd.im/node/1639#comment-30470 <p>разобрался, проблема была в использование mysql и anonymous аутенфикации ....</p> Sun, 22 Jul 2007 14:43:44 +0000 sss comment 30470 at https://www.ejabberd.im roster https://www.ejabberd.im/node/1639#comment-28092 <p>немного поэксперементировав получил немного больше информации о проблеме, если клиент залогинился, изменил ростер, а потом просто остановить сервер, то информация не стирается, тоесть ростер удаляется из базы именно при логауте ..., с стандартной базой тоже самое ...., напишу сдесь польный конфиг файл, возможно я где то ошибся ....</p> <p>ejabberd.cfg:</p> <p>% $Id: ejabberd.cfg.example 790 2007-06-25 07:15:30Z mremond $</p> <p>override_global.<br /> override_local.<br /> override_acls.</p> <p>% ejabberd loglevel (0: no log -&gt; 5: debug)<br /> {loglevel, 1}.</p> <p>%override_acls.<br /> % 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, "sss", "viks.krym.ru"}}.<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>%{access, multicast, [{allow, admin}, {deny, all}]}.</p> <p>% Everybody can create pubsub nodes<br /> {access, pubsub_createnode, [{allow, all}]}.</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 our Jabber server. "<br /> "For information about our Jabber server visit http://172.18.13.13/index.php/topic,86.msg201.html#msg201"}}.<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, ["sss@viks.krym.ru"]}.<br /> % "admin2@localhost"]}.</p> <p>% Debug:<br /> % watchdog admins receive live notifications on ejabberd process consuming too<br /> % much memory<br /> {watchdog_admins, ["sss@viks.krym.ru"]}.</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}.<br /> {auth_method, [odbc, anonymous]}.<br /> {odbc_server, {mysql, "localhost", "ejabberd", "user", "password"}}.</p> <p>% For LDAP authentication 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 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>% Uncomment this if you are using postgres, having a large DB, and need a<br /> % faster but inexact replacement for "select count(*) from users"<br /> %{pgsql_users_number_estimate, true}.</p> <p>% Host name:<br /> {hosts, ["viks.krym.ru", "evil"]}.</p> <p>%% Define the maximum number of time a single user is allowed to connect:<br /> {access, max_user_sessions, [{10, all}]}.</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, [internal,anonymous]}]}.</p> <p>% Default language for server messages<br /> {language, "ru"}.</p> <p>% Listened ports:<br /> {listen,<br /> [<br /> % {52222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},<br /> % {max_stanza_size, 65536},<br /> % starttls, {certfile, "./ssl.pem"}]},<br /> % {52233, ejabberd_c2s, [{access, c2s},<br /> % {max_stanza_size, 65536},<br /> % tls, {certfile, "./ssl.pem"}]},<br /> % Use these two lines instead if TLS support is not compiled<br /> {5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}, {max_stanza_size, 65536}, starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}]},<br /> {5223, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}, {max_stanza_size, 65536}, tls, {certfile, "/etc/ejabberd/ejabberd.pem"}]},<br /> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper},<br /> {max_stanza_size, 131072}<br /> ]},<br /> {5280, ejabberd_http, [http_poll]},<br /> {9092, ejabberd_http, [web_admin ,{ip, {192, 168, 0, 1}}, tls, {certfile, "/etc/ejabberd/ejabberd.pem"}]}]}.<br /> % {8888, ejabberd_service, [{access, all}, {shaper_rule, fast},<br /> % {hosts, ["icq.localhost", "sms.localhost"],<br /> % [{password, "secret"}]}]}<br /> % }.</p> <p>% Use STARTTLS+Dialback for S2S connections<br /> {s2s_use_starttls, true}.<br /> {s2s_certfile, "/etc/ejabberd/ejabberd.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_roster_odbc, []},<br /> % {mod_privacy, []},<br /> {mod_privacy_odbc, []},<br /> {mod_adhoc, []},<br /> {mod_configure, [{allow, admin}, {deny, all}]}, % Depends on mod_adhoc<br /> {mod_configure2, [{allow, admin}, {deny, all}]},<br /> {mod_disco, []},<br /> {mod_stats, []},<br /> % {mod_vcard, []},<br /> {mod_vcard_odbc, []},<br /> % {mod_offline, []},<br /> {mod_offline_odbc,[]},<br /> {mod_announce, [{allow, admin}]}, % Depends on mod_adhoc<br /> {mod_echo, [{host, "echo.localhost"}]},<br /> {mod_service_log, []},<br /> % {mod_private, []},<br /> {mod_private_odbc, []},<br /> % {mod_irc, []},<br /> % Default options for mod_muc:<br /> % host: "conference." ++ ?MYNAME<br /> % access: all<br /> % access_create: all<br /> % access_persistent: all<br /> % access_admin: none (only room creator has owner privileges)<br /> {mod_muc, [{access, muc},<br /> {access_create, muc},<br /> {access_persistent, 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_last_odbc, []},<br /> {mod_profile, []},<br /> {mod_caps, []},<br /> {mod_archive, []},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:</p> <p>и создана одна общая группа</p> <p>main</p> <p>@all@ </p> <p>main</p> <p>стоят модули из svn (без них ситуация аналогичная)</p> <p>pep<br /> mod_profile<br /> mod_arch<br /> mysql</p> Tue, 17 Jul 2007 08:23:00 +0000 sss comment 28092 at https://www.ejabberd.im web interface https://www.ejabberd.im/node/1639#comment-28091 <p>Если в mnesa базе вобще нет пользователей, то не работает просмотр пользователей через вэб интерфейс</p> Tue, 17 Jul 2007 07:28:55 +0000 sss comment 28091 at https://www.ejabberd.im web interface https://www.ejabberd.im/node/1639#comment-28090 <p>Ещё заметил проблему, вэб интерфейс пытается брать информацию о пользователях, ростере , оффлайн сообщениях. может ещё о чем то не из mysq а из mnesia базы, хотя ко всем поддерживающим модулям дописал *_odbc</p> Tue, 17 Jul 2007 02:53:56 +0000 sss comment 28090 at https://www.ejabberd.im