From: Stephen Frost <sfrost@snowman.net>
To: David Bear <David.Bear@asu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: auth methods
Date: Wed, 8 Feb 2006 16:47:48 -0500
Message-ID: <20060208214748.GQ4474@ns.snowman.net> (raw)
In-Reply-To: <20060208201214.GC21865@asu.edu>
References: <20060208201214.GC21865@asu.edu>
* David Bear (David.Bear@asu.edu) wrote:
> after reading through
> http://www.postgresql.org/docs/8.0/static/auth-methods.html
>
> I'm still left wondering how to solve something that should be simple.
>
> Ident method looks like it might work.
>
> All I really want to do is prevent user jack, who is logged in and
> properly authenticated to the system as jack, from connecting to pg as
> user joe. I have kerb authentication working for all ssh connections
> to the data base server. I don't want another layer of authentication
> for postgresql.
>
> I'm currently using the trust method, but any user can connect to pg
> as any other pg user.
>
> the trouble is that ident seems to be non existent in suse linux (at
> least, it doesn't seem to be installed )
>
> any pointers would be appreciated.
You don't need identd to be installed to use ident over local unix
sockets. Also, PostgreSQL supports Kerberos, so you could use krb5
instead of ident or trust. Trust isn't really an authentication
mechanism, it's the lack of one.
If you're only connecting locally over local unix domain sockets then
you'd probably want ident. If you want to be able to authenticate over
the network and you've already got Kerberos set up then you should
probably use Kerberos to auth to Postgres too. Note that if you want to
connect to Postgres locally using Kerberos you'll (of course) need to
have an appropriate TGT on the box you're ssh'ing to.
Kerberos is also supported by the ODBC driver and psql on Windows (if
you use those). You can also get Kerberos authenticating working with
PhpPgAdmin through Apache with a bit of hacking.
Enjoy,
Stephen
Attachments:
signature.asc (application/pgp-signature, 188B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sfrost@snowman.net, David.Bear@asu.edu
Subject: Re: auth methods
In-Reply-To: <20060208214748.GQ4474@ns.snowman.net>
References: <20060208201214.GC21865@asu.edu> <20060208214748.GQ4474@ns.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox