From 525b8e9374e2f2c62efdfaf0da3d3c5f9cbb05a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Thu, 28 Jun 2007 14:32:48 +0000 Subject: * src/ejabberd_service.erl: Added an option to disable from attribute checks in packets coming from an external component (EJAB-275) * doc/guide.tex: Likewise SVN Revision: 804 --- doc/guide.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'doc/guide.html') diff --git a/doc/guide.html b/doc/guide.html index 6eae82257..f0de1e5cf 100644 --- a/doc/guide.html +++ b/doc/guide.html @@ -348,7 +348,8 @@ The latest development version can be retrieved from the Subversion repository. install ejabberd into the directory /var/lib/ejabberd,
  • install the configuration file into /etc/ejabberd,
  • create a directory called /var/log/ejabberd to store log files. -
  • Note: if you want to use an external database, you need to execute the configure + +

    Compilation options

    If you want to use an external database, you need to execute the configure script with the option(s) –enable-odbc or –enable-odbc –enable-mssql. See section 3.2 for more information.

    Windows

    @@ -573,6 +574,11 @@ enables the web interface for ejabberd administration which is availabl at http://server:port/admin/. Login and password are the username and password of one of the registered users who are granted access by the `configure' access rule. +

    component_check_from
    +This option can be used with ejabberd_service only. It is +used to disable control on the from field on packets send by an +external components. The option can be either true or +false. The default value is true which conforms to XEP-0114.

    In addition, the following options are available for s2s connections:

    {s2s_use_starttls, true|false}
    @@ -614,6 +620,7 @@ connected to port 5237 with password `ggsecret'. Jabber Mail Component jmc.example.org is connected to port 5238 with password `jmcsecret'. +
  • The service custom has enabled the special option to avoiding checking the from attribute in the packets send by this component. The component can send packets in behalf of any users from the server, or even on behalf of any server.
  •   {acl, blocked, {user, "bad"}}.
       {access, c2s, [{deny, blocked},
                      {allow, all}]}.
    @@ -637,10 +644,13 @@ connected to port 5237 with password `ggsecret'.
         {5237, ejabberd_service, [{host, "gg.example.org",
                                    [{password, "ggsecret"}]}]},
         {5238, ejabberd_service, [{host, "jmc.example.org",
    -                               [{password, "jmcsecret"}]}]}
    +                               [{password, "jmcsecret"}]}]},
    +    {5239, ejabberd_service, [{host, "custom.example.org",
    +                               [{password, "customsecret"}]},
    +                              {service_check_from, false}]}
        ]
       }.
    -  {s2s_use_starttls, true}.
    +  {S2s_use_starttls, true}.
       {s2s_certfile, "/path/to/ssl.pem"}.
     

    Note, that for jabberd 1.4- or WPJabber-based services you have to make the transports log and do XDB by themselves: -- cgit v1.2.3