diff --git a/Python/etc/ejabberd/ejabberd.cfg b/Python/etc/ejabberd/ejabberd.cfg index 321b0c1..d12af8a 100644 --- a/Python/etc/ejabberd/ejabberd.cfg +++ b/Python/etc/ejabberd/ejabberd.cfg @@ -3,6 +3,9 @@ info["owner"] = "ejabberd" info["group"] = "ejabberd" info["perms"] = 0640 + +include("secrets") + @%%% @%%% Debian ejabberd configuration file @%%% This config must be in UTF-8 encoding @@ -286,16 +289,16 @@ info["perms"] = 0640 @%%{ldap_port, 636}. @%% @%% LDAP manager: -@{ldap_rootdn, "cn=readonly,dc=crans,dc=org"}. +print """{ldap_rootdn, "%s"}.""" % secrets.ldap_readonly_auth_dn @%% @%% Password to LDAP manager: -@{ldap_password, "**FUCK A DUCK**"}. +print """{ldap_password, "%s"}.""" % secrets.ldap_readonly_password @%% @%% Search base of LDAP directory: @{ldap_base, "dc=crans,dc=org"}. @%% @%% LDAP attribute that holds user ID: -@{ldap_uids, [{"uid", "%u"}, {"mailAlias","%u"}]}. +@{ldap_uids, [{"uid", "%u"}, {"mailAlias","%u@crans.org"}]}. @%% @%% LDAP filter: @{ldap_filter, "(objectClass=cransAccount)"}.