SSL VPN
Reply
Contributor
Trans_Tel
Posts: 18
Registered: ‎07-21-2008
0

Customizing Sign In page

HI,

 

I have downloaded the junos_pulse_custom_page template file for Iphone.

I want to change username text for username/Nom d'utilisateur (bilingual message for CANADA).

Same thing with Password and Sign In button. I have searched on all files of the sample and I couldn't find it.

 

Can you help me please ???

 

Thanks !

Martin

 

Trusted Contributor
mattspierce
Posts: 107
Registered: ‎07-27-2010
0

Re: Customizing Sign In page

I've been poking around at customizing these login pages as well.  Here is a link to the admin guide for the custom login pages from the release notes.  We use the Android kb article's eample donwload.  You can find the samples in the Login section of the SA appliance.  There is a side bar on the right side that had download links to a few of the sample pages.

 

Custom Login Pages

Trusted Contributor
MvdH25
Posts: 29
Registered: ‎06-13-2008

Re: Customizing Sign In page

I think your making it too difficult.....if I understand correctly you want to change the 'Username' text ?

 

This can be done in de GUI (don't change the pages....the have a variable which is being passed from the GUI settings'.

Go to Signing In --> Sing-in Pages --> click the default and change the text behind 'username' / 'password' and ' submit'

 

Brgds,

 

Maarten

Contributor
Vijesh Bhat
Posts: 15
Registered: ‎01-27-2011
0

Re: Customizing Sign In page

This would work!
Regards,
Vijesh Bhat
Contributor
Trans_Tel
Posts: 18
Registered: ‎07-21-2008
0

Re: Customizing Sign In page

Hi, Thanks a lot for all your answers, I have tried as you said, modifying Default Page didn't affect the custom page, I don't have other choice to modify the custom pages, and try to found where is the "username" text.

 

Thanks !
Martin

Trusted Contributor
dcvers
Posts: 173
Registered: ‎11-16-2007
0

Re: Customizing Sign In page

The Username text is defined in the prompt variable. This is a multi value variable with settings for each of the fields the user enters. To change the value put the following code in the custom sign in page :

<% FOREACH prompt = prompts %>
    <%IF prompt.promptText == "username" %>
           <% SET prompt.promptText = "New text goes here!!!" %>
    <%ELSIF prompt.promptText == "password" %>
           <% SET prompt.promptText = "New text goes here!!!" %>
    <%ELSIF prompt.promptText == "Additional username" %>
          <% SET prompt.promptText = "New text goes here!!!" %>
    <%ELSIF prompt.promptText == "Additional password" %>
         <% SET prompt.promptText = "New text goes here!!!!" %>
   <% ELSE %>
   <% END %>
<% END %>

Trusted Contributor
rdit
Posts: 154
Registered: ‎07-04-2008
0

Re: Customizing Sign In page

Hmm I dont really get it. I tried to paste your code on different locations in the template of the custom sign-in page but its not working, the labels are just empty or the site gives an error-message.

 

Where do I have to put your lines in exactly?

  <%IF !AnonymousAuthentication && !CertificateAuthentication && !SAMLAuthentication%>
  <ul>
  <% FOREACH prompt = prompts %>
    <%NEXT IF !prompt.required %>
    <li>
      <table class="row">
        <tr>
          <td class="itemText"><label for="<% prompt.name %>"><% prompt.promptText %></label></td>
          <td class="textInput"><input id="<% prompt.name %>" type="<% prompt.type %>" name="<% prompt.name %>" size="17"></td>
        </tr>
      </table>
    </li>
  <% END %>

 The official (oooold) manual says I should replace <% prompt.promptText %> but thats not working...

 

Can anyone help?

Trusted Contributor
dcvers
Posts: 173
Registered: ‎11-16-2007
0

Re: Customizing Sign In page

I put it immediately before the opening <html> tag

Trusted Contributor
rdit
Posts: 154
Registered: ‎07-04-2008
0

Re: Customizing Sign In page

Works fine, thanks a lot!

Moderator
zanyterp
Posts: 2,317
Registered: ‎11-19-2007
0

Re: Customizing Sign In page

@Trans_Tel: Correct, modifying the default won't affect the custom page. After making the change, did you switch your sign-in policy back to use the default page (if not, it won't work and will use the custom page that you don't want now).

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.