Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

error 18456 on secondary node alwayson with powershell

$
0
0

Hi all,

i get the error in object when try to launch a powershell script that remove from AG some db.

Configuration is following:

- 1 domain user added as administrator locally on both 2 node;

- powershell script is invoked by jenkins scheduler. Domain user is stored on jenkins scheduler;

- on both sql server domain user is sysadmin.

So script work fine on primary node, remove db from ag and after delete it. When i try to launch script from primary node to secondary doesn't work, i got error in attach with "login failed for NT AUTHORITY\ANONYMOUS LOGON".

user and password for security are not hardcoded into the script. Into the script there is integrated security = true. We tried with integrated security = SSPI but got same error. If we put integrated security = false it works on secondary node.

What are doing wrong?

Thanks


Viewing all articles
Browse latest Browse all 4532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>