Extended protection for authentication with Reporting Services

Extended Protection is a set of enhancements to recent versions of the Microsoft Windows operating system. Extended protection enhances how applications can protect credentials and authentication. The feature itself doesn't directly provide protection against specific attacks such as credential forwarding, but it provides an infrastructure for applications such as Reporting Services to enforce Extended Protection for Authentication.

The main authentication enhancements that are part of extended protection are service binding and channel binding. Channel binding uses a channel binding token (CBT), to verify that the channel established between two end points wasn't compromised. Service binding uses Service Principal Names (SPN) to validate the intended destination of authentication tokens. For more background information about extended protection, see Integrated Windows authentication with extended protection.

SQL Server Reporting Services (SSRS) supports and enforces Extended Protection that was enabled in the operating system and configured in Reporting Services. By default, Reporting Services accepts requests that specify Negotiate or NTLM authentication and could therefore benefit from Extended Protection support in the operating system and the Reporting Services extended protection features.

Important

By default, Windows does not enable Extended Protection. For information about how to enable Extended Protection in Windows, see Extended protection for authentication. Both the operating system and client authentication stack must support Extended Protection so that authentication succeeds. For older operating systems you may need to install more than one update for a complete, Extended Protection ready computer. For information on recent developments with Extended Protection, see updated information with extended protection.

Reporting Services extended protection overview

SSRS supports and enforces extended protection that was enabled in the operating system. If the operating system doesn't support extended protection or the feature in the operating system wasn't enabled, the Reporting Services extended protection feature fails authentication. Reporting Services Extended Protection also requires a TLS/SSL Certificate. For more information, see Configure TLS connections on a native mode report server

Important

By default, Reporting Services does not enable Extended Protection. The feature can be enabled by modifying the rsreportserver.config configuration file or by using WMI APIs to update the configuration file. SSRS does not provide a user interface to modify or view extended protection settings. For more information, see the configuration settings section in this topic.

Common issues that occur because of changes in extended protection settings or incorrectly configured settings aren't exposed with obvious error messages or dialog windows. Issues related to extended protection configuration and compatibility result in authentication failures and errors in the Reporting Services trace logs.

Important

Some data access technologies may not support extended protection. A data access technology is used to connect to SQL Server data sources and to the Reporting Services catalog database. Failure of a data access technology to support extended protection impacts Reporting Services in the following ways:

  • The SQL Server that runs the Reporting Services catalog database cannot have extended protection enabled or the report server will not successfully connect to the catalog database and return authentication errors.
  • SQL Server instances that are used as Reporting Services report data sources cannot have extended protection enabled or tries by the report server to connect to the report data source will fail and return authentication errors.

The documentation for a data access technology should have information about support for extended protection.

Upgrade

  • Upgrading a Reporting Services server to SQL Server 2016 adds configuration settings with default values to the rsreportserver.config file. If the settings were already present, the SQL Server 2016 installation preserves them in the rsreportserver.config file.

  • When the configuration settings are added to the rsreportserver.config configuration file, the default behavior is for the Reporting Services extended protection feature to be off, and you must enable the feature as described in this article. For more information, see the configuration settings section in this article.

  • The default value for the setting RSWindowsExtendedProtectionLevel is Off.

  • The default value for the setting RSWindowsExtendedProtectionScenario is Proxy.

  • Upgrade Advisor doesn't verify that the operating system or the current installation of Reporting Services with Extended Protection support enabled.

What Reporting Services extended protection does not cover

The Reporting Services extended protection feature doesn't support the following feature areas and scenarios:

  • Authors of Reporting Services custom security extensions must add support for extended protection to their custom security extension.

  • The third-party vendor must update the third-party components added to or used by a Reporting Services installation to support extended protection. For more information, contact the third-party vendor.

Deployment scenarios and recommendations

The following scenarios illustrate different deployments and topologies and the recommended configuration to secure them with Reporting Services Extended Protection.

Direct

This scenario describes directly connecting to a report server, for example, an intranet environment.

Scenario Scenario Diagram How to secure
Direct TLS communication.

The report server enforces client to report server Channel Binding.
Diagram that shows direct TLS communication.

1) Client application

2) Report server
Set RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Direct.



-Service Binding isn't necessary because the TLS channel is used for Channel Binding.
Direct HTTP communication. The report server enforces Client to report server Service Binding. Diagram that shows HTTP communication.

1) Client application

2) Report server
Set RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Any.



-There is no TLS Channel therefore no enforcement of Channel Binding is possible.

-Service Binding can be validated, however, it isn't a complete defense without Channel binding and Service Binding on its own only protects from basic threats.

Proxy and network load balancing

Client applications connect to a device or software that performs TLS and passes through the credentials to the server for authentication, for example, an extranet, Internet, or Secure Intranet. The client connects to a Proxy or all clients use a proxy.

The situation is the same when you use a Network Load Balancing (NLB) device.

Scenario Scenario Diagram How to secure
HTTP communication. The report server enforces client to report server Service Binding. Diagram that shows indirect HTTP communication.

1) Client application

2) Report server

3) Proxy
Set RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Any.



-There is no TLS Channel therefore no enforcement of Channel Binding is possible.

-The report server must be configured to know the name of the proxy server to make sure that the service binding is correctly enforced.
HTTP communication.

The report server enforces client to Proxy Channel Binding and client to report server Service Binding.
Diagram that shows indirect SSL communication.

1) Client application

2) Report server

3) Proxy
Set
RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Proxy.



-TLS channel to proxy is available therefore channel binding to the proxy can be enforced.

-Service Binding can also be enforced.

-The Proxy name must be known to the report server and the report server administrator should either create a URL reservation for it, with a host header or configure the Proxy name in the Windows registry entry BackConnectionHostNames.
Indirect HTTPS communication with a secure proxy. Report server enforces client to proxy Channel Binding and Client to report server Service Binding. Diagram that shows indirect HTTPS communication with a secure proxy.

1) Client application

2) Report server

3) Proxy
Set
RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Proxy.



-TLS channel to proxy is available therefore channel binding to the proxy can be enforced.

-Service Binding can also be enforced.

-The Proxy name must be known to the report server and the report server administrator should either create a URL reservation for it, with a host header or configure the Proxy name in the Windows registry entry BackConnectionHostNames.

Gateway

This scenario describes Client applications connecting to a device or software that performs TLS and authenticates the user. Then the device or software impersonates the user context or a different user context before it makes a request to the report server.

Scenario Scenario Diagram How to secure
Indirect HTTP communication.

Gateway enforces Client to Gateway channel binding. There's a Gateway to report server Service Binding.
Diagram that shows indirect SSL communication.

1) Client application

2) Report server

3) Gateway device
Set RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Any.



-Channel Binding from client to report server isn't possible because the gateway impersonates a context and therefore creates a new NTLM token.

-There is no TLS from the Gateway to report server therefore channel binding can't be enforced.

-Service Binding can be enforced.

-Your administrator should configure the Gateway device to enforce channel binding.
Indirect HTTPS communication with a Secure Gateway. The Gateway enforces Client to Gateway Channel Binding and the report server enforces Gateway to report server Channel Binding. Diagram that shows indirect HTTPS communication with a Secure Gateway.

1) Client application

2) Report server

3) Gateway device
Set RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Direct.



-Channel Binding from client to report server isn't possible because the gateway impersonates a context and therefore creates a new NTLM token.

-TLS from Gateway to the report server means channel binding can be enforced.

-Service Binding isn't required.

-Your administrator should configure the Gateway device to enforce channel binding.

Combination

This scenario describes Extranet or Internet environments where the client connects a Proxy in combination with an intranet environment where a client connects to report server.

Scenario Scenario Diagram How to secure
Indirect and direct access from client to report server service without TLS on either of the client to proxy or client to report server connections. 1) Client application

2) Report server

3) Proxy

4) Client application
Set RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Any.



-Service Binding from client to report server can be enforced.

-The Proxy name must be known to the report server and the report server administrator should either create a URL reservation for it, with a host header or configure the Proxy name in the Windows registry entry BackConnectionHostNames.
Indirect and direct access from client to report server where the client establishes a TLS connection to the proxy or report server. Diagram that shows indirect and direct access from client to report server.

1) Client application

2) Report server

3) Proxy

4) Client application
Set RSWindowsExtendedProtectionLevel to Allow or Require.

Set RSWindowsExtendedProtectionScenario to Proxy.



-Channel Binding can be used

-The Proxy name must be known to the report server and the report server administrator should either create a URL reservation for the proxy, with a host header or configure the Proxy name in the Windows registry entry BackConnectionHostNames.

Configuring Reporting Services extended protection

The rsreportserver.config file contains the configuration values that control the behavior of Reporting Services extended protection.

For more information about how to use and edit the rsreportserver.config file, see RsReportServer.config configuration file. The extended protection settings can also be changed and inspected by using WMI APIs. For more information, see SetExtendedProtectionSettings method (WMI MSReportServer_ConfigurationSetting).

When validation of the configuration settings fails, the authentication types RSWindowsNTLM, RSWindowsKerberos and RSWindowsNegotiate are disabled on the report server.

