Replies: 2 comments
-
Thanks for sharing this scenario. I've cross-posted this in our dev container community Slack channel to get some more perspectives. And if you'd like to join our community Slack, we'd love to have you join! https://github.com/orgs/devcontainers/discussions/3 |
Beta Was this translation helpful? Give feedback.
-
It's curious that you could login with a password but not with a keytab. One of the errors in your log is "Pre-authentication failed" which might be a clue.
Hard to say what is really going on here. |
Beta Was this translation helpful? Give feedback.
-
Background
I would like to build a DevContainer for the ETL application (using Python and dbt). While the pain-point I'm facing is that the SQL Server is using Windows Authenication.
I tried to research for the method of how to perform Windows Authenication in Linux (i.e. the DevContainer). It seems like I need to use Kerberos authenication to perform the connection.
Question:
I want to ask if approaches no. 3/ 4 below are correct, or if I am missing anything? Thank you!
Approaches I've taken
Network connection [succeeded]: Tested using
ping
SQL Login to Target DB [succeeded]: Tested using
sqlcmd
anddbt debug
Windows Authentication Login to Target DB (kinit) [failed]:
klist >>> Ticket cache: FILE:/tmp/krb5cc_0 >>> Default principal: USERNAME@DOMAIN.LOCAL >>> Valid starting Expires Service principal >>> 03/13/23 18:32:08 03/14/23 04:32:08 krbtgt/DOMAIN.LOCAL@DOMAIN.LOCAL >>> renew until 03/20/23 18:32:02
Windows Authenication Login (ktutil to create keytab) [failed]:
kinit USERNAME@DOMAIN.LOCAL -k -t USERNAME.keytab >>> kinit: Preauthentication failed while getting initial credentials
DevContainer related files
devcontainer.json
Dockerfile
krb5.conf
The above krb5.conf is referenced from my current Windows PC
I typed
klist
to capture the below informationprofiles.yml (for dbt)
Beta Was this translation helpful? Give feedback.
All reactions