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
|
@ -36,6 +36,21 @@
|
|||
# $ejabberd_ldap_basedn:
|
||||
# LDAP base dn.
|
||||
#
|
||||
# $ejabberd_ldap_encrypt:
|
||||
# LDAP encryption. Defaults to "tls".
|
||||
#
|
||||
# $ejabberd_ldap_port:
|
||||
# LDAP port. Defaults to 636.
|
||||
#
|
||||
# $ejabberd_ldap_uidattr:
|
||||
# LDAP UID attribute. Defaults to "uid".
|
||||
#
|
||||
# $ejabberd_ldap_binddn:
|
||||
# Optional bind DN.
|
||||
#
|
||||
# $ejabberd_ldap_bindpw:
|
||||
# Bind DN password.
|
||||
#
|
||||
class ejabberd {
|
||||
|
||||
include user::system
|
||||
|
@ -51,6 +66,16 @@ class ejabberd {
|
|||
$ejabberd_auth = "internal"
|
||||
}
|
||||
|
||||
if !$ejabberd_ldap_encrypt {
|
||||
$ejabberd_ldap_encrypt = "tls"
|
||||
}
|
||||
if !$ejabberd_ldap_port {
|
||||
$ejabberd_ldap_port = "636"
|
||||
}
|
||||
if !$ejabberd_ldap_uidattr {
|
||||
$ejabberd_ldap_uidattr = "uid"
|
||||
}
|
||||
|
||||
case $ejabberd_muclog_format {
|
||||
"","html","plaintext": { }
|
||||
default: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue