New ELDAP Redundant Environment Available in Kamloops Datacentre

<?php $ip_in_range = false; // for the sake of simplicity, just use the full x.x.0.0 -?>

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

<?php } else { ??>

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 } ??>

Page last updated on April 9, 2020


UBC Crest The official logo of the University of British Columbia. Urgent Message An exclamation mark in a speech bubble. Bluesky The logo for the Bluesky social media service. Bookmark A bookmark in a book. Browser A web browser window. Caret An arrowhead indicating direction. Arrow An arrow indicating direction. Arrow in Circle An arrow indicating direction. Arrow in Circle An arrow indicating direction. Time A clock. Chats Two speech clouds. E-commerce Cart A shopping cart. Facebook The logo for the Facebook social media service. Help A question mark in a circle. Home A house in silhouette. Information The letter 'i' in a circle. Instagram The logo for the Instagram social media service. Linkedin The logo for the LinkedIn social media service. Location Pin A map location pin. Mail An envelope. Menu Three horizontal lines indicating a menu. Minus A minus sign. Pencil A pencil indicating that this is editable. Telephone An antique telephone. Play A media play button. Plus A plus symbol indicating more or the ability to add. Search A magnifying glass. Settings A single gear. Arrow indicating share action A directional arrow. Speech Bubble A speech bubble. Star An outline of a star. Twitter / X The logo for the X (aka, Twitter) social media service. User A silhouette of a person. Vimeo The logo for the Vimeo video sharing service. Youtube The logo for the YouTube video sharing service.