mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°1260 MySQL TLS connection : apply Hardis patch (many thanks !)
SVN:trunk[5306]
This commit is contained in:
@@ -5805,6 +5805,10 @@ abstract class MetaModel
|
||||
$sUser = self::$m_oConfig->GetDBUser();
|
||||
$sPwd = self::$m_oConfig->GetDBPwd();
|
||||
$sSource = self::$m_oConfig->GetDBName();
|
||||
$sSSLKey = self::$m_oConfig->GetDBSSLKey();
|
||||
$sSSLCert = self::$m_oConfig->GetDBSSLCert();
|
||||
$sSSLCA = self::$m_oConfig->GetDBSSLCA();
|
||||
$sSSLCipher = self::$m_oConfig->GetDBSSLCipher();
|
||||
$sTablePrefix = self::$m_oConfig->GetDBSubname();
|
||||
$sCharacterSet = self::$m_oConfig->GetDBCharacterSet();
|
||||
$sCollation = self::$m_oConfig->GetDBCollation();
|
||||
@@ -5884,7 +5888,7 @@ abstract class MetaModel
|
||||
self::$m_sDBName = $sSource;
|
||||
self::$m_sTablePrefix = $sTablePrefix;
|
||||
|
||||
CMDBSource::Init($sServer, $sUser, $sPwd); // do not select the DB (could not exist)
|
||||
CMDBSource::Init($sServer, $sUser, $sPwd, '', $sSSLKey, $sSSLCert, $sSSLCA, $sSSLCipher); // do not select the DB (could not exist)
|
||||
CMDBSource::SetCharacterSet($sCharacterSet, $sCollation);
|
||||
// Later when timezone implementation is correctly done: CMDBSource::SetTimezone($sDBTimezone);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user