ejabberd: Add support for external authentication cache
This commit is contained in:
parent
eb5485bf41
commit
7b81b76ed2
2 changed files with 9 additions and 0 deletions
|
@ -24,6 +24,10 @@
|
||||||
# $extauth:
|
# $extauth:
|
||||||
# Path to external authentication command.
|
# Path to external authentication command.
|
||||||
#
|
#
|
||||||
|
# $extauth_cache:
|
||||||
|
# Number of seconds that ejabberd can cache external authentication
|
||||||
|
# information. Disabled by default.
|
||||||
|
#
|
||||||
# $muclog_datadir:
|
# $muclog_datadir:
|
||||||
# Path where to store chatroom logs. Disabled by default.
|
# Path where to store chatroom logs. Disabled by default.
|
||||||
#
|
#
|
||||||
|
@ -68,6 +72,7 @@ class ejabberd(
|
||||||
$webhosts=undef,
|
$webhosts=undef,
|
||||||
$auth='internal',
|
$auth='internal',
|
||||||
$extauth=undef,
|
$extauth=undef,
|
||||||
|
$extauth_cache=false,
|
||||||
$muclog_datadir=undef,
|
$muclog_datadir=undef,
|
||||||
$muclog_format='plaintext',
|
$muclog_format='plaintext',
|
||||||
$ssl_key="${::puppet_ssldir}/private_keys/${::homename}.pem",
|
$ssl_key="${::puppet_ssldir}/private_keys/${::homename}.pem",
|
||||||
|
|
|
@ -82,6 +82,10 @@ auth_method:
|
||||||
auth_method: <%= @auth %>
|
auth_method: <%= @auth %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% if @extauth -%>
|
<% if @extauth -%>
|
||||||
|
<% unless @extauth_cache == false or (@auth.is_a?(Array) and @auth.include?('internal') or @auth == 'internal') -%>
|
||||||
|
auth_password_format: scram
|
||||||
|
extauth_cache: <%= @extauth_cache %>
|
||||||
|
<% end -%>
|
||||||
extauth_program: "<%= @extauth %>"
|
extauth_program: "<%= @extauth %>"
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% if @ldap_server -%>
|
<% if @ldap_server -%>
|
||||||
|
|
Loading…
Add table
Reference in a new issue