Using an SQL Privileged Account for RPC
This procedure enables you to password change SQL accounts using a privileged account. This allows you to take over accounts without knowing their password.
Task 1: Creating an Account
- Open the SQL Server Management Studio.
- Connect to your database server.
- Expand the root-level security folder.
- Right click the Logins folder.
- Click New login.
- Name the account.
- Click SQL Authentication.
- Go to Secret Server.
- Create a secret using the SQL Server Account template. Give it the same username as the "New Login" you are trying to create in the SQL Server Management Studio.
- Click the Generate button on the secret password field enhanced security.
- Copy the generated password to the account creation wizard in the SQL Server Management Studio.
- Click Create Secret to save your secret.
Task 2: Assigning Permissions
-
Return to the SQL Server Management Studio and connect to your database server.
- Right-click on the SQL login you created in task 1 and click Properties.
- Select Securables in the left column.
- Select Grant for Alter any login.
Task 3: Using the Account
- In Secret Server, select the SQL account secret you are going to have represent your new privileged account.
- Select the Remote Password Changing tab.
- Click Edit in the RPC / AutoChange section.
- Change from the Change Password Using default selection to Privilege Account Credentials option.
- Click the No Selected Secret link that appears.
- Find and select the secret created for the privileged account in the first task.
- Click the Save button.
- Click the Change password now button.
- In the Next Password dropdown select either Manual or Randomly generated.
- If you selected Manual, provide a new password and click Change Password.
- If you selected Randomly generated, the default option, just click the Change Password button.
- You have now successfully changed a SQL account password using a privileged account.