summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-04-23 06:56:43 +0200
committerMartin Nagy <mnagy@redhat.com>2009-04-23 16:08:13 +0200
commit23a0493b5db7e426a8977a154c2b871c0e47ee3e (patch)
tree245c4354efd0fdddb72fb0cedfb33230356a93d1
parent488a93f6e73879c91e50cecc0bf5056baf4158d4 (diff)
downloadldap_driver_testing-23a0493b5db7e426a8977a154c2b871c0e47ee3e.tar.gz
ldap_driver_testing-23a0493b5db7e426a8977a154c2b871c0e47ee3e.tar.xz
ldap_driver_testing-23a0493b5db7e426a8977a154c2b871c0e47ee3e.zip
Disable SASL for now, it doesn't work properly.
-rw-r--r--src/ldap_helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ldap_helper.c b/src/ldap_helper.c
index 427191a..b454f1b 100644
--- a/src/ldap_helper.c
+++ b/src/ldap_helper.c
@@ -1379,6 +1379,7 @@ next_entry(ldap_instance_t *inst)
return inst->entry;
}
+#if 0
/* FIXME: Not tested. */
static int
ldap_sasl_interact(LDAP *ld, unsigned flags, void *defaults, void *sin)
@@ -1429,6 +1430,7 @@ ldap_sasl_interact(LDAP *ld, unsigned flags, void *defaults, void *sin)
return LDAP_SUCCESS;
}
+#endif
/*
* Initialize the LDAP handle and bind to the server. Needed authentication
@@ -1442,7 +1444,9 @@ ldap_connect(ldap_instance_t *ldap_inst)
int version;
const char *bind_dn;
const char *password;
+#if 0
struct berval *servercred = NULL;
+#endif
ldap_db_t *ldap_db;
REQUIRE(ldap_inst != NULL);
@@ -1486,6 +1490,8 @@ ldap_connect(ldap_instance_t *ldap_inst)
ret = ldap_simple_bind_s(ld, bind_dn, password);
break;
case AUTH_SASL:
+ log_error("SASL authentication is not supported yet");
+#if 0
log_error("%s", str_buf(ldap_db->sasl_mech));
ret = ldap_sasl_interactive_bind_s(ld, NULL,
str_buf(ldap_db->sasl_mech),
@@ -1494,6 +1500,7 @@ ldap_connect(ldap_instance_t *ldap_inst)
ldap_db);
ber_bvfree(servercred);
break;
+#endif
default:
fatal_error("bug in ldap_connect(): unsupported "
"authentication mechanism");