diff --git a/ejabberd/templates/ejabberd.cfg.erb b/ejabberd/templates/ejabberd.cfg.erb index e42a110..38eef24 100644 --- a/ejabberd/templates/ejabberd.cfg.erb +++ b/ejabberd/templates/ejabberd.cfg.erb @@ -249,7 +249,12 @@ override_acls. %% If you want to use a different method, %% comment this line and enable the correct ones. %% +<% if ejabberd_extauth -%> +{auth_method, external}. +{extauth_program, "<%= ejabberd_extauth %>"}. +<% else -%> {auth_method, internal}. +<% end -%> %% %% Authentication using external script