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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
auth.log application/octet-stream 664 bytes
hosts application/octet-stream 308 bytes
messages application/octet-stream 200 bytes
nsswitch.conf application/octet-stream 490 bytes
pam.conf application/octet-stream 534 bytes
pam_ldap.conf application/octet-stream 3.8 KB
pg_hba.conf application/octet-stream 2.4 KB
postgresql application/octet-stream 188 bytes
postmaster.conf application/octet-stream 1.7 KB

Browse pgsql-admin by date

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