X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 07CE13A4536 for ; Wed, 5 Jan 2005 17:06:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80667-02 for ; Wed, 5 Jan 2005 17:05:59 +0000 (GMT) Received: by svr1.postgresql.org (Postfix, from userid 1001) id 583F03A4414; Wed, 5 Jan 2005 18:13:32 +0000 (GMT) Received: from email.nantes.archi.fr (email.nantes.archi.fr [194.199.216.5]) by svr1.postgresql.org (Postfix) with SMTP id 23ED63A4E0A for ; Wed, 5 Jan 2005 16:43:28 +0000 (GMT) Received: from email (194.199.216.5) by EMAIL (MailMax 4. 8. 2. 1) with ESMTP id 31210568 for pgsql-admin@postgresql.org; Wed, 05 Jan 2005 17:38:41 +0100 RST Received: From nullclient ([193.49.56.2]) by email (WebShield SMTP v4.5 MR1a P0803.345); id 11049431210; Wed, 5 Jan 2005 17:38:41 +0100 Received: by nullclient (sSMTP sendmail emulation); Wed, 5 Jan 2005 17:43:21 +0100 Date: Wed, 5 Jan 2005 17:43:21 +0100 From: Thomas Leduc To: pgsql-admin@postgresql.org Subject: postgresql 7.4.6 and pam_ldap Message-ID: <20050105164321.GA21400@volga.lan.cerma.archi.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4i Organization: Laboratoire CERMA - UMR CNRS 1563 X-Address: Rue Massenet, BP 81931, F-44319 NANTES Cedex 3 X-Phone: +33 2 40 59 04 59 X-Fax: +33 2 40 59 11 77 X-Web: http://thomas.leduc.free.fr/ X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/28 X-Sequence-Number: 15887 Hi, I know that i'm not the 1st one who want's to use pam_ldap to authenticate users (55 posts with keywords ldap and pam...). But it also didn't work for me. Please, what's wrong with the following: % pg_config --configure '--host=i386-redhat-linux' '--build=i386-redhat-linux' [...] '--with-openssl' '--with-pam' '--with-krb5=/usr' '--enable-nls' [...] % cat < pg_hba.conf local all postgres ident sameuser local all all pam postgresql host all all 127.0.0.1/32 pam postgresql host all all 192.168.10.0/24 pam postgresql EOF % cat < /etc/pam.d/postgresql--tage auth required pam_stack.so service=system-auth EOF % pg_ctl reload % createuser --adduser --createdb leduc % createdb --owner=leduc --echo leduc % id postgres uid=26(postgres) gid=26(postgres) groupes=26(postgres) $ psql --quiet leduc leduc=# SELECT 1+1; ... IT WORKS !!! % id uid=252(leduc) gid=100(users) groupes=100(users) % psql Mot de passe : psql: FATAL: PAM authentication échouée pour l'utilisateur "leduc" ... IT DOESN'T WORK !!! % tail -f /var/log/messages Jan 5 17:41:17 tage postgresql(pam_unix)[12625]: auth could not identify password for [leduc] Jan 5 17:41:21 tage postgresql(pam_unix)[12627]: authentication failure; logname= uid=26 euid=26 tty= ruser= rhost= user=leduc % psql -U leduc -W Mot de passe : psql: FATAL: PAM authentication échouée pour l'utilisateur "leduc" ... IT DOESN'T WORK !!! % tail -f /var/log/messages Jan 5 17:42:11 tage postgresql(pam_unix)[12635]: authentication failure; logname= uid=26 euid=26 tty= ruser= rhost= user=leduc -- Thomas LEDUC CNRS UMR 1563 - Laboratoire CERMA - Ecole d'Architecture de Nantes Tel: +33 (0) 2 40 59 04 59 -- Fax : +33 (0) 2 40 59 11 77 EAN - Rue Massenet - BP 81931 - 44319 NANTES cedex 3 GPG KeyID: B2342343 Fingerprint: D62CF1A9D4BEDE671602504C46514CC8B2342343