[Samba] how to enable Active Directory support building samba on AIX?

steve steve at steve-ss.com
Tue Feb 11 10:28:58 MST 2014


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 correct directory?
> 

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
> >>
> 




More information about the samba mailing list