In the course of installing and configuring Audit Collection Services (ACS) I had to troubleshoot a permissions issue connecting to the database.
Specifically, the ADTServer application service running on the collector was attempting to connect to the ACS database on a separate system. The service runs as the local network service on the collector which means that it uses the computer account to perform network authentication: DOMAIN\SYSTEM$. This account was added to SQL Server and granted dbo privileges by the ACS installation. However, every time the service attempted to connect to the database, authentication for the account was rejected with the below events.
I went in a lot of different directions but ended up looking at the local system policies and finally found one: Access this computer from the network. By default, this setting is set to Administrators, Backup Operators, Power Users, Users, and Everyone. On the database server, it was set to Administrators and Backup Operators only. Thus in order to connect to a database on this system, a user must be an administrator (or Backup Operator) on this system. By seemingly reducing the access to this system it is actually less secure because it requires database users to be administrators.
Leaving this setting at its default setting does not pose a security risk, it simply allows users to be authenticated and access resources that they are authorized to use; in this case, SQL Server is controlling authorization. Note that authentication and authorization are two distinctly different things. The setting identified above is limiting authentication not authorization and this ultimately decreases the effective security of this system.
Event Type: Error
Event Source: AdtServer
Event Category: None
Event ID: 4618
Date: 1/8/2008
Time: 9:25:10 AM
User: N/A
Computer: Collector
Description:
Error occured on database connection:
Status: 0×02200000
ODBC Error: 18452
ODBC State: 28000
Message: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ”. The user is not associated with a trusted SQL Server connection.
Database: Register
Connection: ComplianceTest
Statement: -
Event Type: Error
Event Source: MSSQL$ACS
Event Category: (4)
Event ID: 17806
Date: 1/8/2008
Time: 9:25:10 AM
User: N/A
Computer: DATABASE
Description:
SSPI handshake failed with error code 0×8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 10.32.9.69]
Event Type: Failure Audit
Event Source: MSSQL$ACS
Event Category: (4)
Event ID: 18452
Date: 1/8/2008
Time: 9:25:10 AM
User: N/A
Computer: DATABASE
Description:
Login failed for user ”. The user is not associated with a trusted SQL Server connection. [CLIENT: 10.32.9.69]
Posted by Jason Sandys
Posted by Jason Sandys