Authentication in SQL Server Analysis Services

Authentication is the process of verifying the identity of a user or application attempting to connect to SQL Server Analysis Services (SSAS). SSAS supports various authentication methods to ensure secure access to your multidimensional or tabular models.

Supported Authentication Methods

SSAS primarily relies on Windows authentication and SQL Server authentication. The choice of method often depends on your network environment and security requirements.

1. Windows Authentication

Windows authentication is the most common and recommended method for connecting to SSAS when it's running on a Windows domain. It leverages the existing security infrastructure of Windows.

2. SQL Server Authentication

SQL Server authentication allows users to connect to SSAS using a specific SSAS login and password, separate from Windows credentials. This method is useful in scenarios where Windows authentication is not feasible or desired.

Connecting with Different Authentication Methods

When establishing a connection to SSAS, you'll typically specify the authentication method and credentials in your connection string or through the client application's connection dialog.

Connection String Examples

Windows Authentication (Integrated Security):

Provider=MSOLAP.8;Data Source=YourServerName;Initial Catalog=YourDatabaseName;Integrated Security=SSPI;Impersonation Level=Impersonate;

SQL Server Authentication:

Provider=MSOLAP.8;Data Source=YourServerName;Initial Catalog=YourDatabaseName;User ID=YourSSASLogin;Password=YourSSASPassword;
Note: Always use secure methods for storing and transmitting passwords, especially in production environments. Consider using Windows authentication whenever possible.

Authentication vs. Authorization

It's important to distinguish between authentication and authorization:

After a user is successfully authenticated, SSAS applies authorization rules to control their access to resources.

Best Practices

Tip: For optimal security, configure SSAS to use Kerberos authentication in multi-server environments. This provides seamless single sign-on and enhanced security.
Warning: Avoid using highly privileged accounts (like built-in administrator accounts) for the SSAS service. This significantly increases the attack surface.

Further Reading