I am attempting to set up a very simple snapshot replication and I am encountering this error in the SQL logs: Login failed for user 'Domain\ReplicationUser'. Reason: Attempting to use an NT account name with SQL Server Authentication. [CLIENT: <local machine>].
The interesting thing is that this is a mixed security box running SQL 2008 and I set up the exact same scenario on a SQL 2012 instance on a test server using the same domain account and it worked flawlessly.
The account is valid (and unlocked). If I enter the wrong passwords into the replication property dialogs then the processes abort immediately. With the correct password, they run and put the below information into Job History. Internet searches indicated this could be related to SPN not being registered but my SQL log shows it registered correctly.
Examples here have been edited to remove actual user and server names. Any help is appreciated.
Date 1/6/2014 1:56:03 PM
Log Job History (XXXX03-blahblahblah)
Step ID 2
Server XXX03
Job Name XXX03-blahblahblah
Step Name Run agent.
Duration 00:00:07
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
2014-01-06 19:56:08.48 Microsoft (R) SQL Server Snapshot Agent
2014-01-06 19:56:08.48 [Assembly Version = 10.0.0.0, File Version = 10.0.1600.22 ((SQL_PreRelease).080709-1414 )]
2014-01-06 19:56:08.48 Copyright (c) 2008 Microsoft Corporation.
2014-01-06 19:56:08.48 The timestamps prepended to the output lines are expressed in terms of UTC time.
2014-01-06 19:56:08.48 User-specified agent parameter values:
2014-01-06 19:56:08.48 --------------------------------------
2014-01-06 19:56:08.48 -Publisher XXX03
2014-01-06 19:56:08.48 -PublisherDB A
2014-01-06 19:56:08.48 -Publication A
2014-01-06 19:56:08.48 -Distributor XXX03
2014-01-06 19:56:08.48 -DistributorSecurityMode 1
2014-01-06 19:56:08.48 -XJOBID 0x0E5F2FE6FFBBC0478EC2D3BEFDB20B04
2014-01-06 19:56:08.48 --------------------------------------
2014-01-06 19:56:08.48 Connecting to Distributor 'XXX03'
2014-01-06 19:56:08.72 Parameter values obtained from agent profile:
2014-01-06 19:56:08.72 ---------------------------------------------
2014-01-06 19:56:08.72 -BcpBatchSize 100000
2014-01-06 19:56:08.72 -HistoryVerboseLevel 2
2014-01-06 19:56:08.72 -LoginTimeout 15
2014-01-06 19:56:08.72 -QueryTimeout 1800
2014-01-06 19:56:08.72 ---------------------------------------------
2014-01-06 19:56:08.73 Connecting to Publisher 'XXX03'
2014-01-06 19:56:08.76 The replication agent had encountered an exception.
2014-01-06 19:56:08.76 Source: Replication
2014-01-06 19:56:08.76 Exception Type: Microsoft.SqlServer.Replication.ConnectionFailureException
2014-01-06 19:56:08.76 Exception Message: Login failed for user 'Domain\ReplicationUser'.
2014-01-06 19:56:08.76 Message Code: 18456
2014-01-06 19:56:08.76