From: Nick Porter Date: Fri, 12 May 2023 16:44:26 +0000 (+0100) Subject: Better debug message for anonymous bind X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00c5a858cc91827fdda20f0a0c75a66785e89ffc;p=thirdparty%2Ffreeradius-server.git Better debug message for anonymous bind --- diff --git a/src/lib/ldap/connection.c b/src/lib/ldap/connection.c index 469c8bce5f9..575caf9500a 100644 --- a/src/lib/ldap/connection.c +++ b/src/lib/ldap/connection.c @@ -969,7 +969,8 @@ fr_ldap_thread_trunk_t *fr_thread_ldap_trunk_get(fr_ldap_thread_t *thread, char { fr_ldap_thread_trunk_t *found, find = {.uri = uri, .bind_dn = bind_dn}; - ROPTIONAL(RDEBUG2, DEBUG2, "Looking for LDAP connection to \"%s\" bound as \"%s\"", uri, bind_dn); + ROPTIONAL(RDEBUG2, DEBUG2, "Looking for LDAP connection to \"%s\" bound as \"%s\"", uri, + bind_dn ? bind_dn : "(anonymous)"); found = fr_rb_find(thread->trunks, &find); if (found) return found;