go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

Integrated security with kerberos in linux

Open PolarTango opened this issue 4 months ago • 2 comments

will it work with krb5.conf files to connect database? for now it prints that:

[alex@archlinux ~]$ sqlcmd -E -S dbsrv2
mssql: login error: Login failed for user ''.
mssql: login error: Login failed for user ''.

sqlcmd version is 1.8.2-1 from AUR

PolarTango avatar Jul 07 '25 09:07 PolarTango

I think we could make it work by importing github.com/microsoft/go-mssqldb/integrateduath/krb5 package. That code has various defaults for parameters plus it can use some environment variables https://github.com/microsoft/go-mssqldb/blob/main/integratedauth/krb5/krb5.go

shueybubbles avatar Jul 16 '25 14:07 shueybubbles

Dupe of #468

SJMakin avatar Oct 27 '25 14:10 SJMakin