Skip to content

Server not found in Kerberos database Microsoft.EntityFrameworkCore.SqlServer #22540

@Domin91

Description

@Domin91

I'm having an issue when I'm trying connect to one of my mssql server using Microsoft.EntityFrameworkCore.SqlServer on .net core 3.1.
In application log I can see 'Server not found in Kerberos database' but when I'm connecting to other server everything is fine.
What did I notice is that a server when connection is established has registered servicePrincipalName where CN=database_server_name. The second one where I have an error has SPN registered on sql user so the AD record starts with CN=sqluser.
I think this Package should searching in AD on registered principal names and not only searching where CN=database_server_name and then looking for their SPN.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions