1 (edited by fraiddo' 31-12-2009 00:53:57)

Topic: Pas de connexion au serveur [rèsolu]

Bonsoir,

j'ai installé ejabberd sur debian lenny, j'ai bien config les ports, dns et la conf ejabberd mais il m'est impossible de me connecter depuis mon client sad

Voici le log au niveau 5:


=INFO REPORT==== 2009-12-09 23:27:37 ===
I(<0.249.0>:ejabberd_listener:112) : (#Port<0.429>) Accepted connection {{92,103,177,50},42357} -> {{192,168,0,12},5280}

=INFO REPORT==== 2009-12-09 23:27:37 ===
D(<0.242.0>:ejabberd_http:121) : S: [{["admin"],ejabberd_web_admin},
                                     {["http-poll"],ejabberd_http_poll}]


=INFO REPORT==== 2009-12-09 23:27:37 ===
I(<0.242.0>:ejabberd_http:123) : started: {gen_tcp,#Port<0.429>}

++

Re: Pas de connexion au serveur [rèsolu]

Tu as quoi comme message d'erreur sur ton client ?
Lsof montre bien le port ouvert, est ce que tu sais te servir d'hping pour verifier si le port est accessible ?

3 (edited by fraiddo' 10-12-2009 12:46:14)

Re: Pas de connexion au serveur [rèsolu]

Re,

hping mon-ip -p 5280
[open_sockraw] socket(): Operation not permitted
[main] can't open raw socket

normal?

Gajim ne me donne rien, il reste juste tout le temps entrain d'essayer de se connecter...

++

Re: Pas de connexion au serveur [rèsolu]

Ah ça y est c'est bon j'arrive à me connecter, mais je rencontre un problème pour le certificat ssl pour l'interface d'admin.

j'ai fait suivant cela http://collilieux.net/doc/ejabberd#inte … dmin_https

Maintenant, quand je vais sur http://jabber.mondomaine.org:5280/admin/ , j'ai une page blanche sad J'ai oublié un truc?

++

Re: Pas de connexion au serveur [rèsolu]

Erf j'ai voulu désactiver quelques modules et le serveur ne veut plus démarrer hmm

Voici ma config:

%%%
%%%     Debian ejabberd configuration file
%%%     This config must be in UTF-8 encoding
%%%
%%% The parameters used in this configuration file are explained in more detail
%%% in the ejabberd Installation and Operation Guide.
%%% Please consult the Guide in case of doubts, it is available at
%%% /usr/share/doc/ejabberd/guide.html

%%%   ===================================
%%%   OVERRIDE OPTIONS STORED IN DATABASE

%%
%% Override global options (shared by all ejabberd nodes in a cluster).
%%
%%override_global.

%%
%% Override local options (specific for this particular ejabberd node).
%%
%%override_local.

%%
%% Remove the Access Control Lists before new ones are added.
%%
%%override_acls.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Options which are set by Debconf and managed by ucf

%% Admin user
{acl, admin, {user, "jabberadmin", "jabber.mondomaine.org"}}.

%% Hostname
{hosts, ["jabber.mondomaine.org"]}.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% This configuration file contains Erlang terms.
%%% In case you want to understand the syntax, here are the concepts:
%%%
%%%  - The character to comment a line is %
%%%
%%%  - Each term ends in a dot, for example:
%%%      override_global.
%%%
%%%  - A tuple has a fixed definition, its elements are
%%%    enclosed in {}, and separated with commas:
%%%      {loglevel, 4}.
%%%
%%%  - A list can have as many elements as you want,
%%%    and is enclosed in [], for example:
%%%      [http_poll, web_admin, tls]
%%%
%%%  - A keyword of ejabberd is a word in lowercase.
%%%    The strings are enclosed in "" and can have spaces, dots...
%%%      {language, "en"}.
%%%      {ldap_rootdn, "dc=example,dc=com"}.
%%%
%%%  - This term includes a tuple, a keyword, a list and two strings:
%%%      {hosts, ["jabber.example.net", "im.example.com"]}.
%%%


%%%   =========
%%%   DEBUGGING

%%
%% loglevel: Verbosity of log files generated by ejabberd.
%% 0: No ejabberd log at all (not recommended)
%% 1: Critical
%% 2: Error
%% 3: Warning
%% 4: Info
%% 5: Debug
%%
{loglevel, 5}.

%%
%% watchdog_admins: If an ejabberd process consumes too much memory,
%% send live notifications to those Jabber accounts.
%%
%%{watchdog_admins, ["bob@example.com"]}.


%%%   ================
%%%   SERVED HOSTNAMES

%%
%% hosts: Domains served by ejabberd.
%% You can define one or several, for example:
%% {hosts, ["example.net", "example.com", "example.org"]}.
%%
%% (This option is defined by debconf earlier)
%% {hosts, ["localhost"]}.

%%
%% route_subdomains: Delegate subdomains to other Jabber server.
%% For example, if this ejabberd serves example.org and you want
%% to allow communication with a Jabber server called im.example.org.
%%
%%{route_subdomains, s2s}.


%%%   ===============
%%%   LISTENING PORTS

%%
%% listen: Which ports will ejabberd listen, which service handles it
%% and what options to start it with.
%%
{listen,
 [
  {5222, ejabberd_c2s, [
			{access, c2s},
			{shaper, c2s_shaper},
			{max_stanza_size, 65536},
			starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
		       ]},

  %%
  %% To enable the old SSL connection method (deprecated) in port 5223:
  %%
  %%{5223, ejabberd_c2s, [
  %%			{access, c2s},
  %%			{shaper, c2s_shaper},
  %%			{max_stanza_size, 65536},
  %%			tls, {certfile, "/etc/ejabberd/ejabberd.pem"}
  %%		       ]},

  {5269, ejabberd_s2s_in, [
			   {shaper, s2s_shaper},
			   {max_stanza_size, 131072}
			  ]},

  %% External MUC jabber-muc (but internal mod_muc is better :))
  %%{5554, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "muc.localhost", [{password, "secret"}]}
  %%			    ]},

  %% Jabber ICQ Transport
  %%{5555, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {hosts, ["icq.localhost", "sms.localhost"],
  %%				       [{password, "secret"}]}
  %%			    ]},

  %% AIM Transport
  %%{5556, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "aim.localhost", [{password, "secret"}]}
  %%			    ]},

  %% MSN Transport
  %%{5557, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "msn.localhost", [{password, "secret"}]}
  %%			    ]},

  %% Yahoo! Transport
  %%{5558, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "yahoo.localhost", [{password, "secret"}]}
  %%			    ]},

  %% External JUD (internal is more powerful,
  %% but doesn't allow to register users from other servers)
  %%{5559, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "jud.localhost", [{password, "secret"}]}
  %%			    ]},

  {5280, ejabberd_http, [
                        http_poll,
                        web_admin,
                        tls,
                        {certfile, "/etc/ssl/certs/ejabberd.pem"},
                        starttls_required
                        ]}

 ]}.

%%
%% s2s_use_starttls: Enable STARTTLS + Dialback for S2S connections.
%% Allowed values are: true or false.
%% You must specify a certificate file.
%%
{s2s_use_starttls, true}.

%%
%% s2s_certfile: Specify a certificate file.
%%
{s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.

%%
%% domain_certfile: Specify a different certificate for each served hostname.
%%
%%{domain_certfile, "example.org", "/path/to/example_org.pem"}.
%%{domain_certfile, "example.com", "/path/to/example_com.pem"}.

%%
%% S2S whitelist or blacklist
%%
%% Default s2s policy for undefined hosts.
%%
%%{s2s_default_policy, allow}.

%%
%% Allow or deny communication with specific servers.
%%
%%{{s2s_host, "goodhost.org"}, allow}.
%%{{s2s_host, "badhost.org"}, deny}.


%%%   ==============
%%%   AUTHENTICATION

%%
%% auth_method: Method used to authenticate the users.
%% The default method is the internal.
%% If you want to use a different method,
%% comment this line and enable the correct ones.
%%
{auth_method, internal}.

%%
%% Authentication using external script
%% Make sure the script is executable by ejabberd.
%%
%%{auth_method, external}.
%%{extauth_program, "/path/to/authentication/script"}.

%%
%% Authentication using ODBC
%% Remember to setup a database in the next section.
%%
%%{auth_method, odbc}.

%%
%% Authentication using PAM
%%
%%{auth_method, pam}.
%%{pam_service, "pamservicename"}.

%%
%% Authentication using LDAP
%%
%%{auth_method, ldap}.
%%
%% List of LDAP servers:
%%{ldap_servers, ["localhost"]}.
%%
%% Encryption of connection to LDAP servers (LDAPS):
%%{ldap_encrypt, tls}.
%%
%% Port connect to LDAP server:
%%{ldap_port, 636}.
%%
%% LDAP manager:
%%{ldap_rootdn, "dc=example,dc=com"}.
%%
%% Password to LDAP manager:
%%{ldap_password, "******"}.
%%
%% Search base of LDAP directory:
%%{ldap_base, "dc=example,dc=com"}.
%%
%% LDAP attribute that holds user ID:
%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}.
%%
%% LDAP filter:
%%{ldap_filter, "(objectClass=shadowAccount)"}.

%%
%% Anonymous login support:
%%   auth_method: anonymous
%%   anonymous_protocol: sasl_anon | login_anon | both
%%   allow_multiple_connections: true | false
%%
%%{host_config, "public.example.org", [{auth_method, anonymous},
%%                                     {allow_multiple_connections, false},
%%                                     {anonymous_protocol, sasl_anon}]}.
%%
%% To use both anonymous and internal authentication:
%%
%%{host_config, "public.example.org", [{auth_method, [internal, anonymous]}]}.


%%%   ==============
%%%   DATABASE SETUP

%% ejabberd uses by default the internal Mnesia database,
%% so you can avoid this section.
%% This section provides configuration examples in case
%% you want to use other database backends.
%% Please consult the ejabberd Guide for details about database creation.

%%
%% MySQL server:
%%
%%{odbc_server, {mysql, "server", "database", "username", "password"}}.
%%
%% If you want to specify the port:
%%{odbc_server, {mysql, "server", 1234, "database", "username", "password"}}.

%%
%% PostgreSQL server:
%%
%%{odbc_server, {pgsql, "server", "database", "username", "password"}}.
%%
%% If you want to specify the port:
%%{odbc_server, {pgsql, "server", 1234, "database", "username", "password"}}.
%%
%% If you use PostgreSQL, have a large database, and need a
%% faster but inexact replacement for "select count(*) from users"
%%
%%{pgsql_users_number_estimate, true}.

%%
%% ODBC compatible or MSSQL server:
%%
%%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.

%%
%% Number of connections to open to the database for each virtual host
%%
%%{odbc_pool_size, 10}.

%%
%% Interval to make a dummy SQL request to keep alive the connections
%% to the database. Specify in seconds: for example 28800 means 8 hours
%%
%%{odbc_keepalive_interval, undefined}.


%%%   ===============
%%%   TRAFFIC SHAPERS

%%
%% The "normal" shaper limits traffic speed to 1.000 B/s
%%
{shaper, normal, {maxrate, 1000}}.

%%
%% The "fast" shaper limits traffic speed to 50.000 B/s
%%
{shaper, fast, {maxrate, 50000}}.


%%%   ====================
%%%   ACCESS CONTROL LISTS

%%
%% The 'admin' ACL grants administrative privileges to Jabber accounts.
%% You can put as many accounts as you want.
%%
%%{acl, admin, {user, "aleksey", "localhost"}}.
%%{acl, admin, {user, "ermine", "example.org"}}.

%%
%% Blocked users
%%
%%{acl, blocked, {user, "baduser", "example.org"}}.
%%{acl, blocked, {user, "test"}}.

%%
%% Local users: don't modify this line.
%%
{acl, local, {user_regexp, ""}}.

%%
%% More examples of ACLs
%%
%%{acl, jabberorg, {server, "jabber.org"}}.
%%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.
%%{acl, test, {user_regexp, "^test"}}.
%%{acl, test, {user_glob, "test*"}}.


%%%   ============
%%%   ACCESS RULES

%% Define the maximum number of time a single user is allowed to connect:
{access, max_user_sessions, [{10, all}]}.

%% This rule allows access only for local users:
{access, local, [{allow, local}]}.

%% Only non-blocked users can use c2s connections:
{access, c2s, [{deny, blocked},
	       {allow, all}]}.

%% For all users except admins used "normal" shaper
{access, c2s_shaper, [{none, admin},
		      {normal, all}]}.

%% For all S2S connections used "fast" shaper
{access, s2s_shaper, [{fast, all}]}.

%% Only admins can send announcement messages:
{access, announce, [{allow, admin}]}.

%% Only admins can use configuration interface:
{access, configure, [{allow, admin}]}.

%% Admins of this server are also admins of MUC service:
{access, muc_admin, [{allow, admin}]}.

%% All users are allowed to use MUC service:
{access, muc, [{deny, all}]}.

%% No username can be registered via in-band registration:
%% To enable in-band registration, replace 'deny' with 'allow'
% (note that if you remove mod_register from modules list then users will not
% be able to change their password as well as register).
% This setting is default because it's more safe.
{access, register, [{deny, all}]}.

%% Everybody can create pubsub nodes
{access, pubsub_createnode, [{deny, all}]}.


%%%   ================
%%%   DEFAULT LANGUAGE

%%
%% language: Default language used for server messages.
%%
{language, "fr"}.


%%%   =======
%%%   MODULES

%%
%% Modules enabled in all ejabberd virtual hosts.
%%
{modules,
 [
  {mod_adhoc,    []},
  {mod_announce, [{access, announce}]}, % requires mod_adhoc
  {mod_caps,     []},
  {mod_configure,[]}, % requires mod_adhoc
  {mod_ctlextra, []},
  {mod_disco,    []},
  %%{mod_echo,   [{host, "echo.localhost"}]},
  %%{mod_irc,      []},
  {mod_last,     []},
  %%{mod_muc,      [
%%		  %%{host, "conference.@HOST@"},
%%		  {access, muc},
%%		  {access_create, muc},
%%		  {access_persistent, muc},
%%		  {access_admin, muc_admin},
%%		  {max_users, 500}
%%		 ]},
  %%{mod_muc_log,[]},
  {mod_offline,  []},
  {mod_privacy,  []},
  {mod_private,  []},
  {mod_proxy65,  [
		  {access, local},
		  {shaper, c2s_shaper}
		 ]},
  %%{mod_pubsub,   [ % requires mod_caps
%%		  {access_createnode, pubsub_createnode},
%%		  {plugins, ["default", "pep"]}
%%		 ]},
  {mod_register, [
		  %%
		  %% After successful registration, the user receives
		  %% a message with this subject and body.
		  %%
		  {welcome_message, {"Welcome!",
				     "Welcome to a Jabber service powered by Debian. "
				     "For information about Jabber visit "
				     "http://www.jabber.org"}},
		  %% Replace it with 'none' if you don't want to send such message:
		  %%{welcome_message, none},

		  %%
		  %% When a user registers, send a notification to
		  %% these Jabber accounts.
		  %%
		  %%{registration_watchers, ["admin1@example.org"]},

		  {access, register}
		 ]},
  {mod_roster,   []},
  %%{mod_service_log,[]},
  %%{mod_shared_roster,[]},
  {mod_stats,    []},
  {mod_time,     []},
  {mod_vcard,    []},
  {mod_version,  []}
 ]}.


%%% $Id: ejabberd.cfg.example 1178 2008-02-08 18:28:36Z badlop $

%%% Local Variables:
%%% mode: erlang
%%% End:
%%% vim: set filetype=erlang tabstop=8:

Re: Pas de connexion au serveur [rèsolu]

il te dit quoi ?  ( et sinon, c'est hping -p XXX -S ip , en root )

Re: Pas de connexion au serveur [rèsolu]

Justement il me dit rien, les logs ne montrent que des choses anciennes hmm

Re: Pas de connexion au serveur [rèsolu]

pas d'idées du problème? sad

Re: Pas de connexion au serveur [rèsolu]

J'ai mis à jour ejabberd vers une version plus récente via les backports de lenny et là encore paf: dès que je tente de desactiver des plugins, ça ne veut plus fonctionner hmm

Re: Pas de connexion au serveur [rèsolu]

Après une purge et réinstall d'ejabberd, je souhaite désactiver les muc comme ceci

  %% {mod_muc,      [
                  %% {host, "conference.@HOST@"},
                  %% {access, muc},
                  %% {access_create, muc},
                  %% {access_persistent, muc},
                  %% {access_admin, muc_admin},
                  %% {max_users, 500}
                  %% ]},

eh bien mon ejabberd ne veut plus démarrer après cela... ce n'est pas la bonne syntaxe pour commenter?

++

Re: Pas de connexion au serveur [rèsolu]

Nouvel épisode: j'ai enlevé mes commentaires et ça ne veut toujours pas fonctionner...

log:

=INFO REPORT==== 2009-12-23 20:13:38 ===
    application: ejabberd
    exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
                         {'EXIT',"/etc/ejabberd/ejabberd.cfg approximately in the line 507: syntax error before: ']'"}}}
    type: temporary

ligne 506 et 507 sont:

  {mod_version,  []}
 ]}.

Re: Pas de connexion au serveur [rèsolu]

Je vous renvois ma config actuelle:

%%%
%%%     Debian ejabberd configuration file
%%%     This config must be in UTF-8 encoding
%%%
%%% The parameters used in this configuration file are explained in more detail
%%% in the ejabberd Installation and Operation Guide.
%%% Please consult the Guide in case of doubts, it is available at
%%% /usr/share/doc/ejabberd/guide.html

%%%   ===================================
%%%   OVERRIDE OPTIONS STORED IN DATABASE

%%
%% Override global options (shared by all ejabberd nodes in a cluster).
%%
%%override_global.

%%
%% Override local options (specific for this particular ejabberd node).
%%
%%override_local.

%%
%% Remove the Access Control Lists before new ones are added.
%%
%%override_acls.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Options which are set by Debconf and managed by ucf

%% Admin user
{acl, admin, {user, "jabberadmin", "jabber.mywebsite.org"}}.

%% Hostname
{hosts, ["jabber.mywebsite.org"]}.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% This configuration file contains Erlang terms.
%%% In case you want to understand the syntax, here are the concepts:
%%%
%%%  - The character to comment a line is %
%%%
%%%  - Each term ends in a dot, for example:
%%%      override_global.
%%%
%%%  - A tuple has a fixed definition, its elements are
%%%    enclosed in {}, and separated with commas:
%%%      {loglevel, 4}.
%%%
%%%  - A list can have as many elements as you want,
%%%    and is enclosed in [], for example:
%%%      [http_poll, web_admin, tls]
%%%
%%%  - A keyword of ejabberd is a word in lowercase.
%%%    The strings are enclosed in "" and can have spaces, dots...
%%%      {language, "en"}.
%%%      {ldap_rootdn, "dc=example,dc=com"}.
%%%
%%%  - This term includes a tuple, a keyword, a list and two strings:
%%%      {hosts, ["jabber.example.net", "im.example.com"]}.
%%%


%%%   =========
%%%   DEBUGGING

%%
%% loglevel: Verbosity of log files generated by ejabberd.
%% 0: No ejabberd log at all (not recommended)
%% 1: Critical
%% 2: Error
%% 3: Warning
%% 4: Info
%% 5: Debug
%%
{loglevel, 5}.

%%
%% watchdog_admins: If an ejabberd process consumes too much memory,
%% send live notifications to those Jabber accounts.
%%
%%{watchdog_admins, ["bob@example.com"]}.


%%%   ================
%%%   SERVED HOSTNAMES

%%
%% hosts: Domains served by ejabberd.
%% You can define one or several, for example:
%% {hosts, ["example.net", "example.com", "example.org"]}.
%%
%% (This option is defined by debconf earlier)
%% {hosts, ["localhost"]}.

%%
%% route_subdomains: Delegate subdomains to other Jabber server.
%% For example, if this ejabberd serves example.org and you want
%% to allow communication with a Jabber server called im.example.org.
%%
%%{route_subdomains, s2s}.


%%%   ===============
%%%   LISTENING PORTS

%%
%% listen: Which ports will ejabberd listen, which service handles it
%% and what options to start it with.
%%
{listen,
 [
  {5222, ejabberd_c2s, [
			{access, c2s},
			{shaper, c2s_shaper},
			{max_stanza_size, 65536},
			starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
		       ]},

  %%
  %% To enable the old SSL connection method (deprecated) in port 5223:
  %%
  %%{5223, ejabberd_c2s, [
  %%			{access, c2s},
  %%			{shaper, c2s_shaper},
  %%			{max_stanza_size, 65536},
  %%			tls, {certfile, "/etc/ejabberd/ejabberd.pem"}
  %%		       ]},

  {5269, ejabberd_s2s_in, [
			   {shaper, s2s_shaper},
			   {max_stanza_size, 131072}
			  ]},

  %% External MUC jabber-muc (but internal mod_muc is better :))
  %%{5554, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "muc.localhost", [{password, "secret"}]}
  %%			    ]},

  %% Jabber ICQ Transport
  %%{5555, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {hosts, ["icq.localhost", "sms.localhost"],
  %%				       [{password, "secret"}]}
  %%			    ]},

  %% AIM Transport
  %%{5556, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "aim.localhost", [{password, "secret"}]}
  %%			    ]},

  %% MSN Transport
  %%{5557, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "msn.localhost", [{password, "secret"}]}
  %%			    ]},

  %% Yahoo! Transport
  %%{5558, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "yahoo.localhost", [{password, "secret"}]}
  %%			    ]},

  %% External JUD (internal is more powerful,
  %% but doesn't allow to register users from other servers)
  %%{5559, ejabberd_service, [
  %%			    {ip, {127, 0, 0, 1}},
  %%			    {access, all},
  %%			    {shaper_rule, fast},
  %%			    {host, "jud.localhost", [{password, "secret"}]}
  %%			    ]},

  {5280, ejabberd_http, [
			 http_poll,
			 web_admin
			]}

 ]}.

%%
%% s2s_use_starttls: Enable STARTTLS + Dialback for S2S connections.
%% Allowed values are: true or false.
%% You must specify a certificate file.
%%
{s2s_use_starttls, true}.

%%
%% s2s_certfile: Specify a certificate file.
%%
{s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.

%%
%% domain_certfile: Specify a different certificate for each served hostname.
%%
%%{domain_certfile, "example.org", "/path/to/example_org.pem"}.
%%{domain_certfile, "example.com", "/path/to/example_com.pem"}.

%%
%% S2S whitelist or blacklist
%%
%% Default s2s policy for undefined hosts.
%%
%%{s2s_default_policy, allow}.

%%
%% Allow or deny communication with specific servers.
%%
%%{{s2s_host, "goodhost.org"}, allow}.
%%{{s2s_host, "badhost.org"}, deny}.


%%%   ==============
%%%   AUTHENTICATION

%%
%% auth_method: Method used to authenticate the users.
%% The default method is the internal.
%% If you want to use a different method,
%% comment this line and enable the correct ones.
%%
{auth_method, internal}.

%%
%% Authentication using external script
%% Make sure the script is executable by ejabberd.
%%
%%{auth_method, external}.
%%{extauth_program, "/path/to/authentication/script"}.

%%
%% Authentication using ODBC
%% Remember to setup a database in the next section.
%%
%%{auth_method, odbc}.

%%
%% Authentication using PAM
%%
%%{auth_method, pam}.
%%{pam_service, "pamservicename"}.

%%
%% Authentication using LDAP
%%
%%{auth_method, ldap}.
%%
%% List of LDAP servers:
%%{ldap_servers, ["localhost"]}.
%%
%% Encryption of connection to LDAP servers (LDAPS):
%%{ldap_encrypt, tls}.
%%
%% Port connect to LDAP server:
%%{ldap_port, 636}.
%%
%% LDAP manager:
%%{ldap_rootdn, "dc=example,dc=com"}.
%%
%% Password to LDAP manager:
%%{ldap_password, "******"}.
%%
%% Search base of LDAP directory:
%%{ldap_base, "dc=example,dc=com"}.
%%
%% LDAP attribute that holds user ID:
%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}.
%%
%% LDAP filter:
%%{ldap_filter, "(objectClass=shadowAccount)"}.

