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

  • 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,

  • Is it just doing this for this one account or for any Windows account?

    K. Brian Kelley
    @kbriankelley

  • 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,

  • 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[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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,

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply