From: Nick Porter Date: Tue, 18 Apr 2023 10:44:27 +0000 (+0100) Subject: Tidy debugging on LDAP admin binds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6f368f0af28ad4d01488709472280b5bc771432;p=thirdparty%2Ffreeradius-server.git Tidy debugging on LDAP admin binds --- diff --git a/src/lib/ldap/bind.c b/src/lib/ldap/bind.c index 985ba977048..ef53582d627 100644 --- a/src/lib/ldap/bind.c +++ b/src/lib/ldap/bind.c @@ -66,8 +66,8 @@ static void _ldap_bind_io_read(UNUSED fr_event_list_t *el, UNUSED int fd, UNUSED 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; diff --git a/src/lib/ldap/sasl.c b/src/lib/ldap/sasl.c index ddd277cd6d4..1cc7471954c 100644 --- a/src/lib/ldap/sasl.c +++ b/src/lib/ldap/sasl.c @@ -267,6 +267,8 @@ static void _ldap_sasl_bind_io_write(fr_event_list_t *el, int fd, UNUSED int fla * 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;