%%
%% Anonymous login support:
%%   auth_method: anonymous
%%   anonymous_protocol: sasl_anon | login_anon | both
%%   allow_multiple_connections: true | false
%%
%%{host_config, "public.example.org", [{auth_method, anonymous},
%%                                     {allow_multiple_connections, false},
%%                                     {anonymous_protocol, sasl_anon}]}.
%%
%% To use both anonymous and internal authentication:
%%
%%{host_config, "public.example.org", [{auth_method, [internal, anonymous]}]}.


%%%   ==============
%%%   DATABASE SETUP

%% ejabberd uses by default the internal Mnesia database,
%% so you can avoid this section.
%% This section provides configuration examples in case
%% you want to use other database backends.
%% Please consult the ejabberd Guide for details about database creation.

%%
%% MySQL server:
%%
%%{odbc_server, {mysql, "server", "database", "username", "password"}}.
%%
%% If you want to specify the port:
%%{odbc_server, {mysql, "server", 1234, "database", "username", "password"}}.

%%
%% PostgreSQL server:
%%
%%{odbc_server, {pgsql, "server", "database", "username", "password"}}.
%%
%% If you want to specify the port:
%%{odbc_server, {pgsql, "server", 1234, "database", "username", "password"}}.
%%
%% If you use PostgreSQL, have a large database, and need a
%% faster but inexact replacement for "select count(*) from users"
%%
%%{pgsql_users_number_estimate, true}.

%%
%% ODBC compatible or MSSQL server:
%%
%%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.

%%
%% Number of connections to open to the database for each virtual host
%%
%%{odbc_pool_size, 10}.

%%
%% Interval to make a dummy SQL request to keep alive the connections
%% to the database. Specify in seconds: for example 28800 means 8 hours
%%
%%{odbc_keepalive_interval, undefined}.


%%%   ===============
%%%   TRAFFIC SHAPERS

%%
%% The "normal" shaper limits traffic speed to 1.000 B/s
%%
{shaper, normal, {maxrate, 1000}}.

%%
%% The "fast" shaper limits traffic speed to 50.000 B/s
%%
{shaper, fast, {maxrate, 50000}}.


%%%   ====================
%%%   ACCESS CONTROL LISTS

%%
%% The 'admin' ACL grants administrative privileges to Jabber accounts.
%% You can put as many accounts as you want.
%%
%%{acl, admin, {user, "aleksey", "localhost"}}.
%%{acl, admin, {user, "ermine", "example.org"}}.

%%
%% Blocked users
%%
%%{acl, blocked, {user, "baduser", "example.org"}}.
%%{acl, blocked, {user, "test"}}.

%%
%% Local users: don't modify this line.
%%
{acl, local, {user_regexp, ""}}.

%%
%% More examples of ACLs
%%
%%{acl, jabberorg, {server, "jabber.org"}}.
%%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.
%%{acl, test, {user_regexp, "^test"}}.
%%{acl, test, {user_glob, "test*"}}.


%%%   ============
%%%   ACCESS RULES

%% Define the maximum number of time a single user is allowed to connect:
{access, max_user_sessions, [{10, all}]}.

%% This rule allows access only for local users:
{access, local, [{allow, local}]}.

%% Only non-blocked users can use c2s connections:
{access, c2s, [{deny, blocked},
	       {allow, all}]}.

%% For all users except admins used "normal" shaper
{access, c2s_shaper, [{none, admin},
		      {normal, all}]}.

%% For all S2S connections used "fast" shaper
{access, s2s_shaper, [{fast, all}]}.

%% Only admins can send announcement messages:
{access, announce, [{allow, admin}]}.

%% Only admins can use configuration interface:
{access, configure, [{allow, admin}]}.

%% Admins of this server are also admins of MUC service:
{access, muc_admin, [{allow, admin}]}.

%% All users are allowed to use MUC service:
{access, muc, [{allow, all}]}.

%% No username can be registered via in-band registration:
%% To enable in-band registration, replace 'deny' with 'allow'
% (note that if you remove mod_register from modules list then users will not
% be able to change their password as well as register).
% This setting is default because it's more safe.
{access, register, [{deny, all}]}.

%% Everybody can create pubsub nodes
{access, pubsub_createnode, [{allow, all}]}.


%%%   ================
%%%   DEFAULT LANGUAGE

%%
%% language: Default language used for server messages.
%%
{language, "fr"}.


%%%   =======
%%%   MODULES

%%
%% Modules enabled in all ejabberd virtual hosts.
%%
{modules,
 [
  {mod_adhoc,    []},
  {mod_announce, [{access, announce}]}, % requires mod_adhoc
  {mod_caps,     []},
  {mod_configure,[]}, % requires mod_adhoc
  {mod_ctlextra, []},
  {mod_disco,    []},
  %%{mod_echo,[{host, "echo.localhost"}]},
  %%{mod_irc,[]},
  {mod_last,     []},
  %%{mod_muc,[]},
  %%{mod_muc_log,[]},
  {mod_offline,  []},
  {mod_privacy,  []},
  {mod_private,  []},
  {mod_proxy65,  [
		  {access, local},
		  {shaper, c2s_shaper}
		 ]},
  %%{mod_pubsub,[]},
  {mod_register, [
		  %%
		  %% After successful registration, the user receives
		  %% a message with this subject and body.
		  %%
		  {welcome_message, {"Welcome!",
				     "Welcome to a Jabber service powered by Debian. "
				     "For information about Jabber visit "
				     "http://www.jabber.org"}},
		  %% Replace it with 'none' if you don't want to send such message:
		  %%{welcome_message, none},

		  %%
		  %% When a user registers, send a notification to
		  %% these Jabber accounts.
		  %%
		  %%{registration_watchers, ["admin1@example.org"]},

		  {access, register}
		 ]},
  {mod_roster,   []},
  %%{mod_service_log,[]},
  %%{mod_shared_roster,[]},
  {mod_stats,    []},
  {mod_time,     []},
  {mod_vcard,    []},
  {mod_version,  []}
 ]}.


%%% $Id: ejabberd.cfg.example 1178 2008-02-08 18:28:36Z badlop $

%%% Local Variables:
%%% mode: erlang
%%% End:
%%% vim: set filetype=erlang tabstop=8:

je commence à désespérer sad

