From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Alexander Cohen <alex(at)toomuchspace(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: check for user validity |
Date: | 2004-02-27 14:37:50 |
Message-ID: | 20040227143750.GB22237@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Feb 26, 2004 at 22:17:14 -0500,
Alexander Cohen <alex(at)toomuchspace(dot)com> wrote:
> I know in advance all the information a user to start up a connection
> to postgres and do queries. I would like to be able to check and see if
> that user will be able to connect with his current crudentials. Is this
> at all possible? If so, how?
Try to connect to the database as them and see whether or not the
connection is successful.
To do this in general without trying to connect you will need to have knowledge
about the contents of pg_hba.cong and pg_ident.conf. If you know that they
will have access to the database and the application is running as a
postgres superuser, you can check a username and password by looking at
pg_shadow.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Chaney | 2004-02-27 14:50:08 | Re: Case of strings |
Previous Message | Sezai YILMAZ | 2004-02-27 14:30:32 | Re: PostgreSQL insert speed tests |