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

Peter Wäckerle wacky at bluewin.ch
Tue Feb 11 09:38:53 MST 2014


Hi

thanks, Chan! This exactly describes the problem.

Now, how do I enable samba's configure to find my LDAP library which I 
built in the first step?
As you can see below I create openldap in /usr/local/samba/samba-4.1.4/lib.
I also tried with --enable-static in openldap's configure, but it makes 
no difference:
Samba's configure isn't able to detect openldap.

My last successful build was with samba version 4.0.3. There I could add 
to samba's configure:
--with-ldap=/usr/local/samba/samba-4.1.4. But this now gives:
waf: error: --with-ldap option does not take a value.

So: where/how do I tell samba to look for openldap in the correct directory?


> 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