Security issue for postgresql

Started by aravind chanduover 17 years ago3 messagesgeneral
Jump to latest
#1aravind chandu
avin_friends@yahoo.com

Hi,

        I have a .h file in that
there is a function in which there arguments were username and password
for the database so that the user should be logged in,for that i need
to write my own program.This is something about administrator
privileges etc... can any one of you tell me the procedure to do this
so that i will start working on it.

Thank You,

Avin.

#2Tino Wildenhain
tino@wildenhain.de
In reply to: aravind chandu (#1)
Re: Security issue for postgresql

aravind chandu wrote:

Hi,

I have a .h file in that there is a function in which there
arguments were username and password for the database so that the user
should be logged in,for that i need to write my own program.This is
something about administrator privileges etc... can any one of you tell
me the procedure to do this so that i will start working on it.

Maybe you can rephrase your question a bit? Its not clear what you
really want. If its all about credential storage on the client
you might check pgpass:

http://www.postgresql.org/docs/8.3/interactive/libpq-pgpass.html

Tino

#3Scott Marlowe
scott.marlowe@gmail.com
In reply to: aravind chandu (#1)
Re: Security issue for postgresql

On Mon, Sep 15, 2008 at 10:00 AM, aravind chandu <avin_friends@yahoo.com> wrote:

Hi,

I have a .h file in that there is a function in which there
arguments were username and password for the database so that the user
should be logged in,for that i need to write my own program.This is
something about administrator privileges etc... can any one of you tell me
the procedure to do this so that i will start working on it.

If you need to run a procedure as a super user, look into security definer.