Access problem using computer domain account

From: Old Fart (oldfart_at_newsgroups.nospam)
Date: 04/26/05


Date: Mon, 25 Apr 2005 15:24:34 -0700

We have four systems, which I will designate as follows:

MySvr1 - Windows Server 2003 - MSDE 2000 SP3
MySvr2 - Windows Server 2003 - MSDE 2000 SP3
DbSvr1 - Windows Server 2000 - SQL Server 2000 SP3
DbSvr2 - Windows Server 2003 - SQL Server 2000 SP3

All of these systems are members of a domain that I'll call DOMAIN.

MySvr2 has a service running under the local system account. This service
wants to access a database using its domain computer account. We've created
a security group (call it SecGroup) that includes DOMAIN\MySvr2$ among its
members. We've created a database login for SecGroup on all four servers.

The service running on MySvr2 attempts to connect to the database using the
connect string:

Provider=sqloledb;Integrated Security=sspi;Initial Catalog=MyDatabase;Data
Source=<svrname>

If the service attempts to connect to the database on MySvr2 or MySvr1 it
succeeds. Furthermore, if I remove the SecGroup login on MySvr1 and try to
connect, I get a login error message that indicates login failure for
"DOMAIN\MySvr2$". This is exactly what I would expect and hope for.

If we attempt to connect to the database on DbSvr1 we get a login failure:

  IDispatch error #3149
  Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

If we attempt to connect to the database on DbSvr2 we get a login failure:

  Unspecified error
  Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection.

As one more test, we created a share on DbSvr1 with a file in it. We put an
ACL on the share, the underlying folder, and the file, that granted access
only to members of SecGroup. When I tried to access the file from MySvr2,
while logged in as myself, I got access denied (as expected). When the
service tried to access the file it was able to do so, and we could verify
that it had authenticated to DbSvr1 as DOMAIN\MySvr2$.

The TCP/IP transport is enabled on all four servers.

Anyone have any ideas as to what could be causing this? Any remedies?



Relevant Pages

  • Re: System Administrator Implied Permissions
    ... > sa login, it assigns it the System Administrator fixed ... > Now, given this, why does SQL Server ... in each database is always a member of the public and db_owner roles. ... Other sysadmin role members have the exact same ...
    (microsoft.public.sqlserver.security)
  • Re: Login succeeded followed by Logon Failed
    ... to individual user accounts, then Accounts\Joe may be in several groups. ... then he _may_ fail to attach to his default database. ... the login account default database will have priority over any ... members of a domain group are unable to login. ...
    (microsoft.public.sqlserver.security)
  • Re: PDO: Switch database user without reopening connection
    ... At the bare minimum there will be a login user who only has ... modifications to the database as well (editors get update permission, ... As database connections are expensive to ... a certain visitor in the Session, and use that value to start the right ...
    (comp.lang.php)
  • Re: PDO: Switch database user without reopening connection
    ... At the bare minimum there will be a login user who only has ... the postgres user they are logged in as to one that can make ... modifications to the database as well (editors get update permission, ... As database connections are expensive to ...
    (comp.lang.php)
  • RE: How to allow users to change their password?
    ... be set up to provide the Security dialog window for password changes. ... I'll have to login using their login ... > name/password first. ... See http://www.QBuilt.com for all your database needs. ...
    (microsoft.public.access.security)