Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Ghost SID returned by SUSER_SID causing Login to fail with Token-based server access validation failed with an infrastructure error Expand / Collapse
Author
Message
Posted Thursday, November 17, 2011 4:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 15, 2013 6:49 AM
Points: 3, Visits: 17
Hi,

I have a problem creating a particular SQL login from a windows login. SQL is getting a ghost SID that was associated with the windows login before renaming in the AD.

Running SQL2008 Enterprise edition + SP2 on Windows 2008 Datacentre

Background
An Active Directory (AD) account was created for a user [Domain\UserA]
A SQL login was created for the account above and then granted access to a number of databases
The AD account was renamed/modified to [Domain\UserB]
At this stage the user would encounter an error when connecting to the server
The sql log show this error message
Error: 18456, Severity: 14, State: 11.
Message
Login failed for user 'domain\user'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: xxx]

Action on Server 1 SQL (the one with the problem)
Dropped the user from the databases
Re-Created the login from the windows account [Domain\UserB]
Created the user in the respective databases
But the user still unable to connect to the server

Investigation
On server 1, the SID of the user in SYSUSERS was Matching SYSLOGINS and matches with result of SUSER_SID(Domain\UserA)
But it does not match the SID in the AD
The rest of the servers all have the correct SIDs
When I use SUSER_SNAME(Incorrect-Sid) and SUSER_SNAME(Correct-Sid) on this server they both return [Domain\UserB]

The problematic server is always returning the incorrect SID when recreating the user login and when using SUSER_SID(Domain\UserA) as if it is cached somewhere. Another 4 SQL servers (of different editions 2000 and 2008 standard) are fine and recognise the correct SID.

I can't specify the SID when creating the SQL login because it is using the Windows account

Any idea on how to fix this problem is highly appreciated

Kind Regards,
Post #1207367
Posted Thursday, November 17, 2011 12:54 PM


Keeper of the Duck

Keeper of the Duck

Group: Moderators
Last Login: Yesterday @ 7:50 AM
Points: 6,624, Visits: 1,874
Is it just doing this for this one account or for any Windows account?


K. Brian Kelley, CISA, MCSE, Security+, MVP - SQL Server
Regular Columnist (Security), SQLServerCentral.com
Author of Introduction to SQL Server: Basic Skills for Any SQL Server User
| Professional Development blog | Technical Blog | LinkedIn | Twitter
Post #1207843
Posted Thursday, November 17, 2011 5:02 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 15, 2013 6:49 AM
Points: 3, Visits: 17
It is only this account that is affected. I have created other logins from windows on the same server without any problem

Thank you for your reply

Kind Regards,
Post #1208026
Posted Thursday, November 17, 2011 5:14 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 6:08 PM
Points: 5,401, Visits: 7,514
What background software are you using to pass the logins around for hops? Kerberos? Probably just needs to get itself refreshed from the primary system.


- Craig Farrell

Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

For better assistance in answering your questions | Forum Netiquette
For index/tuning help, follow these directions. |Tally Tables

Twitter: @AnyWayDBA
Post #1208029
Posted Thursday, November 17, 2011 7:47 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 15, 2013 6:49 AM
Points: 3, Visits: 17
Hi,

I'm not quite sure of the background software, but the problem with this account has been like this for the last two weeks and I don't think there is any refresh period would be that long.

Thank you kindley for your reply
Regards,
Post #1208064
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse