I am trying to connect to an oracle database using the python oracledb library.
On looking at the docs it seems like python-oracledb doesn’t have ldap support for thin mode. Is there a workaround for this. If not then, how do I use the thick mode and then later deploy the application with docker, as it requires using oracle instant client?
I tried using the below syntax to connect to db:
oracledb.connect(user=<username>,password=<password>,dsn='ldap://servername:port/cn=OracleContext,dc=domain,dc=com/servicename')
In doing so I get an error that:
DPY-4021: invalid protocol "ldap"
I also found a workaround which got a tns descriptor from using the ldap string. but on using that, I got another error:
[WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions