x.x.255.255 range $ipv4 = array( array("head" => ip2long("10.0.0.0"), "tail" => ip2long("10.255.255.255")), array("head" => ip2long("128.189.64.0"), "tail" => ip2long("128.189.255.255")), array("head" => ip2long("137.82.0.0"), "tail" => ip2long("137.82.255.255")), array("head" => ip2long("142.90.0.0"), "tail" => ip2long("142.90.255.255")), array("head" => ip2long("142.103.0.0"), "tail" => ip2long("142.103.255.255")), array("head" => ip2long("142.231.64.0"), "tail" => ip2long("142.231.255.255")), array("head" => ip2long("172.16.0.0"), "tail" => ip2long("172.31.255.255")), array("head" => ip2long("192.168.0.0"), "tail" => ip2long("192.168.255.255")), array("head" => ip2long("198.162.32.0"), "tail" => ip2long("198.162.255.255")), array("head" => ip2long("206.12.0.0"), "tail" => ip2long("206.12.255.255")), array("head" => ip2long("206.87.0.0"), "tail" => ip2long("206.87.255.255")), array("head" => ip2long("207.23.94.0"), "tail" => ip2long("207.23.255.255")) ); $ipv6 = array( array("head" => ip2long("2607:F8F0:0000::0000"), "tail" => ip2long("2607:F8F0:FFFF::FFFF")) ); /* User's IP as reported by the browser. We'll not concern ourselves if the user is intentionally masking their IP address or using a proxy/VPN agent. */ $user_ip = ip2long($_SERVER["REMOTE_ADDR"]); ?> // console.log("<?php echo $_SERVER['REMOTE_ADDR'] . " >> " . $user_ip; ?>"); // <?php // ipv4 vs ipv6? $ip_type = strpos($user_ip, ":") === false ? 4 : 6; if($ip_type == 4) { foreach($ipv4 as $ip) { ??> // console.log("<?php echo $ip["head"] . " " . $ip["tail"]; ?>");console.log("<?php echo $ipv4;?>"); // <?php if($user_ip ?>= $ip["head"] && $user_ip <= $ip["tail"]) { $ip_in_range = true; } } } else if($ip_type == 6) { foreach($ipv6 as $ip) { if($user_ip >= $ip["head"] && $user_ip <= $ip["tail"]) { $ip_in_range = true; } } } if( $ip_in_range == true) { ?>
The new redundant ELDAP environment in the Kamloops datacentre is now available to provide added resilience for your application in terms of user authentication availability.
---------------------------------------------
Adding the Kamloops ELDAP connection:
If your application supports multiple LDAP connections, you may add the ELDAP-Kamloops load-balanced URL to provide additional failover capability:
ldaps://eldapcons-k.id.ubc.ca port 636;
Use the same service credentials as your existing ELDAP-Vancouver (ldaps://eldapcons.id.ubc.ca) connection.
Configuration for multiple LDAP connections will differ per application, and not all applications will support it; please check your application’s LDAP integration documentation for details. In general, if the first LDAP connection should become unavailable, then the application will failover to the subsequent connection.
Contact
If you have any questions about this please contact:
Andy Tam - Project Manager
andy.tam@ubc.ca
Alistair Sutherland - Manager Identity & Access Management
alistair.sutherland@ubc.ca
Sorry, this page content is only accessible to authorized UBC personnel.
If you think you are seeing this page in error, please contact your IT administrator.
<?php } ??>