FortiNAC
NOTE: FortiNAC is now named FortiNAC-F. For post-9.4 articles, see FortiNAC-F. FortiNAC is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
FortiKoala
Staff
Staff
Article Id 198686

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.