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
isOff
.The default value for the setting
RSWindowsExtendedProtectionScenario
isProxy
.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.
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.
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.
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.
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).
Related content
- Connect to the database engine by using extended protection
- Extended protection for authentication overview
- Integrated Windows authentication with extended protection
- Microsoft Security Advisory: Extended protection for authentication
- Report server service trace log
- RsReportServer.config configuration file
- SetExtendedProtectionSettings method (WMI MSReportServer_ConfigurationSetting)
- Try asking the Reporting Services forum