瀏覽代碼

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.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3083 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 年之前
父節點
當前提交
e2a775e61a

+ 1 - 1
datamodels/2.x/authent-ldap/model.authent-ldap.php

@@ -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'))
 			{

+ 1 - 0
datamodels/2.x/authent-ldap/module.authent-ldap.php

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