You can specify a custom login failed page when a user fails to authenticate to Portal Server.
Login to the Access Manager console as administrator.
By default, when you log in, Identity Management is selected in the location pane, and Organizations is selected in the Navigation pane.
Select the EnterpriseSample organization.
Select Services from the View menu.
Click the properties icon arrow next to Core under Authentication Modules.
Specify the login failed URL for the Default Failure Login URL.
The Enterprise Sample specifies the default login failure URL for the AdventureSports Cafe as http://siroe.com/portal/dt?loginfailed=true. The JSP file that determines what to do with a login failure is PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/ASCTabContainer/anonymous.jsp.
Customize the anonymous.jsp file in PortalServer-Datadir/portals/portal-ID/desktop/enterprise_sample/ASCTabContainer directory.