]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Switch to using WITH_SASL to indicate SASL support
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 30 Sep 2017 14:06:30 +0000 (22:06 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 30 Sep 2017 14:06:30 +0000 (22:06 +0800)
src/lib/ldap/libfreeradius-ldap.h
src/lib/ldap/state.c

index 6f9192216a39dfa19527b4beac6195e758fbc1aa..e004f66f83cc2474132d6db7200fa70f5ab6bbad 100644 (file)
@@ -478,7 +478,7 @@ int         fr_ldap_map_do(REQUEST *request, fr_ldap_connection_t *conn,
 /*
  *     sasl_s.c - SASL synchronous bind functions
  */
-#ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND
+#ifdef WITH_SASL
 fr_ldap_rcode_t         fr_ldap_sasl_interactive(REQUEST *request,
                                          fr_ldap_connection_t *pconn, char const *dn,
                                          char const *password, fr_ldap_sasl_t const *sasl,
@@ -516,7 +516,7 @@ int         fr_ldap_start_tls_async(fr_ldap_connection_t *c,
 /*
  *     sasl.c - Async sasl bind
  */
-#ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND
+#ifdef WITH_SASL
 int            fr_ldap_sasl_bind_async(fr_ldap_connection_t *c,
                                        char const *mechs,
                                        char const *identity,
index 920d91305785bbb4af4f39e48ece05ee1b790607..75fdfa64220b3abb3362c422a9598e69334cd7a3 100644 (file)
@@ -73,7 +73,7 @@ again:
                /*
                 *      SASL uses a different (and more complex) codepath
                 */
-#ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND
+#ifdef WITH_SASL
                if (c->config->admin_sasl.mech) {
                        if (fr_ldap_sasl_bind_async(c,
                                                    c->config->admin_sasl.mech,