-
Notifications
You must be signed in to change notification settings - Fork 17
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
Kerberos Support for On-prem Kerberized Oracle databases #157
Comments
We are investigating this. We use python-oracledb as the underlying database driver. So, any external authentication method needs to be supported by the driver |
As I understand python-oracledb does support kerberos auth in thick mode |
Could you let me know how do you connect to Oracle Database using SQLPlus and Kerberos Authentication ? I am interested in understanding the SQL net configuration used. Also, have you tried the thick mode ? I am trying to setup Kerberos instance to test the setup but that might take a few days. |
I am not sure about sql plus. but I have an oracle instance which supports only kerberos authentication, I was able to connect to it using cx_Oracle which is also a python library very similar to python-oracledb, this requires an instant client which has a sqlnet.ora file configuration pointing to the location of your krb5.conf file and the keberos credential cache file, then you use the drivers provided by the cx_oracle and define your instance's dsn etc etc. |
I know of cx_Oracle and python-oracledb. Could you share the code using cx_Oracle to connect using Kerberos ? |
Hi Sorry for the delay. firstly make sure you have a thick client installed on your system, then add a sqlnet.ora file with following configs in this directory of your client - oracle_client_21_basic\instantclient_21_9\network\admin config of sqlnet.ora set the env variable ORACLE_HOME= oracle_client_21_basic\instantclient_21_9 python set up- ORA_SRVR = <your_host_name>' DB_DSN = cx_Oracle.makedsn(ORA_SRVR, ORA_PORT, service_name=ORA_SRVC) Connect with cx_oracle or oracledb package for kerberos environment like this:- conn = cx_Oracle.connect(dsn=DB_DSN) |
Hey @aosingh can I get a timeline on this, this integration would save us a lot of time, let me know if you need my org to go through proper Oracle vendor channels to expedite this feature. |
We are working on it. The plan is to make this a part of |
Hi @aosingh are you planning to scope this in 1.9.0? By when can we expect this |
Yes. I hope to release in 2 weeks. I will release a candidate version Also, |
That is great news. Yes I would be more than happy to test and possibly contribute too. |
Could you test with the release candidate version ? Please have the latest version of Oracle Instant Client libraries installed.
dbt_test:
target: dev
outputs:
dev:
type: oracle
user: "{{ env_var('DBT_ORACLE_USER') }}"
schema: "{{ env_var('DBT_ORACLE_SCHEMA') }}"
database: "{{ env_var('DBT_ORACLE_DATABASE') }}"
tns_name: "{{ env_var('DBT_ORACLE_TNS_NAME') }}"
|
Thanks @aosingh I will test and let you know |
Describe the Feature
I am trying to use this adapter to connect to my Oracle database which only supports kerberos for authentication and username/password is not supported. Can we please add this feature to the adapter or show me how to leverage this if already implemented ?
Describe alternatives you've considered
No response
Who will this benefit?
All users of a kerberized Oracle database
Anything else?
No response
The text was updated successfully, but these errors were encountered: