Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows authentication with ServerSPN #808

Open
dikiydinozavrik opened this issue Oct 14, 2024 · 0 comments
Open

Windows authentication with ServerSPN #808

dikiydinozavrik opened this issue Oct 14, 2024 · 0 comments

Comments

@dikiydinozavrik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant