Skip to content
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

Open
aadishsanghvi opened this issue Oct 17, 2024 · 5 comments
Open

Kerberos Support for On-prem Kerberized Oracle databases #157

aadishsanghvi opened this issue Oct 17, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request investigating

Comments

@aadishsanghvi
Copy link

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

@aadishsanghvi aadishsanghvi added the enhancement New feature or request label Oct 17, 2024
@aosingh aosingh self-assigned this Oct 21, 2024
@aosingh
Copy link
Member

aosingh commented Oct 22, 2024

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

@aadishsanghvi
Copy link
Author

aadishsanghvi commented Oct 23, 2024

As I understand python-oracledb does support kerberos auth in thick mode

@aosingh
Copy link
Member

aosingh commented Nov 1, 2024

@aadishsanghvi

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.

@aadishsanghvi
Copy link
Author

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.

@aosingh
Copy link
Member

aosingh commented Nov 4, 2024

@aadishsanghvi

I know of cx_Oracle and python-oracledb. Could you share the code using cx_Oracle to connect using Kerberos ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request investigating
Projects
None yet
Development

No branches or pull requests

2 participants