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
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 1728. See Solution 1728 for steps to configure Host Inventory.
Steps:
- 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.
- Set the unused login page Title: Host Inventory.
- Check the enable box next to the login page you have chosen.
- 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.
- 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.
- Apply the changes.
- Perform steps 1-6 to your Host Inventory page so both portals match.
Related articles:
Technical Tip: Enable Host Inventory Management.