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 430173A1A9A for ; Tue, 18 Jan 2005 21:23:10 +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 72536-06 for ; Tue, 18 Jan 2005 21:23:04 +0000 (GMT) Received: from 9.hellooperator.net (cpc3-cdif2-3-0-cust202.cdif.cable.ntl.com [81.103.32.202]) by svr1.postgresql.org (Postfix) with ESMTP id 797B03A18A7 for ; Tue, 18 Jan 2005 21:23:03 +0000 (GMT) Received: from rasputin by 9.hellooperator.net with local (Exim 4.43) id 1Cr0oY-00033F-9b; Tue, 18 Jan 2005 21:23:02 +0000 Date: Tue, 18 Jan 2005 21:23:02 +0000 From: Dick Davies To: "Kavan, Dan (IMS)" Cc: PostgreSQL Admin Subject: Re: PAM ldap Message-ID: <20050118212302.GM26970@lb.tenfour> Reply-To: Dick Davies References: <782D2A81EC812642B857B03B506E0B4432637F@granite.omni.imsweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <782D2A81EC812642B857B03B506E0B4432637F@granite.omni.imsweb.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.612 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL X-Spam-Level: * X-Archive-Number: 200501/194 X-Sequence-Number: 16053 * Kavan, Dan (IMS) [0156 16:56]: > Thanks for the reply, > > I did compile --with-pam. Although, the $PATH for the postgres user - > who I used to compile with didn't have /lib and /lib64 in it's path. I > don't see anything is configure.in or config.log to hint that pam isn't > configured, but I'll re-configure anyway. Is there a way to check PAM > is configured with postgresql? pam_unix2.so is located in > /lib(64)/security. I was wondering if both /lib and /lib/security > needed to be in the $PATH or if just /lib/security was needed. PATH isn't used for shared libs (/lib will be getting searched, or the machine probably wouldn't boot). There's a separate search path set for the dynamic linker to load shared libraries, but it's platform specific. (On a leenux you need to add the directory to /etc/ld.so.conf - or you did last time i used it (circa redhat 5.2 )) Or you could try setting LD_LIBRARY_PATH=/lib/security (that's a horrible hack, but it should work). If I was you I'd just add a --with-pam to your ./configure command line, and check config.log after that completes. To check this is your problem, try ldd - it tells you what shared libs a binary is linked against (and uses the search path I mentioned earlier). Mine shows (freebsd 5.3): rasputnik@eris:rasputnik$ ldd `which postmaster` /usr/local/bin/postmaster: libintl.so.6 => /usr/local/lib/libintl.so.6 (0x28264000) libpam.so.2 => /usr/lib/libpam.so.2 (0x2826d000) libssl.so.3 => /usr/lib/libssl.so.3 (0x28274000) libcrypto.so.3 => /lib/libcrypto.so.3 (0x282a2000) libz.so.2 => /lib/libz.so.2 (0x28397000) libreadline.so.5 => /lib/libreadline.so.5 (0x283a7000) libcrypt.so.2 => /lib/libcrypt.so.2 (0x283d3000) libm.so.3 => /lib/libm.so.3 (0x283eb000) libutil.so.4 => /lib/libutil.so.4 (0x28405000) libc.so.5 => /lib/libc.so.5 (0x28411000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x284eb000) libncurses.so.5 => /lib/libncurses.so.5 (0x285d9000) > Also, forget about PAM for a minute. Bye then (I know jack about ident)! -- 'My life, and by extension everyone else's, is meaningless.' -- Bender Rasputin :: Jack of All Trades - Master of Nuns