Skip to main content
Documentation & User Guides | Fotoware

Setting up Active Directory Federation Services (ADFS)

Setting up and maintaining ADFS is outside the scope of FotoWeb. Therefore, these instructions are basic and not necessarily suitable and secure enough for production systems. For more information, see Microsoft Active Directory Federation Services documentation or consult your IT administrator.

Warning

For security reasons, do NOT expose the primary ADFS server (port 443) on the open internet! If users need to be able to use ADFS sign-in from outside the organization's internal network, see Setting up Web Application Proxy.

Prerequisites

  • An on-premises Active Directory domain
  • Windows Server 2022, 2019, or 2016
  • At least one server in the organization's domain that serves as ADFS server (may be the same as the domain controller)
  • (Optional) At least one server in the organization's domain that serves as CA root server (may be the same as the domain controller and/or ADFS server)
  • (Optional) A separate server in the DMZ that serves as a Web Application Proxy

Setting up the ADFS Server

  1. Go to Server Manager > Manage > Add Roles and Features.
    1. Select the Active Directory Federation Services role.
    2. Install the role with default options.
  2. Open the post-install configuration wizard for ADFS from the notification menu in Server Manager.
    1. Select Create the first server in a federation server farm.
    2. When asked for a certificate, either import a certificate from a file or enroll a certificate from your enterprise CA (if available).
    3. Select a user-friendly display name (this is displayed to the end-user when signing in).
    4. Specify a service account. You can use a regular user account or a group-managed account by following the instructions provided by the wizard.
    5. Finish the wizard.

 For more information, see the Microsoft Active Directory Federation Services documentation. 

Setting up Web Application Proxy

The ADFS server should not be exposed on the open internet. If users need to be able to use ADFS sign-in from outside the organization's internal network, then the solution is to set up a Web Application Proxy on a separate server in the DMZ.

Note: Web Application Proxy MUST use HTTPS for encrypting credentials in transit. It is strongly recommended to use a certificate signed by a public CA.

Web Application Proxy does not need to be a member of the organization's domain. Not joining the domain can be more secure, but may also make it more difficult to manage the server.

Note:

  • Even when using Fotoware SaaS with ADFS, it is not normally necessary to use Web Application Proxy. As long as all users are logging in from the internal network of their organization, where they can access the ADFS server directly, this also works with Fotoware SaaS.
  • An alternative to Web Application Proxy is to set up a VPN so users from outside the internal network of their organization can also access the primary ADFS server directly and securely. This approach is not documented here.
  1. Install the Web Application Proxy role
    1. Open Server Manager.
    2. Add the Remote Access role.
    3. Add the Web Application Proxy role service under Remote Access.
  2. Import TLS certificate to be used by the Web Application Proxy.

    The certificate must have a subject name (CN) that matches the service name of the ADFS server (for example, adfs.yourdomain.org).

    If you create the certificate in your enterprise root CA on a computer within your domain, and the Web Application Proxy server is not a member of your domain, you must export and import the certificate. When enrolling the certificate, make sure to make its private key exportable. Then, export the certificate with the private key and copy it to the Web Application Proxy server. Do not make the private key exportable when importing the certificate again. You may want to delete all copies containing the private key, including the original. Machines outside your domain will not trust such a certificate, so this approach is not recommended.

  3. Configure Web Application Proxy
    1. Open the Web Application Proxy Configuration Wizard (you can use the notification icon in Server Manager).
    2. Enter the name of the ADFS server and credentials for an administrator user on the ADFS server.
    3. Select the TLS certificate.
    4. Finish the wizard.