Forum Discussion
bhs_114985
Nov 07, 2014Historic F5 Account
Hi Luis,
To customize the Logon Page in 11.4
- Access Policy>Customization>Advanced>Edit Mode>Advanced>Customization Settings>Access Profiles>”Access Profile name”>Access Policy>Logon Pages>Logon Page>logon.inc
a.Navigate to line 486
b.Insert the following code edited per your requirement:
?>
Domain
carnivalnetworks.com
cn.com
carnivalnetworks.net
myfselab.com
Navigate up a few lines to 403 and look for the following code:
foreach( $fields_settings as $id=>$field_settings )
The “if” statement below will need to be edited so the form data txt for domain is sent but not visible as a field to the user.
Default: if( $field_settings["type"] != "none" )
New Code:
Click Save Draft/Save
Create the VPE Login Page Action
In VPE navigate to the Logon Page
Configure the Field 3 settings as per below:
a.Type: txt
b.Post Variable Name: domain
c.Session Variable Name: domain
d.Logon Page Input Field: domain
Click the Branch Rules Tab
Click Add Branch Rule
Give it a meaningful name: carnivalnetworks domain
Click: Change
Click: Add Expression
Click: Add Expression again
Click: Advanced
Add the following expression adjusting the name for your environment:
expr { [mcget {session.logon.last.domain}] == "carnivalnetworks.com" }
(Repeat steps 9-15 for each domain to be added)
Tie it all together in policy
- Luis_C__WiedemaNov 07, 2014NimbostratusThis is getting me closer but I'm not sure about one thing... I think you're line 486 is different than mine. Can you post a few lines above and below where this code should go? The foreach( $fields_settings as $id=>$field_settings ) is also on line 395 not 403. Not trying to be picky but for future reference for anyone else reading this. :) Thanks again, Luis