13 (edited by fraiddo' 24-12-2009 00:32:56)

Re: Pas de connexion au serveur [rèsolu]

Je précise qu'en remettant la config originale pour les modules ça ne refonctionne toujours pas. (et rien dans les logs)

Re: Pas de connexion au serveur [rèsolu]

Y a pas une application pour vérifier la syntaxe du fichier de config ( vu que c'est du erlang ) ?

Re: Pas de connexion au serveur [rèsolu]

Y'a bien l'highlight dans gedit en erlang mais il ne semble pas y avoir d'erreur hmm

Re: Pas de connexion au serveur [rèsolu]

Bonjour fraiddo,


Sans aucune certitude aucune, voici mon avis: la config de ejabberd est "inscrite" AUSSI en base de donnée. C'est à dire que ce n est pas le fichier ejabberd.cfg UNIQUEMENT dans lequel tu cherches et modifies qui est appliqué par le daemon au boot.
Il faut donc se " débrouiller " pour vider ces info de la DB et redémarrer avec ton fichier de config AVANT modif. Je précise que ce comportement n'est pas systèmatique pour toutes modif faites dans le fichier de conf sans que je sache précisement ce qui peut être modifié directement dans le fichier et/ou en DB.

Bonne recherche

LTVZ

A tout fin utile mon JID : http://www.jabber.lu/index.php/contact.html

------------------------------------
www.jabber.lu & www.xmpp.lu
------------------------------------

17 (edited by fraiddo' 24-12-2009 23:54:11)

Re: Pas de connexion au serveur [rèsolu]

Tu fais référence à Mnesia ?

J'ai regardé sur le wiki de jabberfr, à part deux petites références, il n'est pas fait mention d'un quelconque besoin d'y toucher manuellement hmm

Personne n'a jamais rencontré mon problème? Je n'ai pas touché à grand chose pourtant hmm

++

Re: Pas de connexion au serveur [rèsolu]

Je ne me souviens pas avoir eu ce genre de probléme, non.
Mais tu ne donnes pas les logs pour le probléme actuel, non ?

Re: Pas de connexion au serveur [rèsolu]

Y'a rien dans les logs (à part des trucs anciens relatifs à quand ça marchait sans la désactivation de plugins).

Re: Pas de connexion au serveur [rèsolu]

Bonjour fraiddo,

Oui si tu utilises MNESIA alors je fais référence à ceci. A toute fin utile voici ce que comporte la doc du logiciel que tu utilises - je ne travaille qu'avec les version US mon français étant de très mauvaise qualité :

2.6 Upgrading ejabberd
To upgrade an ejabberd installation to a new version, simply uninstall the old version, and then
install the new one. Of course, it is important that the configuration file and Mnesia database
spool directory are not removed.
ejabberd automatically updates the Mnesia table definitions at startup when needed. If you
also use an external database for storage of some modules, check if the release notes of the new
ejabberd version indicates you need to also update those tables.

As tu tenté, plusieurs installation l une à la suite de l autre ?

LTVZ

------------------------------------
www.jabber.lu & www.xmpp.lu
------------------------------------

Re: Pas de connexion au serveur [rèsolu]

Bonjour fraiddo,

"  J'ai regardé sur le wiki de jabberfr, à part deux petites références, il n'est pas fait mention d'un quelconque besoin d'y toucher manuellement hmm "

Je comprends et respecte au plus au point tes scrupules pour effectuer ce type de manipulations. Cependant, autrement dit ( et encore une fois toutes mes excuses pour mon français aussi maladroit que peu clair ) , en français et dans le texte peux tu peut être tenter cette opération:
-1- configurer ton fichier de config comme tu le souhaites en supprimant les modules mais en y mettant le plus basic à savoir ton domaine et l'admin qui le contrôle.
-2- ajouter au debut du dit fichier de config les 3 entrée suivantes :
override_global.
override_local.
override_acls.
-3- redemarrer jabber.
-4- parfaire ton fichier de config et redemarrer ou bien passer via l'admin web de ejabberd pour parfaire la configuration de tes rèves.

Bien entendu tout ceci est basé sur toutes les références auquelles tu n'a pas trouvé de référence à savoir la documentation ...
Tu devrais en théorie pouvoir y comprendre que la config est chargée DANS LA BASE DE DONNEE comme je ne sais plus qui l'évoquait et que les ordres passés via le fichier de config DOIVENT au préalable faire le ménage dans la DB via les commandes OVERRIDE
--------------- DEBUT COPIE DE LA DOCUMENTATION DE TON LOGICIEL
3.1 Basic Con guration
The con guration le will be loaded the rst time you start ejabberd. The content from this
le will be parsed and stored in the internal ejabberd database. Subsequently the con guration
will be loaded from the database and any commands in the con guration le are appended to
the entries in the database.
Note that ejabberd never edits the con guration le. So, the con guration changes done using
the Web Admin are stored in the database, but are not re
ected in the con guration le. If you
want those changes to be use after ejabberd restart, you can either edit the con guration le,
or remove all its content.
The con guration le contains a sequence of Erlang terms. Lines beginning with a `%' sign are
ignored. Each term is a tuple of which the rst element is the name of an option, and any further
elements are that option's values. If the con guration le do not contain for instance the `hosts'
option, the old host name(s) stored in the database will be used.
You can override the old values stored in the database by adding next lines to the beginning of
the con guration le:
override_global.
override_local.
override_acls.
----------------------------------- EOF

Oui je sais c est terrible, il faut .... lire .  Voilà j 'espère que ceci fonctionnera pour toi

LTVZ

------------------------------------
www.jabber.lu & www.xmpp.lu
------------------------------------

Re: Pas de connexion au serveur [rèsolu]

Je viens de décommenter les trois options au début du fichier pour les activer, au reload d'ejabberd j'ai:

Node ejabberd@toto is started. Status: started
ejabberd is not running

(toto est l'user de la machine) Donc la node est démarrée mais pas le serveur, je comprends pas là.

23 (edited by fraiddo' 28-12-2009 15:41:14)

Re: Pas de connexion au serveur [rèsolu]

C'est bon, en décommentant dès le départ ça va mieux smile Cela dit je cherche une dernière chose: par ou puis-je sauvegarder les données des utilisateurs? Je vois dans l'admin sauvegarde binaire / sauvegarde texte , quelles différences à part le format?

++

Re: Pas de connexion au serveur [rèsolu]

Bonjour fraiddo,

fraiddo' wrote:

C'est bon, en décommentant dès le départ ça va mieux smile

C'est à dire ?!?  On aurait presque l'impression que la solution fut effectivement exposée plus haut pour permettre à d'autre personne de profiter du présent processus d'explication et de résolution de la "panne" mais votre phrase me laisse dubitatif à vrai dire.

Surement mon français de piètre qualité qui me joue des tours. A moi à qui on a appris à respecter l'adage suivant : " Ce qui se conçoit bien s'énonce clairement ", je dois avouer humblement avoir du mal à suivre.
En fait je crois qu'en ordonnant les mots dans un certain ordre, voire dans un ordre certain, afin qu un lecteur puisse s'y retrouver cela peut parfois aider. Je pose donc à mon tour une question afin de ne pas perdre le fil :
Voici la question :
" Le fait de placer ( activer )  les ordres :

override_global.
override_local.
override_acls.

comme je crois l'avoir suggéré afin de purger la base de donnée, idée qui aussi me rappelle quelquechose dans le présent processus de résolution, a t il OUI ou NON permis de résoudre le problème ?
Placer les ordres overrides précités correspondant aussi à les rendre actifs en supprimant le sigle de commentaire propre à ERLANG " # " du fichier de config "ejabberd.cfg" évidement. On doit aussi probablement pouvoir exprimer la même idée en utilisant  l'adverbe " décommentant " du probable verbe " décommenter " que je ne trouve pas dans mon dictionnaire français, d'où le doute qui m'habite. En un mot je suis " perdu " et ne voudrais ( au conditionnel ) pas faire fausse route pour vous aider.
Une fois ceci clairement statué peut être sera t il possible de voir plus avant.

Merci de votre réponse

LTVZ.

------------------------------------
www.jabber.lu & www.xmpp.lu
------------------------------------

Re: Pas de connexion au serveur [rèsolu]

Cher ltvz, décommenter (ou plutôt dé-commenter) est bien français http://fr.wiktionary.org/wiki/d%C3%A9commenter , ceci dit il n'est nul besoin de partir sur un débat sur la langue française, que vous maitrisez de fort belle manière par ailleurs smile

Donc oui le fait de dé-commenter les 3 paramètres en question dès la première configuration d'ejabberd a résolu mon problème.

je cherche maintenant à sauvegarder la base de données, et je voudrais savoir si c'était possible en ligne de commande.

++