X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 5392FD1BBA4 for ; Tue, 23 Sep 2003 11:24:38 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 86296-05 for ; Tue, 23 Sep 2003 08:24:08 -0300 (ADT) Received: from firewall.bg.bib.de (unknown [193.22.65.34]) by svr1.postgresql.org (Postfix) with ESMTP id 32AFED1B8AE for ; Tue, 23 Sep 2003 08:24:05 -0300 (ADT) Received: from [193.22.65.2] (helo=bg.bib.de) by firewall.bg.bib.de with esmtp (Exim 4.22) id 1A1lH5-0003bk-UC for pgsql-admin@postgresql.org; Tue, 23 Sep 2003 13:24:07 +0200 Received: from pcrc110b.bg.bib.de (hj@pcrc110b.bg.bib.de [193.22.67.141]) by bg.bib.de (8.11.3/8.8.8) with ESMTP id h8NBNuP12950; Tue, 23 Sep 2003 13:23:58 +0200 Message-Id: <200309231123.h8NBNuP12950@bg.bib.de> Date: Tue, 23 Sep 2003 13:23:37 +0200 (CEST) From: Holger Jakobs Subject: pg_hba.conf improvements To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Scan-Signature: 692a0b0bac3296849b7091bb4f96bff5 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/372 X-Sequence-Number: 10460 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