registerFunction("getEKM"); session_start(); $user = $_SESSION['user']; $in_xAjax = false; $xAjax_objResponse; include('IOB_inc.htm'); include('common_admin_inc.htm'); class EKMdata { var $primaryIP; var $primaryPort; // default is 3801 (decimal) var $secondaryIP; var $secondaryPort; // default is 3801 (decimal) function EKMdata( $primaryIP, $primaryPort, $secondaryIP, $secondaryPort ) { $this->primaryIP = $primaryIP; $this->primaryPort = $primaryPort; $this->secondaryIP = $secondaryIP; $this->secondaryPort = $secondaryPort; } }; function getEKM() { // !?! NOTE: Not using this function - but I left it in case I wanted to switch to using it in the future. global $in_xAjax; // global $xAjax_objResponse; $user = $_SESSION['user']; $xAjax_objResponse = new xajaxResponse(); /// $in_xAjax = true; error_log("Calling get_ekm($user);"); $ekm_data = get_ekm( $user ); error_log("ekm_data = ". print_r($ekm_data, true) ); $xAjax_objResponse->assign("primIP", "value", $ekm_data->primaryIP ); $xAjax_objResponse->assign("primPort", "value", $ekm_data->primaryPort ); $xAjax_objResponse->assign("secIP", "value", $ekm_data->secondaryIP ); $xAjax_objResponse->assign("secPort", "value", $ekm_data->secondaryPort ); // Some Debug examples //$xAjax_objResponse->script('alert(xajax.$("testlevel[1]").value);'); //$xAjax_objResponse->script('alert(xajax.viewSource());'); /// $in_xAjax = false; return $xAjax_objResponse; } $xajax->processRequest(); /*******************************************************************************************/ // Handle the progress screen if opened and set the NEW data if ($_SERVER[REQUEST_METHOD] == "POST") { $operationInProgress = true; $status = new ReturnStatus(); //error_log("_POST = ". print_r($_POST, true) ); if( $_POST['DoIPs'] == 1 ) { $thePrimIP = $_POST['primIP']; $thePrimPort = (int)$_POST['primPort']; $theSecIP = $_POST['secIP']; $theSecPort = (int)$_POST['secPort']; $ekm_data = new EKMdata($thePrimIP, $thePrimPort, $theSecIP, $theSecPort); error_log("The data being set is: ". print_r($ekm_data, true) ); set_ekm( $user, $ekm_data ); } if( $_POST['DoSSL'] == 1 ) { $isSSLEnabled = isset($_POST['EKMSSL']) ? true: false; error_log("Setting SSL EKM to " . ($isSSLEnabled ? "TRUE" : "FALSE" )); set_ekm_ssl( $user, $isSSLEnabled ); } print $status->out(); return; } else { // Load the data up on the get of the page. $ekm_data = get_ekm( $user ); error_log("......................................... Getting EKM SSL state."); $ekm_ssl = get_ekm_ssl( $user ); $libekmdata = array(); // Need to get all the logical library data as well, to make sure changing this // doesn't create an invalid config. Only do this for DELL if($Brand == "dell") { $libs = get_logical_libraries($user, $sortCriteria); foreach($libs as $lib) { // Only include paritions that have library-managed encryption enabled $tempencryption = get_partition_enryption( $user, $lib->guid ); if($tempencryption->method == 4) { $tempekmdata = get_ekm_by_library( $user, $lib->guid ); $libekmdata[] = array( "pserver"=>$tempekmdata->primaryIP, "sserver"=>$tempekmdata->secondaryIP, "pport"=>$tempekmdata->primaryPort, "sport"=>$tempekmdata->secondaryPort, "name"=>$lib->name ); } } // We need to make sure that any modifications don't create either of these situations: // 1. Partitions that share one server, but aren't paired with the same primary/secondary. // 2. Primary used as a secondary on another partition, or vice-versa. // 3. Same server used with different ports. } } ?> printJavascript(); ?> Setup Encryption Key Management
Setup - Server Access
"; } else { echo "Set up the Quantum Encryption Key Manager Server access for Library Managed Encryption.
"; } ?>

"; } else { echo "Quantum Encryption Key Manager must be licensed to configure or use it.
"; } ?> Please click here to add a license key.

Note: These server settings are only used when a partition's encryption method is set to "Library Managed".

Server settings
SSL for servers:
>  
Primary IP Address or Host:
Primary port number:
Secondary IP Address or Host:  (optional)
Secondary port number:
Click here to run Path Diagnostics.