Skip to content

Windows authentication with ServerSPN #808

Open
@dikiydinozavrik

Description

I'm tryin to connect to the mssql server using kerberos auth from my linux host under the domain user
The connection string: "server=dc4.test.local;user id=;password=;ServerSPN=MSSQLSvc/dc4.test.local:1433"
But I get the following error: "Error connecting to the database: mssql: login error: Login failed for user ''."
Please give the example of correct connection string for Windows auth with SPN

I have tested connection from this host with sqlcmd and it was ok

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions