locked
Best way to post a notice at login time RRS feed

  • General discussion

  • What is the suggested/best way to post a notice on the login screen - e.g., maintenance going to be done at 2:00am.  I was thinking using the login.asp page with an announcement string that could be defined as string "xxx", but I can't find a listing of all the assigned numbered strings.

     

    Thanks,

     

    John

     

    Thursday, March 10, 2011 12:28 AM

All replies

  • Hi John,

    There are a number of approaches that you can take to achieve this. BTW, none of them should get so far as to change the actual Login.asp. The best approach depends on what is your actual goal. For example: where do you want the message displayed on the page, is this just a temporary message or a constant one, do you want to block login when the message is displayed (for example, during a maintenance window, if the UAG server is still up and running), etc. Also, using a string ID is, in most cases, only necessary if your UAG server is accessed by users that might select different languages, so you would want to create versions of your message in each language. If not, you probably do not need that.

    Here are some ideas:

    Option 1: To have your message displayed at the top of the Login page:

    a.     In the folder Program Files\Microsoft Forefront Unified Access Gateway\von\InternalSite\inc\CustomUpdate, create a file named [trunk_name][0 for HTTP or 1 for HTTPS]Login.inc . For example, if your trunk is named MyPortalTrunk and it is an HTTPS trunk, your file should be named MyPortalTrunk1Login.inc

    b.     Place in this file the HTML content that you wish, including the message.

    c.     Open a browser and access the trunk (no activation is necessary). You should see the message displayed.

    Option 2: To have your message displayed at the top of the Login page and to not allow users to logon:

    a.     Follow the instructions in Option 1 above, but end your custom Login.inc file with the following ASP directive:
    <% response.end %>

    Option 3: To have your message displayed right under the credentials fields of the Login page:

    a.     In the folder Program Files\Microsoft Forefront Unified Access Gateway\von\InternalSite\inc\CustomUpdate, create a file named [trunk_name][0 for HTTP or 1 for HTTPS]LoginForm.inc . For example, if your trunk is named MyPortalTrunk and it is an HTTPS trunk, your file should be named MyPortalTrunk1LoginForm.inc

    b.     Place in this file the HTML content that you wish, including the message. Note that this will be within the login form, so the HTML should be using <TD> tags.

    c.     Open a browser and access the trunk (no activation is necessary). You should see the message displayed.

    Hope that these are enough to get you started. If not, let us know.

    Regards,
    -Ran
    Thursday, March 10, 2011 3:25 PM
  • Wow.  Thanks Ran.  This addresses one of the things we've wanted to do.
    Thursday, March 10, 2011 4:36 PM
  • Great reply - thanks Ran.

     

    I'll play around with this today.

    Thursday, March 10, 2011 6:15 PM
  • You're welcome, guys!

    Regards,


    -Ran
    Friday, March 11, 2011 3:31 PM