Skip site navigation (1) Skip section navigation (2)

Pam Ldap (debian) problem

From: Wim Bertels <wim(dot)bertels(at)khleuven(dot)be>
To: pgsql-admin(at)postgresql(dot)org
Subject: Pam Ldap (debian) problem
Date: 2003-09-11 13:09:02
Message-ID: 1063285742.3f6073ee1b735@mail.student.khleuven.be (view raw or flat)
Thread:
Lists: pgsql-admin
Hi,

i dont get postgres working with pam to use an external ldap server to authenticate users. 
i think the problems is that postgres is using the wrong pam file,
namely he uses pam_unix where he should use pam_ldap.so.

postgres version 7.3.2
debian version 3 (kernel 2.4)

any help is much appreciated

ive included the following files:
/etc/hosts
/etc/pam.conf
/etc/pam_ldap.conf
/etc/pam.d/postgresql
/etc/postgresql/pg_hba.conf
/etc/postgresql/postgresql.conf
/etc/postgresql/postmaster.conf
/var/log/messages
/var/log/postgres.log (is empty)
/var/log/auth.log

in short the logs:

Sep 11 12:48:49 damian postgres[1892]: [1] LOG:  connection received: host=10.18.10.47 port=32882
Sep 11 12:48:53 damian postgres[1893]: [1] LOG:  connection received: host=10.18.10.47 port=32883

and

Sep 11 12:48:49 damian PAM_unix[1892]: auth could not identify password for [wibrt]
Sep 11 12:48:49 damian 18.10.47 authentication[1892]: [2] LOG:  CheckPAMAuth: pam_authenticate failed: 'Conversation error'
Sep 11 12:48:49 damian 18.10.47 authentication[1892]: [3] FATAL:  PAM authentication failed for user "wibrt"
Sep 11 12:48:53 damian PAM_unix[1893]: authentication failure; (uid=31) -> wibrt for sameuser service
Sep 11 12:48:55 damian 18.10.47 authentication[1893]: [2] LOG:  CheckPAMAuth: pam_authenticate failed: 'Authentication failure'
Sep 11 12:48:55 damian 18.10.47 authentication[1893]: [3] FATAL:  PAM authentication failed for user "wibrt"

tnx,
Wim





Attachment: postmaster.conf
Description: application/octet-stream (1.7 KB)
Attachment: postgresql
Description: application/octet-stream (188 bytes)
Attachment: pg_hba.conf
Description: application/octet-stream (2.4 KB)
Attachment: pam_ldap.conf
Description: application/octet-stream (3.8 KB)
Attachment: pam.conf
Description: application/octet-stream (534 bytes)
Attachment: nsswitch.conf
Description: application/octet-stream (490 bytes)
Attachment: messages
Description: application/octet-stream (200 bytes)
Attachment: hosts
Description: application/octet-stream (308 bytes)
Attachment: auth.log
Description: application/octet-stream (664 bytes)

pgsql-admin by date

Next:From: Tom LaneDate: 2003-09-11 14:02:38
Subject: Re: System catalog for triggers
Previous:From: Kalyan (FS)Date: 2003-09-11 11:44:30
Subject: `__builtin_va_alist' undeclared

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group