wmjie / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

Implicit credentials on connect, clp style. #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ibm_db.connect("sample")

What is the expected output? What do you see instead?
No user/ passwd specified. It would be great if the ibm_db driver would support 
implicit credentials just like the clp does. ex: 
# db2 connect to sample
This would help a lot for admin scripts etc, so you don't need to put a 
password in. Most of the time you don't know the password and use sudo su - to 
the instance owner. 
This feature is needed to make python a great tool for db2 admin scripts.

The workaround has been to issue system commands from python, i.e. calling the 
clp and then parsing the stdout. More work than should necessary.

What version of the product are you using? On what operating system?
DB2 9.5,9.7 RHEL5.5

Please provide any additional information below.

Original issue reported on code.google.com by martingu...@gmail.com on 28 May 2011 at 5:16

GoogleCodeExporter commented 9 years ago
Sorry should not be a Defect but an enhancement.

Original comment by martingu...@gmail.com on 28 May 2011 at 5:17

GoogleCodeExporter commented 9 years ago
Hi Martingu,
 ibm_db driver already supports this feature. When you issued a command as follows
 ibm_db.connect('sample', '', '') then ibm_db driver uses implicit credentials to connect with database.

Original comment by rahul.pr...@in.ibm.com on 14 Jun 2011 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by rahul.pr...@in.ibm.com on 14 Jun 2011 at 8:18

GoogleCodeExporter commented 9 years ago
Thanks for the tip.
It works great!
I could not find it in the documentation though. Or I might be blind...
Anyway you can close this issue.

Best regards, Martin

Original comment by martingu...@gmail.com on 15 Jun 2011 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by rahul.pr...@in.ibm.com on 16 Jun 2011 at 4:09