[Samba] AIX and ADS support?

Craig Green cgreen at ultradata.com.au
Thu Feb 19 22:43:18 MST 2015


-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] On Behalf Of Rowland Penny
Sent: Thursday, 19 February 2015 8:53 PM
To: samba at lists.samba.org
Subject: Re: [Samba] AIX and ADS support?

On 19/02/15 05:42, Craig Green wrote:
> Benjamin Huntsman <BHuntsman <at> mail2.cu-portland.edu> writes:
>
>> So, if I read this right, Samba4 should be able to participate as a
>> domain
> controller, if I specify the option
>> --with-ads, right?
>>
>> I'm using the following options:
>>
>> --with-winbind
>> --with-swat
>> --with-ads
>> --with-ldap
>> --with-acl-support
>> --with-dnsupdate
>> --with-aio-support
>> --prefix=/opt/samba-4.0.0
>> --sysconfdir=/etc/samba-4.0.0
>> --localstatedir=/var/samba-4.0.0
>>
>> The configure script pukes at the end:
>>
>> Checking for header ldap.h
>                        : no
>> Checking for header lber.h
>                        : no
>> Checking for header ldap_pvt.h
>                        : no
>> Checking for ber_tag_t
>                        : not found
>> Checking for library lber
>                        : not found
>> Checking for ber_scanf
>                        : not found
>> Checking for ber_sockbuf_add_io
>                        : not found
>> Checking for variable LDAP_OPT_SOCKBUF
>                        : not found
>> Checking for variable LBER_OPT_LOG_PRINT_FN
>                        : not found
>> Checking for library ldap
>                        : not found
>> 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 library ldap
>                        : not found
>> Checking for ldap_add_result_entry
>                        : not found
>> Checking whether ldap_set_rebind_proc takes 3 arguments
>                        : ok
>> Active Directory support not available: LDAP support ist not available.
>> /admin/tst/build/samba-4.0.0/source3/wscript:733: error: Active
>> Directory
> support not found. Use
>> --without-ads for building without Active Directory support.
>> bash-3.2#
>>
>> What am I missing?  If I run configure with just --with-ldap but not
> --with-ads, the configure completes.  I
>> also read the samba4 has it's own built-in LDAP, so what's missing?
>> Do I
> need to build OpenLDAP for the DC
>> and/or AD functionality?
>>
>> Thanks!
>>
>> -Ben
> Hi Ben,
>
> Were you ever able to resolve the compile issue with samba 4.
> I am trying to compile samba 4.1.15 on AIX 7.1 and I get the same issue.
> IE: stops with the same mesasge of LDAP support not available.
>
> Any assistance would be appreciated.
>
> Thanks,
> Craig
>

Not an expert here by any means, but if you take the configure options posted by the original OP:

  --with-winbind
  --with-swat
  --with-ads
  --with-ldap
  --with-acl-support
  --with-dnsupdate
  --with-aio-support
  --prefix=/opt/samba-4.0.0
  --sysconfdir=/etc/samba-4.0.0
  --localstatedir=/var/samba-4.0.0

They would be better given as:

  --prefix=/opt/samba-4.0.0
  --sysconfdir=/etc/samba-4.0.0
  --localstatedir=/var/samba-4.0.0

All the removed options are the defaults!

When it fails, it fails because it cannot find required header files, do you have Openldap-devel installed ? or are the '.h' files not where
samba4 expects to find them ?

Rowland
--

The options listed were those of the original poster Benjamin Huntsman.
I agree that for some reason samba cannot find the files.
This appears to be an issue via the wscript.
T
he output from configure lists that it has found krb5.h ldap.h and lber.h.

Here are snippets from the configure output.
.
.
Checking for header history.h                            : no
Checking for header krb5.h                               : yes
Checking for header langinfo.h                           : yes
.
.

.
.
Checking for header ldap.h                               : yes
Checking for header lber.h                               : yes
.
.

But then near the end of the log data I get the following

Checking for library lber                                                                       : not found
Checking for ber_scanf                                                                          : not found
Checking for ber_sockbuf_add_io                                                                 : not found
Checking for variable LDAP_OPT_SOCKBUF                                                          : ok
Checking for variable LBER_OPT_LOG_PRINT_FN                                                     : ok
Checking for library ldap                                                                       : not found

Where it implies it cannot find the library lber or the library ldap
Are these lines referring to ldap.h and lber.h?

The problem appears to be with the source3/wscript not being able to resolve where these files are.

Active Directory support not available: LDAP support is not available.
/intsupport/samba/samba-4.1.15/source3/wscript:766: error: Active Directory support not found. Use --without-ads for building without Active Directory support.

I have openldap and krb5 installed

openldap-2.4.23-0.3
openldap-clients-2.4.23-0.3
openldap-devel-2.4.23-0.3
krb5-devel-1.9.4-1
krb5-libs-1.9.4-1
krb5-pkinit-openssl-1.9.4-1
krb5-workstation-1.9.4-1

Regards,
Craig
Disclaimer Notice This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action or place any reliance on it. If you have received this message in error please notify Ultradata immediately on +61 3 9291 1600. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Ultradata Australia Pty. Ltd. To unsubscribe from receiving commercial electronic messages from Ultradata Australia please email unsubscribe at ultradata.com.au with the subject heading "Unsubscribe".


More information about the samba mailing list