ejabberd: Add configuration options for ldap authentication
This commit is contained in:
parent
1fbe904a13
commit
e8c5cce68a
2 changed files with 32 additions and 3 deletions
|
@ -225,10 +225,14 @@ override_acls.
|
|||
<% @ejabberd_ldap_server.map! { |server| '"%s"' % server } -%>
|
||||
{ldap_servers, [<%= @ejabberd_ldap_server.join(", ") %>]}.
|
||||
{ldap_base, "<%= @ejabberd_ldap_basedn %>"}.
|
||||
{ldap_encrypt, tls}.
|
||||
{ldap_port, 636}.
|
||||
{ldap_uids, [{"uid", "%u"}]}.
|
||||
{ldap_encrypt, <%= @ejabberd_ldap_encrypt %>}.
|
||||
{ldap_port, <%= @ejabberd_ldap_port %>}.
|
||||
{ldap_uids, [{"<%= @ejabberd_ldap_uidattr %>", "%u"}]}.
|
||||
{ldap_filter, "(!(loginShell=/sbin/nologin))"}.
|
||||
<% if @ejabberd_ldap_binddn -%>
|
||||
{ldap_rootdn, "<%= @ejabberd_ldap_binddn %>"}.
|
||||
{ldap_password, "<%= @ejabberd_ldap_bindpw %>"}.
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
%%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue