go-sqlcmd
go-sqlcmd copied to clipboard
Integrated security with kerberos in linux
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
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
Dupe of #468