Child pages
  • Testing Guide for Shibboleth IdP Staging Environment

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Modifying your hosts file causes your local machine only to use the IP address specified.

You need to add an entry to your hosts file that contains the IP address of the staging Shibboleth server:

  216.165.49.31 shibboleth.nyu.edu

Be sure to remove this line when you have completed testing!

The following sections provide instructions for locating and editing the hosts file on several operating systems. After you add the domain information and save the file, your system begins resolving to the specified IP address. After testing is finished, remove these entries.

Windows 10, Windows 8, Windows 7, and Windows Vista

Windows 10, Windows 8, Windows 7, and Windows Vista use User Account Control (UAC), so Notepad must be run as Administrator.

For Windows 10 and 8

  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad and select Run as administrator.
  4. In Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
  5. Make the necessary changes to the file (add line: 216.165.49.31 shibboleth.nyu.edu)
  6. Click File > Save to save your changes.

    You can now test logging into your application. The SSO login screen should look similar
    to the screenshot at the bottom of this document (reflecting use of the new IdP).

For Windows 7 and Vista

  1. Click Start > All Programs > Accessories.
  2. Right-click Notepad and select Run as administrator.
  3. Click Continue on the Windows needs your permission UAC window.
  4. When Notepad opens, click File > Open.
  5. In the File name field, type C:\Windows\System32\Drivers\etc\hosts.
  6. Click Open.
  7. Make the necessary changes to the file (add line: 216.165.49.31 shibboleth.nyu.edu)
  8. Click File > Save to save your changes.

    You can now test logging into your application. The SSO login screen should look similar
    to the screenshot at the bottom of this document (reflecting use of the new IdP). 

Linux

  1. Open a terminal window.
  2. Open the hosts file in a text editor (you can use any text editor) by typing the following line:
    sudo nano /etc/hosts
  3. Enter your domain user password.
  4. Make the necessary changes to the file (216.165.49.31 shibboleth.nyu.edu)
  5. Press Control-x.
  6. When asked if you want to save your changes, answer y.

    You can now test logging into your application. The SSO login screen should look similar
    to the screenshot at the bottom of this document (reflecting use of the new IdP). 

Mac OS X 10.6 and later...

  1. Open Applications > Utilities > Terminal.
  2. Open the hosts file by typing the following line in the terminal window:
    sudo nano /private/etc/hosts
  3. Type your domain user password when prompted.
  4. Edit the hosts file.
    The file contains some comments (lines starting with the # symbol), and some default hostname mappings (for example, 127.0.0.1 – local host). Add your new mappings after the default mappings (add line: 216.165.49.31 shibboleth.nyu.edu)
  5. Save the hosts file by pressing Control+x and answering y.
  6. Make your changes take effect by flushing the DNS cache with the following command:
    dscacheutil -flushcache

    You can now test logging into your application. The SSO login screen should look similar
    to the screenshot at the bottom of this document (reflecting use of the new IdP). 
     


    Image Added

 

Content by Label
showLabelsfalse
max5
spacesnyuidm
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("sp","shibboleth","sso") and type = "page" and space = "nyuidm"
labelssso shibboleth sp

...