Hi,

These two patches add missing CFLAGS/LIBS to Makefile.am:

[PATCH 1/2] BUILD: Link libsss_ad.so to sasl libs
[PATCH 2/2] BUILD: Use OPENLDAP_CFLAGS instead of LDAP_CFLAGS

This underlinking was noticed in make check (dlopen-test).

Note:
It failed for me since my openldap build had no sasl support,
which would otherwise have pulled in libsasl2.so.
Of course, that support should be in place, but the linking should still be fixed.

BTW: It would propably be nice to have a configure check whether
openldap has sasl support, but it seems that would need a check if ldap_sasl_interactive_bind returns LDAP_NOT_SUPPORTED.

Regards, Ben