BUILD: Link sdap-tests with openldap libraries
sdap-tests uses functions from openldap, but it was not linked with libldap or
liblber.
sh-4.2$ nm --undefined-only .libs/sdap-tests | grep -E "ldap|ber"
U ber_free
U ldap_control_create
U ldap_err2string
U ldap_get_option
U ldap_init_fd
U ldap_install_tls
U ldap_is_ldaps_url
U ldap_unbind_ext
sdap-tests cannot be linked on platfrms with disabled link_all_deplibs.
CCLD sdap-tests
/usr/bin/ld: src/providers/ldap/sdap_tests-sdap.o: undefined reference to symbol 'ber_free'
/usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line
/lib64/liblber-2.4.so.2: could not read symbols: Invalid operation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [sdap-tests] Error 1
Reviewed-by: Pavel Reichl <preichl@redhat.com>