Changing the service account
With the Windows authentication option selected for database connection, the Administration Service uses its service account to authenticate with SQL Server. Additionally, if the Administration Service’s database server holds the Publisher role, and has a Subscriber with Windows authentication, the service account requires the appropriate permissions on the Subscriber SQL Server. For details, see the “SQL Server permissions” section in the Active Roles Quick Start Guide.
Because of the requirements of the service account, you might have to specify a different service account with sufficient SQL Server permissions. Also, you might have to change the service account’s password.
To view or change the service account by using Active Roles Configuration Center
-
Start the Configuration Center on the computer running the Administration Service, or connect the Configuration Center to that computer.
You can start Configuration Center by selecting Active Roles 8.1.2 Configuration Center on the Apps page or Start menu, depending upon the version of your Windows operating system. For more information, see Running Configuration Center.
-
On the Dashboard page in the Configuration Center main window, click Manage Settings in the Administration Service area.
-
On the Administration Service page that opens, click Change in the Service account area.
-
On the Change Service Account page that appears, type the logon name and password of the service account, and then click Change.
Changing the SQL Server Agent logon account
If the Publisher has a Subscriber that uses Windows authentication, the SQL Server Agent logon account on the Publisher SQL Server must have appropriate access permissions on the Subscriber SQL Server. For details, see the “SQL Server permissions” section in the Active Roles Quick Start Guide.
Because of these requirements of the SQL Server Agent logon account, there might be a case where you have to specify a different logon account with sufficient access permissions. You might also have to change the password of the logon account. This section provides instructions on how to change the SQL Server Agent logon account.
To specify the name and password of the SQL Server Agent logon account by using SQL Server Configuration Manager
-
On the computer running the Publisher SQL Server, open SQL Server Configuration Manager.
-
In the Console tree, select SQL Server Services.
-
In the Details pane, right-click the SQL Server Agent to modify, and then click Properties.
-
On the Log On tab, click This account, and specify the account name and password.
-
Click OK.
-
For the changes to take effect, click Yes in the confirmation message box.
Modifying Replication Agent credentials
This section provides information on how to repair Active Roles replication if it fails due to insufficient permissions of Replication Agents. The credentials that are used by Replication Agents to access a given SQL Server depend on authentication mode of the Administration Service connection to that SQL Server:
-
Windows authentication: In this mode, Replication Agents use the credentials of the SQL Server Agent service that is running on the PublisherSQL Server computer.
-
SQL Server authentication: In this mode, Replication Agents use the credentials of the SQL Server login that is specified for the Administration Service connection to SQL Server.
The following sections describe these two options.
Windows authentication
If the Administration Service uses Windows authentication, Replication Agents connect to SQL Server in the security context of the SQL Server Agent service. Therefore, the SQL Server Agent logon account must have sufficient permissions for replication to work properly. For more information, see the “SQL Server permissions” section in the Active Roles Quick Start Guide.
If the SQL Server Agent logon account does not have the appropriate permissions, is deleted, or has the password changed, Active Roles replication fails. To resolve this problem, give the required permissions to the logon account, or configure the SQL Server Agent service to log on with a different account that has the appropriate permissions. For instructions on how to configure the SQL Server Agent service to log on with a given account, see Changing the SQL Server Agent logon account.
You can use the following instructions to verify that the Replication Agents are configured properly. The instructions vary depending on whether the SQL Server holds the Publisher or Subscriber role. In both cases, connect to the Publisher SQL Server using SQL Server Management Studio.
Replication Agent connection to Publisher
If the Administration Service connects to the Publisher SQL Server using Windows authentication, follow these steps to verify that the Replication Agents are configured properly.
To verify that the Replication Agents are configured properly
-
With SQL Server Management Studio, connect to the Publisher SQL Server.
-
In the Object Browser, under the Publisher SQL Server, right-click the Replication folder, and then click Distributor Properties.
-
In the left pane of the Distributor Properties window, click Publishers.
-
In the Publishers list, select the entry representing the Publisher SQL Server, and click in that entry to display the Publisher Properties dialog.
-
In the Publisher Properties dialog, under Agent Connection to the Publisher, verify that the Agent Connection Mode property is set to Impersonate the agent process account.
Replication Agent connection to Subscriber
If the Administration Service connects to the Subscriber SQL Server using Windows authentication, follow these steps to verify that the Replication Agents are configured properly:
To verify that the Replication Agents are configured properly
-
With SQL Server Management Studio, connect to the Publisher SQL Server.
NOTE: You must have Management Studio connected to the Publisher SQL Server, regardless of whether you are managing Replication Agents for the Publisher or for a Subscriber.
-
In the Object Browser, under the Publisher SQL Server, expand Replication > Local Publications > AelitaReplica.
-
In the list under AelitaReplica, right-click the Subscriber SQL Server and click Properties.
-
In the Subscription Properties window, in the Security section, expand the Subscriber connection entry.
-
Verify that the Subscriber connection property is set to Impersonate agent process account (Windows Authentication).