Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2001 15:02:59 -0300 (ADT)
From:      The Hermit Hacker <scrappy@hub.org>
To:        <freebsd-ports@freebsd.org>
Cc:        <joergland@users.sourceforge.net>, <mi@aldan.algebra.com>
Subject:   pam_pgsql under FreeBSD ...
Message-ID:  <Pine.BSF.4.33.0105031454480.61206-100000@mobile.hub.org>

next in thread | raw e-mail | index | archive | help

Morning all ...

	The other day, while trying to figure out why the pam-pgsql port
won't compile (the distribution no longer exists and is outdated :( ), I
went on the prowl and found that the project appears to have migrated to
sourceforge, as:

	http://sourceforge.net/projects/sysauth-pgsql

	With Beta2 (0.9.2) currently available ...

	After some tweaking to get it to compile under FreeBSD (missing a
couple of header files, installing it into the right directory and adding
a couple of missing libraries) ... I've gotten it to install, but can't
get it to work ...

=========
demeter# ftp new-relay
Connected to new-relay.acadiau.ca.
220 new-relay.acadiau.ca FTP server (Version 6.00LS) ready.
Name (new-relay:root): marc
331 Password required for marc.
Password:
421 Service not available, remote server has closed connection.
ftp: Login failed.
ftp: No control connection for command.
ftp>
========

May  3 14:59:00 new-relay /kernel: pid 21323 (ftpd), uid 0: exited on signal 11 (core dumped)

	According to the core dump, it shows:

==========
(gdb) where
#0  0x28111c40 in strdup () from /usr/lib/libc.so.4
#1  0x281718d8 in ECPGconnect () from /usr/local/lib/libecpg.so.3
#2  0x2814cfcf in _init () at pam_pgsql.pgc:23
#3  0x2805cbef in dlopen () from /usr/libexec/ld-elf.so.1
#4  0x280ab7f4 in _pam_init_handlers () from /usr/lib/libpam.so.1
#5  0x280ab178 in _pam_start_timer () from /usr/lib/libpam.so.1
#6  0x280ab4fb in _pam_init_handlers () from /usr/lib/libpam.so.1
#7  0x280a9745 in pam_start () from /usr/lib/libpam.so.1
#8  0x804bc5d in getsockname ()
#9  0x804be3d in getsockname ()
#10 0x80508c4 in getsockname ()
#11 0x804b12d in getsockname ()
#12 0x804a753 in getsockname ()
===========

	All I have in my pam.conf file is:

ftpd    auth    required        pam_pgsql.so                    debug

	Just so that I know it doesn't use any other methods ...

	And my pam_pgsql.conf file contains:

=======================
database = auth
host = theweb.acadiau.ca
user = pgsql
table = account
user_column = username
pwd_column = password
debug
======================

	is anyone playing with getting this into ports?  does anyone have
enough experience with PAM to be able to help debug this?  has anyone
actually gotten pam_pgsql to work? :)

thanks ...

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0105031454480.61206-100000>