24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

Show example config to disable account create/delete, and allow password change.

SVN Revision: 2512
This commit is contained in:
Badlop 2009-08-20 21:43:55 +00:00
parent f9119a3ec6
commit 4be5c0c90c
2 changed files with 25 additions and 10 deletions

View File

@ -2857,14 +2857,20 @@ Next example prohibits the registration of too short account names:
{mod_register, [{access, register}]}, {mod_register, [{access, register}]},
... ...
]}. ]}.
</PRE></LI><LI CLASS="li-itemize">The in-band registration of new accounts can be prohibited by changing the </PRE></LI><LI CLASS="li-itemize">This configuration prohibits usage of In-Band Registration
<TT>access</TT> option. If you really want to disable all In-Band Registration to create or delete accounts,
functionality, that is changing passwords in-band and deleting accounts but allows existing accounts to change the password:
in-band, you have to remove <TT>mod_register</TT> from the modules list. In this
example all In-Band Registration functionality is disabled:
<PRE CLASS="verbatim">{access, register, [{deny, all}]}. <PRE CLASS="verbatim">{access, register, [{deny, all}]}.
{modules, {modules,
[
...
{mod_register, [{access, register}]},
...
]}.
</PRE></LI><LI CLASS="li-itemize">This configuration disables all In-Band Registration
functionality: create, delete accounts and change password:
<PRE CLASS="verbatim">{modules,
[ [
... ...
%% {mod_register, [{access, register}]}, %% {mod_register, [{access, register}]},

View File

@ -3657,14 +3657,23 @@ Examples:
... ...
]}. ]}.
\end{verbatim} \end{verbatim}
\item The in-band registration of new accounts can be prohibited by changing the \item This configuration prohibits usage of In-Band Registration
\option{access} option. If you really want to disable all In-Band Registration to create or delete accounts,
functionality, that is changing passwords in-band and deleting accounts but allows existing accounts to change the password:
in-band, you have to remove \modregister{} from the modules list. In this
example all In-Band Registration functionality is disabled:
\begin{verbatim} \begin{verbatim}
{access, register, [{deny, all}]}. {access, register, [{deny, all}]}.
{modules,
[
...
{mod_register, [{access, register}]},
...
]}.
\end{verbatim}
\item
This configuration disables all In-Band Registration
functionality: create, delete accounts and change password:
\begin{verbatim}
{modules, {modules,
[ [
... ...