mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:13:33 +03:00
LDAP: properly implemented as a curl_handler
makes the LDAP code much cleaner, nicer and in general being a better libcurl citizen. If a new enough OpenLDAP version is detect, the new and shiny lib/openldap.c code is then used instead of the old cruft Code by Howard, minor cleanups by Daniel.
This commit is contained in:
parent
606b933a4f
commit
2e056353b0
9 changed files with 597 additions and 12 deletions
|
|
@ -850,7 +850,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then
|
|||
fi
|
||||
|
||||
if test x$CURL_DISABLE_LDAP != x1 ; then
|
||||
AC_CHECK_FUNCS([ldap_url_parse])
|
||||
AC_CHECK_FUNCS([ldap_url_parse ldap_init_fd])
|
||||
|
||||
if test "$LDAPLIBNAME" = "wldap32"; then
|
||||
curl_ldap_msg="enabled (winldap)"
|
||||
|
|
@ -862,6 +862,9 @@ if test x$CURL_DISABLE_LDAP != x1 ; then
|
|||
esac
|
||||
else
|
||||
curl_ldap_msg="enabled (OpenLDAP)"
|
||||
if test "x$ac_cv_func_ldap_init_fd" = x""yes; then
|
||||
AC_DEFINE(USE_OPENLDAP, 1, [Use OpenLDAP-specific code])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue