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

Mike Noonan mike.p.noonan at gmail.com
Fri Feb 28 00:09:29 MST 2014


The is a problem with source3/wscript on AIX
If you update as follows, it will properly detect ldap.
629,630c629,630
<         conf.CHECK_FUNCS_IN('ldap_init ldap_init_fd ldap_initialize
ldap_set_rebind_proc', 'ldap')
<         conf.CHECK_FUNCS_IN('ldap_add_result_entry', 'ldap')
---
>         conf.CHECK_FUNCS_IN('ldap_init ldap_init_fd ldap_initialize
ldap_set_rebind_proc', 'ldap', headers='ldap.h lber.h')
>         conf.CHECK_FUNCS_IN('ldap_add_result_entry', 'ldap',
headers='ldap.h')


Regards, Mike


On Sun, Feb 23, 2014 at 11:02 PM, Jelmer Vernooij <jelmer at samba.org> wrote:

> (changing mailing list to samba@; please use samba-technical@ for
> non-development discussion)
>
> On Sat, Feb 08, 2014 at 11:18:40AM +0100, Peter Waeckerle wrote:
> > 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:
>
> You've installed LDAP in a non-standard location, so Samba's configure
> script can't find it. See bin/config.log for details.
>
> Specifying manual CFLAGS/LDFLAGS will likely help configure find LDAP,
> e.g.
>
> CFLAGS=-I/usr/local/samba/samba-4.1.4/include
> LDFLAGS=-L/usr/local/samba/samba-4.1.4/lib
>
> Cheers,
>
> Jelmer
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>



-- 
Mike Noonan
Mobile: +31 65 332 9220
Mike.P.Noonan at gmail.com


More information about the samba mailing list