Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E6E669FB62A for ; Thu, 22 Feb 2007 15:38:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 47856-02 for ; Thu, 22 Feb 2007 15:38:55 -0400 (AST) X-Greylist: delayed 00:44:54.891305 by SQLgrey-1.7.4 Received: from mail.kzsdabas.sulinet.hu (szerver4.kzsdabas.sulinet.hu [195.199.159.212]) by postgresql.org (Postfix) with SMTP id E48789FB5C2 for ; Thu, 22 Feb 2007 15:38:54 -0400 (AST) Received: from kag.kzsdabas.hu ([10.0.13.1]) by mail.kzsdabas.hu with esmtp (Exim 4.63) (envelope-from ) id 1HKJ4d-00024N-JV for pgsql-admin@postgresql.org; Thu, 22 Feb 2007 19:53:54 +0100 Message-ID: <45DDE6B5.8070900@kzsdabas.sulinet.hu> Date: Thu, 22 Feb 2007 19:53:41 +0100 From: =?UTF-8?B?R8OpbWVzIEfDqXph?= User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 10.0.13.1 X-SA-Exim-Mail-From: geza@kzsdabas.sulinet.hu Subject: pg_hba.conf multiple auth_metods question X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on mail.kzsdabas.hu) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200702/298 X-Sequence-Number: 24763 Hi, I have successfully deployed krb5 or pam (with pam_krb5) authentication with my clients. My question is: Can I use both in a failover fashion? What I try to achieve: Users having kerberos tickets get authenticated with the krb5 auth_metod, if they don't have the right ticket they get prompted for their password, and get authenticated using pam. The relevant part of my pg_hba.conf: host all all 10.0.0.0/8 krb5 host all all 10.0.0.0/8 pam postgresql What shall I change to have it working as expected. Currently only the first line works (whatever I would put first). Many thanks for your time and patience. Geza