diff --git a/ChangeLog b/ChangeLog index 2d1ce4069..69cd9e377 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-22 Badlop + + * doc/guide.tex: Document service_check_from (EJAB-576) + * doc/guide.html: Likewise + 2008-03-21 Badlop * src/mod_caps.erl: Move two log calls ERROR_MSG to DEBUG diff --git a/doc/guide.html b/doc/guide.html index 8a26e710d..b37d60517 100644 --- a/doc/guide.html +++ b/doc/guide.html @@ -342,7 +342,7 @@ GNU Make
  • Libexpat 1.95 or higher
  • Erlang/OTP R10B-9 up to R11B-5. Erlang R12 releases are not yet officially supported, and are not recommended for production servers.
  • OpenSSL 0.9.6 or higher, for STARTTLS, SASL and SSL encryption. Optional, highly recommended. -
  • Zlib 1.2.3 or higher, for Stream Compression support (XEP-0138). Optional. +
  • Zlib 1.2.3 or higher, for Stream Compression support (XEP-0138). Optional.
  • GNU Iconv 1.8 or higher, for the IRC Transport (mod_irc). Optional. Not needed on systems with GNU Libc.
  • 2.4.2  Download Source Code

    @@ -617,7 +617,7 @@ connections. external components (as defined in the Jabber Component Protocol (XEP-0114).  Optionsaccess, hosts, inet6, -ip, shaper +ip, shaper, service_check_from ejabberd_httpDescriptionHandles incoming HTTP connections.  Optionscertfile, http_bind, http_poll, @@ -674,6 +674,11 @@ The Path is a list of strings; so the URIs that start with that Path will be ser For example, if you want mod_foo to serve the URIs that start with /a/b/, and you also want mod_http_bind to serve the URIs /http-bind/, use this option: {request_handlers, [{["a", "b"], mod_foo}, {["http-bind"], mod_http_bind}]} +

    {service_check_from, true|false}
    +By enabling this option, ejabberd allows the component to send packets with any arbitrary domain in the ’from’ attribute. +Note that XEP-0114 requires that the domain must match the hostname of the component. +Only enable this option if you are completely sure you need to enable it. +Default value: false.
    {shaper, <access rule>}
    This option defines a shaper for the port (see section 3.1.6). The default value is none. diff --git a/doc/guide.tex b/doc/guide.tex index a9e3ba809..eb6f8a660 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -266,7 +266,7 @@ To compile \ejabberd{} on a `Unix-like' operating system, you need: \item Libexpat 1.95 or higher \item Erlang/OTP R10B-9 up to R11B-5. Erlang R12 releases are not yet officially supported, and are not recommended for production servers. \item OpenSSL 0.9.6 or higher, for STARTTLS, SASL and SSL encryption. Optional, highly recommended. -\item Zlib 1.2.3 or higher, for Stream Compression support (XEP-0138). Optional. +\item Zlib 1.2.3 or higher, for Stream Compression support (\xepref{0138}). Optional. \item GNU Iconv 1.8 or higher, for the IRC Transport (mod\_irc). Optional. Not needed on systems with GNU Libc. \end{itemize} @@ -671,7 +671,7 @@ The available modules, their purpose and the options allowed by each one are: \footahref{http://www.ejabberd.im/tutorials-transports}{external components} (as defined in the Jabber Component Protocol (\xepref{0114}).\\ \cline{2-3} & Options& \texttt{access}, \texttt{hosts}, \texttt{inet6}, - \texttt{ip}, \texttt{shaper}\\ + \texttt{ip}, \texttt{shaper}, \texttt{service\_check\_from}\\ \hline \texttt{ejabberd\_http}& Description& Handles incoming HTTP connections.\\ \cline{2-3} & Options& \texttt{certfile}, \texttt{http\_bind}, \texttt{http\_poll}, @@ -737,6 +737,11 @@ This is a detailed description of each option allowed by the listening modules: For example, if you want \term{mod\_foo} to serve the URIs that start with \term{/a/b/}, and you also want \term{mod\_http\_bind} to serve the URIs \term{/http-bind/}, use this option: \term{\{request\_handlers, [\{["a", "b"], mod\_foo\}, \{["http-bind"], mod\_http\_bind\}]\}} + \titem{\{service\_check\_from, true|false\}} + By enabling this option, \ejabberd{} allows the component to send packets with any arbitrary domain in the 'from' attribute. + Note that \xepref{0114} requires that the domain must match the hostname of the component. + Only enable this option if you are completely sure you need to enable it. + Default value: false. \titem{\{shaper, \}} \ind{options!shaper}This option defines a shaper for the port (see section~\ref{shapers}). The default value is \term{none}.