[Samba] configure fails to detect OpenLDAP on AIX - bug 10047

Peter Waeckerle peter.waeckerle at ch.ibm.com
Thu Feb 13 07:25:07 MST 2014


Hello

I see this bug exactly describes the problem we have. But there is no
activity in it since last august...

Could someone of the samba-team please comment on it?

My last successful build was with samba 4.0.3. Since then there are many
security patches released and people are starting to get a bit nervous ;- )

Samba is running as a AD member, acting as fileserver only. User
authentication is done by another AD server:

[global]
workgroup = europe
netbios name = ch-x-12345
name resolve order = host bcast
browsable = yes
auto services = homes
security = ADS
client use spnego = yes
ldap ssl = no
encrypt passwords = yes
load printers = no
realm = europe.xxxx.com
local master = no
domain master = no
...

I'm just setting up a clean new build environment on AIX 7.1 with xlc only
(without any rpms from bullfreeware, perzl etc). I have time and capacity
to work on this, but I do need help as I don't know about the internals of
samba (yet ;- ).


Thanks and regards

 Peter

samba-bounces at lists.samba.org wrote on 11.02.2014 20:55:04:

> From: Peter Wäckerle <wacky at bluewin.ch>
> To: steve <steve at steve-ss.com>, samba at lists.samba.org
> Date: 11.02.2014 20:55
> Subject: Re: [Samba] how to enable Active Directory support building
> samba on AIX?
> Sent by: samba-bounces at lists.samba.org
>
> meanwhile I found https://bugzilla.samba.org/show_bug.cgi?id=10047 . It
> seems to be a known bug.
>
> Thanks, Steve, I guess I better don't use your big hammer, as servers in
> productive customer environments probably wouldn't appreciate the
> fragments this could cause ;- )
>
> Regards
> Peter
>
> > On Tue, 2014-02-11 at 17:38 +0100, Peter Wäckerle wrote:
> >
> >> So: where/how do I tell samba to look for openldap in the
correctdirectory?
> >>
> > I don't know aix so I don't know where the library files go. On
openSUSE
> > they go in /lib. Because nothing's working, I'd use a big hammer; copy
> > all the stuff from /usr/local/samba/samba-4.1.4/lib to /lib and try
> > again. Normally on Linux you just install the dev package to get the
> > headers and libs and stuff.
> >
> >>> Hi Peter,
> >>>
> >>> LDAP is required for AD build.
> >>>
> >>> In your case the configure cannot determine if LDAP library is there.
> >>>
> >>>
> >>>
> >>>
> >>> On Mon, Feb 10, 2014 at 4:34 PM, Peter Wäckerle <wacky at bluewin.ch>
wrote:
> >>>
> >>>> Hello
> >>>>
> >>>> I'm trying to build samba 4.1.4 on AIX 7.1 with xlc 12.1:
> >>>>
> >>>> Before building samba the build of openldap works correctly with:
> >>>>
> >>>> export LDFLAGS=-L/usr/local/samba/samba-4.1.4/lib
> >>>> ./configure --prefix=/usr/local/samba/samba-4.1.4 \
> >>>>       --sysconfdir=/usr/local/samba/conf \
> >>>>       --localstatedir=/var/ samba/openldap \
> >>>>       --mandir=/usr/local/samba/samba-4.1.4/man \
> >>>>       --with- threads=no \
> >>>>       --enable-bdb=no \
> >>>>       --enable-null \
> >>>>       --enable-dnssrv \
> >>>>       --enable-dynamic \
> >>>>       --enable-backends=no
> >>>> make depend
> >>>> make
> >>>> make check
> >>>> make install
> >>>> unset LDFLAGS
> >>>>
> >>>> However, configure of samba doesn't recognise ldap correctly.
> >>>>
> >>>> ./configure --prefix=/usr/local/samba/samba-4.1.4 \
> >>>>       --sysconfdir=/usr/local/samba/conf \
> >>>>       --localstatedir=/var/samba/smb \
> >>>>       --mandir=/usr/local/samba/samba-4.1.4/man \
> >>>>       --with-privatedir=/usr/local/samba/conf \
> >>>>       --with-configdir=/usr/local/samba/conf \
> >>>>       --with-piddir=/var/samba/smb/pids \
> >>>>       --with-logfilebase=/var/samba/smb/logs \
> >>>>       --with-acl-support \
> >>>>       --with-winbind \
> >>>>       --with-ldap
> >>>>
> >>>> I get this output:
> >>>> ...
> >>>> Checking for header ldap.h : yes
> >>>> Checking for header lber.h : yes
> >>>> Checking for header ldap_pvt.h : no
> >>>> Checking for ber_tag_t : ok
> >>>> Checking for library lber : yes
> >>>> Checking for ber_scanf : ok
> >>>> Checking for ber_sockbuf_add_io : ok
> >>>> Checking for variable LDAP_OPT_SOCKBUF : ok
> >>>> Checking for variable LBER_OPT_LOG_PRINT_FN : ok
> >>>> Checking for library ldap : yes
> >>>> Checking for ldap_init : not found
> >>>> Checking for ldap_init_fd : not found
> >>>> Checking for ldap_initialize : not found
> >>>> Checking for ldap_set_rebind_proc : not found
> >>>> Checking for ldap_add_result_entry : ok
> >>>> Checking whether ldap_set_rebind_proc takes 3 arguments : ok
> >>>> Active Directory support not available: LDAP support ist not
available.
> >>>> Building without Active Directory support.
> >>>> ...
> >>>>
> >>>> Is this a bug or am I doing something wrong?
> >>>> Thanks for looking into this.
> >>>>
> >>>> Peter
> >>>> --
> >>>> To unsubscribe from this list go to the following URL and read the
> >>>> instructions:  https://lists.samba.org/mailman/options/samba
> >>>>
> >
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list