If ADS option is on and LDAP option is off, build fails at configure
phase as below.
need ber_sockbuf_add_io() and LDAP_OPT_SOCKBUF for SASL and TLS support
Active Directory support not available: LDAP support is not available.
Active Directory support not found. Use --without-ads for building without Active Directory support. ADS support improves communication with Active Directory domain controllers.
(complete log in /wrkdirs/usr/ports/net/samba422/work/samba-4.22.3/bin/config.log)
> Script "configure" failed unexpectedly.
Please report the problem to samba@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/net/samba422/work/samba-4.22.3/bin/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
- Error code 1
Stop.
make: stopped in /usr/ports/net/samba422
As is explained in error message, active directory support requires
ldap support. So make ADS option imply LDAP option to avoid such
options setting.