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

Re: PAM ldap

From: Dick Davies <rasputnik(at)hellooperator(dot)net>
To: "Kavan, Dan (IMS)" <KavanD(at)imsweb(dot)com>
Cc: PostgreSQL Admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PAM ldap
Date: 2005-01-18 21:23:02
Message-ID: 20050118212302.GM26970@lb.tenfour (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
* Kavan, Dan (IMS) <KavanD(at)imsweb(dot)com> [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 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? 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/ - 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(at)eris:rasputnik$ ldd `which postmaster`
/usr/local/bin/postmaster: => /usr/local/lib/ (0x28264000) => /usr/lib/ (0x2826d000) => /usr/lib/ (0x28274000) => /lib/ (0x282a2000) => /lib/ (0x28397000) => /lib/ (0x283a7000) => /lib/ (0x283d3000) => /lib/ (0x283eb000) => /lib/ (0x28405000) => /lib/ (0x28411000) => /usr/local/lib/ (0x284eb000) => /lib/ (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

In response to

pgsql-admin by date

Next:From: Gautam SahaDate: 2005-01-18 23:43:51
Subject: Using COPY for bulk upload in a table with sequence field
Previous:From: Bruno Wolff IIIDate: 2005-01-18 20:54:41
Subject: Re: PAM ldap

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