pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_hba.conf improvements
2+ messages / 2 participants
[nested] [flat]
* pg_hba.conf improvements
@ 2003-09-23 11:23 Holger Jakobs <holger@jakobs.com>
0 siblings, 1 reply; 2+ messages in thread
From: Holger Jakobs @ 2003-09-23 11:23 UTC (permalink / raw)
To: pgsql-admin
Hello,
User authorization is a difficult task. Requiring passwords ist
annoying, Kerberos is complicated, ident is not secure.
What about leaving it to the administrator of a system to provide a
function (either a C function in a shared lib or an executable) which
gets information passed and decides whether the access will be granted?
If you have a networked Windows environment you could for instance check
whether the user initiating a connection actually has a valid Windows
domain/active directory session open on the computer. This would be far
more secure than a simple ident which can be faked easily.
There may be other quite secure means of user authentication not
requiring a password every time you connect, so an
administrator-provided function can match the current needs.
A new keyword in pg_hba.conf could be introduced for this. The
parameters passed to the function or program would include the IP
addresses and port numbers of client and server, the name of the
database and the name of the user he pretends to be. If the return value
is true, access is granted, otherwise rejected.
If it is possible to get this running without changing PostgreSQL, I
would appreciate a note. Otherwise please take this as an item on the
wish list.
Sincerely,
Holger
--
Holger@Jakobs.com, Bergisch Gladbach, Germany
Telefon (0 22 02) 5 99 91 oder (01 77) 7 92 24 66
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_hba.conf improvements
@ 2003-09-24 04:06 Tom Lane <tgl@sss.pgh.pa.us>
parent: Holger Jakobs <holger@jakobs.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-09-24 04:06 UTC (permalink / raw)
To: Holger Jakobs <holger@jakobs.com>; +Cc: pgsql-admin
Holger Jakobs <holger@jakobs.com> writes:
> What about leaving it to the administrator of a system to provide a
> function (either a C function in a shared lib or an executable) which
> gets information passed and decides whether the access will be granted?
I think this is exactly what PAM is for. Write your own authentication
module, plug it in.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-09-24 04:06 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 11:23 pg_hba.conf improvements Holger Jakobs <holger@jakobs.com>
2003-09-24 04:06 ` Tom Lane <tgl@sss.pgh.pa.us>
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