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

Connection authentication #41

Open
randomizedthinking opened this issue Jul 17, 2016 · 3 comments
Open

Connection authentication #41

randomizedthinking opened this issue Jul 17, 2016 · 3 comments

Comments

@randomizedthinking
Copy link

The current implementation of the connect function demands the password to make a connection. Is it a better approach to read .pgpass and respect the peer authentication setting?

@iamed2
Copy link
Contributor

iamed2 commented Jul 17, 2016

Hmm I didn't know about this.

Well the correct way to handle it would be to change the password argument to a Nullable and pass C_NULL when no password is provided. libpq will then read .pgpass for the password.

@randomizedthinking
Copy link
Author

It seems like a better way. Is it easy to do? I am new to julia while it sounds like a good starting point.

@iamed2
Copy link
Contributor

iamed2 commented Jul 18, 2016

Yup, just involves changing a few method signatures/calls. Give it a shot! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants