status = fr_ldap_result(NULL, NULL, c, bind_ctx->msgid, LDAP_MSG_ALL, bind_ctx->bind_dn, fr_time_delta_wrap(0));
switch (status) {
case LDAP_PROC_SUCCESS:
- DEBUG("Bind as \"%s\" to \"%s\" successful",
- *bind_ctx->bind_dn? bind_ctx->bind_dn : "(anonymous)", c->config->server);
+ DEBUG2("Bind as \"%s\" to \"%s\" successful",
+ *bind_ctx->bind_dn ? bind_ctx->bind_dn : "(anonymous)", c->config->server);
fr_ldap_state_next(c); /* onto the next operation */
break;
* We're done, woohoo!
*/
case LDAP_SUCCESS:
+ DEBUG2("SASL bind as \"%s\" to \"%s\" successful",
+ sasl_ctx->identity ? sasl_ctx->identity : "(anonymous)", c->config->server);
talloc_free(sasl_ctx);
fr_ldap_state_next(c);
break;