Add a new flag "debug" (false by default) to turn off the debug traces of the module since the traces contain potentially sensitive information in clear text.

SVN:trunk[3083]
This commit is contained in:
Denis Flaven
2014-02-14 17:51:50 +00:00
parent cb4c2a8e84
commit 8e0c57fce0
2 changed files with 2 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ class UserLDAP extends UserInternal
protected function LogMessage($sMessage, $aData = array())
{
if (MetaModel::IsLogEnabledIssue())
if (MetaModel::GetModuleSetting('authent-ldap', 'debug', false) && MetaModel::IsLogEnabledIssue())
{
if (MetaModel::IsValidClass('EventIssue'))
{

View File

@@ -56,6 +56,7 @@ SetupWebPage::AddModule(
LDAP_OPT_PROTOCOL_VERSION => 3,
LDAP_OPT_REFERRALS => 0,
),
'debug' => false,
),
)
);