]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Better debug message for anonymous bind
authorNick Porter <nick@portercomputing.co.uk>
Fri, 12 May 2023 16:44:26 +0000 (17:44 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 12 May 2023 16:44:26 +0000 (17:44 +0100)
src/lib/ldap/connection.c

index 469c8bce5f930d33254fee1b21ba2fc58bae85a3..575caf9500a3971794f7b4391a190fbb8bd8f8dc 100644 (file)
@@ -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;