]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Tidy debugging on LDAP admin binds
authorNick Porter <nick@portercomputing.co.uk>
Tue, 18 Apr 2023 10:44:27 +0000 (11:44 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 19 Apr 2023 07:48:21 +0000 (08:48 +0100)
src/lib/ldap/bind.c
src/lib/ldap/sasl.c

index 985ba9770485a03f19f702e20f3c3fc8b6a83f72..ef53582d62729b0b233a5f6d2608e450f93880ac 100644 (file)
@@ -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;
 
index ddd277cd6d438d308ef3d8c3756b6436625e148b..1cc7471954cdb10402489d201080e44cabeb4387 100644 (file)
@@ -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;