ejabberd: Add support for external authentication cache

This commit is contained in:
Ossi Salmi 2016-01-02 01:13:40 +02:00
parent eb5485bf41
commit 7b81b76ed2
2 changed files with 9 additions and 0 deletions

View file

@ -24,6 +24,10 @@
# $extauth:
# Path to external authentication command.
#
# $extauth_cache:
# Number of seconds that ejabberd can cache external authentication
# information. Disabled by default.
#
# $muclog_datadir:
# Path where to store chatroom logs. Disabled by default.
#
@ -68,6 +72,7 @@ class ejabberd(
$webhosts=undef,
$auth='internal',
$extauth=undef,
$extauth_cache=false,
$muclog_datadir=undef,
$muclog_format='plaintext',
$ssl_key="${::puppet_ssldir}/private_keys/${::homename}.pem",

View file

@ -82,6 +82,10 @@ auth_method:
auth_method: <%= @auth %>
<% end -%>
<% 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 %>"
<% end -%>
<% if @ldap_server -%>