SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Ghost SID returned by SUSER_SID causing Login to fail with Token-based server access validation...


Ghost SID returned by SUSER_SID causing Login to fail with Token-based server access validation failed with an infrastructure error

Author
Message
datagate 5993
datagate 5993
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 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,
K. Brian Kelley
K. Brian Kelley
Keeper of the Duck
Keeper of the Duck (23K reputation)

Group: Moderators
Points: 23756 Visits: 1917
Is it just doing this for this one account or for any Windows account?

K. Brian Kelley
@‌kbriankelley
datagate 5993
datagate 5993
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 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,
Evil Kraig F
Evil Kraig F
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19593 Visits: 7660
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
datagate 5993
datagate 5993
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 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,
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search