Print the attributes EAP-TLS extension attribute we're not going to add
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 30 Mar 2015 16:38:32 +0000 (12:38 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 30 Mar 2015 16:41:27 +0000 (12:41 -0400)
src/main/tls.c

index d54abc3..af1271f 100644 (file)
@@ -1871,7 +1871,12 @@ int cbtls_verify(int ok, X509_STORE_CTX *ctx)
                        }
 
                        vp = pairmake(talloc_ctx, certs, attribute, value, T_OP_ADD);
-                       rdebug_pair_list(L_DBG_LVL_2, request, vp, NULL);
+                       if (!vp) {
+                               RDEBUG3("Skipping %s += '%s'.  Define %s in the server dictionary "
+                                       "if you require this attribute", attribute, value, attribute);
+                       } else {
+                               rdebug_pair_list(L_DBG_LVL_2, request, vp, NULL);
+                       }
                }
 
                BIO_free_all(out);