./configure --prefix=/usr/local/samba --with-ldap=/usr/local/openldap/include/ldap.h --with-ads .......... checking for LDAP support... auto checking ldap.h usability... no checking ldap.h presence... no checking for ldap.h... no checking lber.h usability... no checking lber.h presence... no checking for lber.h... no configure: WARNING: ldap.h is needed for LDAP support checking for ber_tag_t... no configure: WARNING: ber_tag_t is needed for LDAP support checking for Active Directory and krb5 support... yes configure: error: Active Directory Support requires LDAP support -------- it breaks here. i have compiled openldap in /usr/local/openldap with BDB
./configure --prefix=/usr/local/samba --with-ldap --with-ads .......... checking for LDAP support... yes checking ldap.h usability... no checking ldap.h presence... no checking for ldap.h... no checking lber.h usability... no checking lber.h presence... no checking for lber.h... no configure: error: ldap.h is needed for LDAP support .... break. ldap.h is available on the system.
that configure option does only take yes/no as argument. If you have your ldap installation at a non standard place you need to set environment variables like CFLAGS