Configuration settings for Reporting Services extended protection

The following table provides information about configuration settings that appear in the rsreportserver.config for extended protection.

Setting Description
RSWindowsExtendedProtectionLevel Specifies the degree of enforcement of extended protection. Valid values are:

Off: Default. Specifies no channel binding or service binding verification.

Allow supports extended protection but doesn't require it. Specifies:

-Extended protection is enforced for client applications that are running on operating systems that support extended protection. How protection is enforced is determined by setting RsWindowsExtendedProtectionScenario

-Authentication is allowed for applications that are running on operating systems that don't support extended protection.

Require specifies:

-Extended protection is enforced for client applications that are running on operating systems that support extended protection.

-Authentication is not allowed for applications that are running on operating systems that don't support extended protection.
RsWindowsExtendedProtectionScenario Specifies what forms of extended protection are validated: Channel binding, Service Binding, or both. Valid values are:

Proxy: Default. Specifies:

-Windows NTLM, Kerberos, and Negotiate authentication when a channel binding token is present.

-Service Binding is enforced.

Any Specifies:

-Windows NTLM, Kerberos, and Negotiate authentication and a channel binding aren't required.

-Service binding is enforced.

Direct Specifies:

-Windows NTLM, Kerberos, and Negotiate authentication when a CBT is present, a TLS connection to the current service is present, and the CBT for the TLS connection matches the CBT of the NTLM, Kerberos or negotiate token.

-Service Binding isn't enforced.



Note: The RsWindowsExtendedProtectionScenario setting is ignored if RsWindowsExtendedProtectionLevel is set to OFF.

Example entries in the rsreportserver.config configuration file:

<Authentication>  
         <RSWindowsExtendedProtectionLevel>Allow</RSWindowsExtendedProtectionLevel>  
         <RSWindowsExtendedProtectionScenario>Proxy</RSWindowsExtendedProtectionLevel>  
</Authentication>  

Service binding and included SPNs

Service binding uses Service Principal Names or SPN to validate the intended destination of authentication tokens. Reporting Services uses the existing URL reservation information to build a list of SPNs that are considered valid. The URL reservation information for validation of both SPN and URL reservations enables system administrators to manage both from a single location.

The list of valid SPNs is updated when one of the following actions occurs:

  • The report server starts.
  • The configuration settings for extended protection are changed.
  • The application domain is recycled.

The valid list of SPNs is specific for each application. For example, Report Manager and Report Server each have a different list of valid SPNs calculated.

The following factors determine the valid SPNs calculated for an application:

  • Each URL reservation.

  • Each SPN retrieved from the domain controller for the service account for Reporting Services.

  • If a URL reservation includes wildcard characters ('*' or '+'), then Report Server adds each entry from the hosts collection.

Hosts collection sources.

The following table lists the potential sources for the Hosts collection.

Type of source Description
ComputerNameDnsDomain The name of the DNS domain assigned to the local computer. If the local computer is a node in a cluster, the DNS domain name of the cluster virtual server is used.
ComputerNameDnsFullyQualified The fully qualified DNS name that uniquely identifies the local computer. This name is a combination of the DNS host name and the DNS domain name, that uses the form HostName.DomainName. If the local computer is a node in a cluster, the fully qualified DNS name of the cluster virtual server is used.
ComputerNameDnsHostname The DNS host name of the local computer. If the local computer is a node in a cluster, the DNS host name of the cluster virtual server is used.
ComputerNameNetBIOS The NetBIOS name of the local computer. If the local computer is a node in a cluster, the NetBIOS name of the cluster virtual server is used.
ComputerNamePhysicalDnsDomain The name of the DNS domain assigned to the local computer. If the local computer is a node in a cluster, the DNS domain name of the local computer is used, not the name of the cluster virtual server.
ComputerNamePhysicalDnsFullyQualified The fully qualified DNS name that uniquely identifies the computer. If the local computer is a node in a cluster, the fully qualified DNS name of the local computer, is used not the name of the cluster virtual server.

The fully qualified DNS name is a combination of the DNS host name and the DNS domain name, that uses the form HostName.DomainName.
ComputerNamePhysicalDnsHostname The DNS host name of the local computer. If the local computer is a node in a cluster, the DNS host name of the local computer is used, not the name of the cluster virtual server.
ComputerNamePhysicalNetBIOS The NetBIOS name of the local computer. If the local computer is a node in a cluster, this source is the NetBIOS name of the local computer, not the name of the cluster virtual server.

For more information, see Register a service principal name (SPN) for a report server and About URL reservations and registration (Report Server Configuration Manager).