pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: LDAP on AIX build farm animals
Date: Wed, 20 Mar 2019 22:40:30 -0700
Message-ID: <20190321054030.GA3842129@rfd.leadboat.com> (raw)
In-Reply-To: <22576.1553139339@sss.pgh.pa.us>
References: <CA+hUKGLn=KnmPN9ig1_eB-CkPaortPghD8x--OhOsVCX0FXMpQ@mail.gmail.com>
	<22576.1553139339@sss.pgh.pa.us>

On Thu, Mar 21, 2019 at 12:21:58PM +1300, Thomas Munro wrote:
> On several AIX BF animals such as tern, I see evidence that it might
> be using IBM LDAP:
> 
> checking for ldap_initialize... no

> Another explanation is that it is actually using OpenLDAP, but it's a
> version so ancient that it doesn't have OpenLDAP's non-standard
> ldap_initialize() function (that'd put it in the 20th century,
> pre-2.0).

It's openldap-2.4.45.  The conclusion that ldap_initialize() is absent stems
from a bug in "configure".  This system has LDAP_LIBS_BE='-lldap -llber' due
to EXTRA_LDAP_LIBS=-llber, but the ldap_initialize() test is done without
-llber.  Relevant config.log:

https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=mandrill&dt=2019-03-20%2021%3A47%3...

On Wed, Mar 20, 2019 at 11:35:39PM -0400, Tom Lane wrote:
> Thomas Munro <thomas.munro@gmail.com> writes:
> > Would it be useful for the buildfarm to dump ldd (or equivalent)
> > output for the binaries it's running so that we can see which
> > libraries it finished up linking?
> 
> +1 for displaying the LDAP library type/version in some form, but
> 
> (a) ldd is pretty platform-specific;
> (b) you will likely get something like "/usr/lib64/libldap.so"
> which isn't too definite about what we're using.
> 
> Is there some other way to fingerprint the LDAP implementation?

I would use ldap_get_option(LDAP_OPT_API_INFO), which gives you a vendor name
string and a version number, among other information.




view thread (3+ messages)

Message-ID: <20190321054030.GA3842129@rfd.leadboat.com>
Permalink:  ../20190321054030.GA3842129@rfd.leadboat.com/
Also on:    postgresql.org/message-id/20190321054030.GA3842129@rfd.leadboat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: noah@leadboat.com, tgl@sss.pgh.pa.us, thomas.munro@gmail.com
  Subject: Re: LDAP on AIX build farm animals
  In-Reply-To: <20190321054030.GA3842129@rfd.leadboat.com>
  References: <CA+hUKGLn=KnmPN9ig1_eB-CkPaortPghD8x--OhOsVCX0FXMpQ@mail.gmail.com> <22576.1553139339@sss.pgh.pa.us> <20190321054030.GA3842129@rfd.leadboat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox