Skip to main content
FortiKoala
Staff
Staff
September 28, 2018

Technical Tip: Advanced Portal Configuration (Host Inventory)

  • September 28, 2018
  • 0 replies
  • 884 views

Description

 
This article describes how to create a login page to redirect access to Host Inventory Portal from the main login menu.


Scope

FortiNAC
Version: 7.2.x and greater


Solution

 
Procedure:
To modify the Custom Login, Anonymous Authentication, or Guest Login page to redirect to the Host Inventory portal.
 
Note:
The below steps assume that the Host Inventory has already been configured as per the instructions from Solution 1728See Solution 1728 for steps to configure Host Inventory.
 
Steps:
  1. Choose an unused login page to modify for Host Inventory redirection (Custom Login, Anonymous Authentication, and Guest Login are all good choices) from the Registration -> Login Menu page.
  2. Set the unused login page Title: Host Inventory.
  3. Check the enable box next to the login page you have chosen.
  4. Verify that none of your Link Text fields (field below title) contains hyperlinks. If your Link fields contain hyperlinks, you may need assistance from support.
  5. Insert the following script into the Login Menu -> Left Column Content: field.
<script type="text/javascript"> 
(function() { 
 var onload = window.onload; 
 window.onload = function() { 
  if(onload) { 
   onload(); 
  } 
 
  var anchors = document.getElementsByTagName("a"); 
  for(var i = 0; i < anchors.length; i++) { 
   if(anchors[i].href.indexOf("CustomLogin.jsp") > -1) { 
    anchors[i].href = "/registration/ValidUserLogin.jsp?portalName=Host_Inventory"; 
   } 
   else {
    anchors[i].href+="?portalName=Portal";
   } 
  }
 } 
})(); 
</script>
 
Red Fields = Names of the default portal page and Host Inventory portal page.
Green Field = page that was chosen for the unused login page.
Custom Login = CustomLogin.jsp.
Anonymous Authentication = AnonymousAuth.jsp.
Guest Login = GuestLoginGCS.jsp.
 
  1. Apply the changes.
  2. Perform steps 1-6 to your Host Inventory page so both portals match.

 

Related articles:

Technical Tip: Enable Host Inventory Management.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!