livehelpnow / tds_ecto

TDS Adapter for Ecto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Windows Authentication

sds88 opened this issue · comments

commented

It would be nice if this could support windows authentication to log in instead of using a username/password in the config.

For reference, the connection string to use windows auth looks something like
Server=MyServer;Database=MyDb;Trusted_Connection=Yes;

This should be possible to implement for windows OS, but for linux I'm not sure if any other option than kerberos authentication with explicit credentials is possible. I would appreciate if anyone can provide me a link to good article/manual how to join linux server into Windows Domain, so I could do research if this could be done for linux OS without using explicit username/password in configuration. Otherwise, there is no use to have domain user credentials laying around in configuration files.

There is repo for nif version for rabbitmq kernel authentication.

Anyhow, I don't think this is an easy task after all it is much easier to create sql login. It is also possible to have tsl connection and authentication which is by far better approach when it is required to have secured connection due to compliance requirements.

I would like to +1 this feature, as I am a bit stuck - my db admins are not willing to enable sql auth on db server I need to connect to, and only way to connect with windows auth from linux is golang mssql driver (github.com/denisenkom/go-mssqldb), so at the moment I am getting data via golang "api server" :)

+1, even my db admins does not allow sql authentication. Can this be implemented for atleast windows?