2017-05-02 02:01:30 +02:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
Microsoft SQL Server Driver for PHP - Unit Test Framework
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Global variables defining the execution context
|
|
|
|
|
|
|
|
*/
|
|
|
|
$PhpDriver = "Microsoft SQL Server Driver for PHP";
|
2017-05-02 21:29:40 +02:00
|
|
|
$server = 'TARGET_SERVER';
|
2017-05-02 23:39:55 +02:00
|
|
|
$database = 'TARGET_DATABASE';
|
2017-05-02 23:21:28 +02:00
|
|
|
$userName = 'TARGET_USERNAME';
|
|
|
|
$userPassword = 'TARGET_PASSWORD';
|
2017-05-02 02:01:30 +02:00
|
|
|
|
|
|
|
$tableName = "php_test_table";
|
|
|
|
$tableIndex = "php_test_table_index";
|
|
|
|
$procName = "php_test_proc";
|
|
|
|
$fileName = "php_test_file.dat";
|
|
|
|
|
2018-06-09 01:00:27 +02:00
|
|
|
$driver = "ODBC Driver 17 for SQL Server";
|
|
|
|
|
|
|
|
$connectionOptions = array("Database" => $database, "UID" => $userName, "PWD" => $userPassword, "TraceOn" => false, "Driver" => $driver);
|
2017-05-02 02:01:30 +02:00
|
|
|
$daasMode = false;
|
|
|
|
$marsMode = true;
|
|
|
|
|
|
|
|
$traceEnabled = false;
|
2020-02-11 20:39:31 +01:00
|
|
|
$localeDisabled = false;
|
2017-05-02 02:01:30 +02:00
|
|
|
|
2017-06-12 19:51:23 +02:00
|
|
|
$adServer = 'TARGET_AD_SERVER';
|
|
|
|
$adDatabase = 'TARGET_AD_DATABASE';
|
|
|
|
$adUser = 'TARGET_AD_USERNAME';
|
|
|
|
$adPassword = 'TARGET_AD_PASSWORD';
|
2020-10-08 21:30:04 +02:00
|
|
|
$adSPClientId = 'TARGET_ADSP_CLIENT_ID';
|
|
|
|
$adSPClientSecret = 'TARGET_ADSP_CLIENT_SECRET';
|
2017-06-12 19:51:23 +02:00
|
|
|
|
2017-05-02 02:01:30 +02:00
|
|
|
if (isset($_ENV['MSSQL_SERVER']) || isset($_ENV['MSSQL_USER']) || isset($_ENV['MSSQL_PASSWORD'])) {
|
|
|
|
$server = $_ENV['MSSQL_SERVER'];
|
|
|
|
$uid = $_ENV['MSSQL_USER'];
|
|
|
|
$pwd = $_ENV['MSSQL_PASSWORD'];
|
|
|
|
$databaseName = $_ENV['MSSQL_DATABASE_NAME'];
|
|
|
|
} else {
|
|
|
|
$uid = $userName;
|
|
|
|
$pwd = $userPassword;
|
|
|
|
$databaseName = $database;
|
|
|
|
}
|
2017-09-08 00:57:53 +02:00
|
|
|
|
|
|
|
// column encryption variables
|
|
|
|
$keystore = "none"; // key store provider, acceptable values are none, win, ksp, akv
|
|
|
|
$dataEncrypted = false; // whether data is to be encrypted
|
|
|
|
|
2018-05-07 23:16:40 +02:00
|
|
|
// for Azure Key Vault
|
2018-05-08 23:12:14 +02:00
|
|
|
$AKVKeyStoreAuthentication = 'TARGET_AKV_AUTH'; // can be KeyVaultPassword or KeyVaultClientSecret
|
|
|
|
$AKVPrincipalName = 'TARGET_AKV_PRINCIPAL_NAME'; // for use with KeyVaultPassword
|
|
|
|
$AKVPassword = 'TARGET_AKV_PASSWORD'; // for use with KeyVaultPassword
|
|
|
|
$AKVClientID = 'TARGET_AKV_CLIENT_ID'; // for use with KeyVaultClientSecret
|
|
|
|
$AKVSecret = 'TARGET_AKV_CLIENT_SECRET'; // for use with KeyVaultClientSecret
|
2018-05-06 02:08:01 +02:00
|
|
|
|
2019-11-01 00:55:36 +01:00
|
|
|
// for enclave computations
|
|
|
|
$attestation = 'TARGET_ATTESTATION';
|
2017-05-02 02:01:30 +02:00
|
|
|
?>
|