Authentication: Moving from Static to Dynamic
Cyber criminals keep getting smarter—yet most authentication solutions are stuck in time. Static passwords are far too vulnerable to protect your most critical business applications.
Watch our NetIQ on demand webinar and learn more about dynamic authentication. It’s the most potent protection available, using data and context to make smart decisions about every login attempt. At this webinar, our experts will cover:
- Just how easy it is to put user data and context to work for you, to keep bad actors out
- Affordable, automated solutions that can help you boost security across your entire organization
- Top tips for identifying risk and avoiding pitfalls in your own organization
Watch the webinar now.
Authentication: Moving from Static to Dynamic
Presenter: Kent Purdy, Solutions Marketing, NetIQ
Presenter: Jim Gerken, Director – Identity Practice, Novacoast
";
//print_r($request_url); // http://intratest.provo.novell.com/form_builder/index.php/forms/display_form/rac
// https://intratest.attachmategroup.com/form_builder/index.php/forms/display_form/rac
$json_response = '';
if (empty($_GET['hide_demandbase'])) {
$current_ip = $_SERVER['REMOTE_ADDR'];
$headers = apache_request_headers();
if(isset($headers["X-Forwarded-For"])) {
$x_forwarded_for_arr = explode(',', $headers["X-Forwarded-For"]);
$current_ip = trim($x_forwarded_for_arr[0]);
}
$ip_data_apc_key = "demandbase_data_$current_ip";
//apc_delete($ip_data_apc_key);
if (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION >= 7) {
if (apcu_exists($ip_data_apc_key)) {
$json_response = apcu_fetch($ip_data_apc_key);
} else {
require_once($_SERVER['DOCUMENT_ROOT'].'/common/util/classes/demandbase_helper.php');
$demandbase_helper = new demandbase_helper();
$json_response = $demandbase_helper->get_ip_based_data($current_ip);
apcu_store($ip_data_apc_key, $json_response, 604800); // store 1 week
}
}
else {
if (apc_exists($ip_data_apc_key)) {
$json_response = apc_fetch($ip_data_apc_key);
} else {
require_once($_SERVER['DOCUMENT_ROOT'].'/common/util/classes/demandbase_helper.php');
$demandbase_helper = new demandbase_helper();
$json_response = $demandbase_helper->get_ip_based_data($current_ip);
apc_store($ip_data_apc_key, $json_response, 604800); // store 1 week
}
}
}
$cookies = "";
foreach($_COOKIE as $cookie => $val){
$cookies .= $cookie."=".$val."; ";
}
// print_r($request_url);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIE, $cookies);
$data = array();
if (!empty($_POST)) {
$data = $_POST;
}
if (!empty($json_response)) {
$data['demandbase_data'] = json_decode($json_response, true);
}
$post_data = array(
'data' => $data,
);
curl_setopt($ch, CURLOPT_POST, count($data));
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$result = curl_exec($ch);
if ($result === false) {
// echo "curl error"; // DREW TODO - remove this echo
// echo curl_error($ch);
} else {
// echo "no error";
}
curl_close($ch);
// header ("content-type: text/html");
echo $result;
}