case -1:
EVAL_DEBUG("REGEX ERROR");
- REDEBUG("regex failed: %s", fr_strerror());
+ RPEDEBUG("regex failed");
break;
default:
if (value_box_cast(n, &n->data,
map->lhs->tmpl_da->type, map->lhs->tmpl_da, &vp->data) < 0) {
- REDEBUG("Attribute conversion failed: %s", fr_strerror());
+ RPEDEBUG("Attribute conversion failed");
fr_pair_list_free(&found);
fr_pair_list_free(&n);
return -1;
} else {
if (value_box_cast(n, &n->data, n->vp_type, n->da,
&map->rhs->tmpl_value_box) < 0) {
- REDEBUG("Implicit cast failed: %s", fr_strerror());
+ RPEDEBUG("Implicit cast failed");
rcode = -1;
goto error;
}
*/
if (now.tv_sec == 0) gettimeofday(&now, NULL);
if (tls_utils_asn1time_to_epoch(&next, next_update) < 0) {
- REDEBUG("Failed parsing next_update time: %s", fr_strerror());
+ RPEDEBUG("Failed parsing next_update time");
ocsp_status = OCSP_STATUS_SKIPPED;
goto finish;
}
num, active_callers, lowest_active_callers);
continue;
}
-
+
count++;
RDEBUG3("load-balance found %d children with %" PRIu64 " active", count, active_callers);
if (cs) {
instruction = (unlang_t *)cf_data_find(cs, unlang_group_t, NULL);
if (!instruction) {
- REDEBUG("Failed to find pre-compiled unlang for section %s %s { ... }",
+ RPEDEBUG("Failed to find pre-compiled unlang for section %s %s { ... }",
cf_section_name1(cs), cf_section_name2(cs));
}
}
ev->ctx = ctx;
if (fr_event_timer_insert(request->el, unlang_event_timeout_handler, ev, when, &(ev->ev)) < 0) {
- REDEBUG("Failed inserting event: %s", fr_strerror());
+ RPEDEBUG("Failed inserting event");
talloc_free(ev);
return -1;
}
} else {
vp = fr_pair_find_by_num(request->packet->vps, DHCP_MAGIC_VENDOR, 264, TAG_ANY); /* DHCP-Your-IP-Address */
if (!vp) {
- REDEBUG("Failed to find IP Address for request");
+ RPEDEBUG("Failed to find IP Address for request");
return -1;
}
return 1;
}
if (fr_dhcp_add_arp_entry(request->packet->sockfd, sock->src_interface, hwvp, vp) < 0) {
- REDEBUG("Failed adding ARP entry: %s", fr_strerror());
+ REDEBUG("Failed adding ARP entry");
return -1;
}
}
*/
vp = fr_pair_find_by_num(request->packet->vps, DHCP_MAGIC_VENDOR, 256, TAG_ANY); /* DHCP-Opcode */
if (!vp) {
- REDEBUG("Someone deleted the DHCP-Opcode!");
+ RPEDEBUG("Someone deleted the DHCP-Opcode!");
return RLM_MODULE_FAIL;
}
if (fr_ipaddr_from_ifindex(&primary, request->packet->sockfd, request->packet->dst_ipaddr.af,
request->packet->if_index) < 0) {
- REDEBUG("Failed determining src_ipaddr from if_index: %s", fr_strerror());
+ RPEDEBUG("Failed determining src_ipaddr from if_index");
return RLM_MODULE_FAIL;
}
request->reply->src_ipaddr.ipaddr.ip4addr.s_addr = primary.ipaddr.ip4addr.s_addr;
if (!hwvp) return RLM_MODULE_FAIL;
if (fr_dhcp_add_arp_entry(request->reply->sockfd, sock->src_interface, hwvp, vp) < 0) {
- REDEBUG("Failed adding arp entry: %s", fr_strerror());
+ RPEDEBUG("Failed adding arp entry");
return RLM_MODULE_FAIL;
}
}
}
if (src->type != TMPL_TYPE_ATTR) {
- REDEBUG("dhcp_options cannot operate on a %s", fr_int2str(tmpl_names, src->type, "<INVALID>"));
+ RPEDEBUG("dhcp_options cannot operate on a %s", fr_int2str(tmpl_names, src->type, "<INVALID>"));
goto error;
}
len = fr_dhcp_encode_option(binbuf, sizeof(binbuf), &cursor, NULL);
talloc_free(vp);
if (len <= 0) {
- REDEBUG("DHCP option encoding failed: %s", fr_strerror());
+ RPEDEBUG("DHCP option encoding failed");
return -1;
}
unlang = cf_subsection_find_name2(request->server_cs, "recv", dv->name);
if (!unlang) unlang = cf_subsection_find_name2(request->server_cs, "recv", "*");
if (!unlang) {
- REDEBUG("Failed to find 'recv' section");
+ RPEDEBUG("Failed to find 'recv' section");
goto done;
}
compare = fr_pair_cmp(check_item, reply_item);
if (compare < 0) {
- REDEBUG("Comparison failed: %s", fr_strerror());
+ RPEDEBUG("Comparison failed");
}
if (compare == 1) {
ret = fr_jpath_evaluate_leaf(request, &head, map->lhs->tmpl_da->type, map->lhs->tmpl_da,
to_eval->root, to_eval->jpath);
if (ret < 0) {
- REDEBUG("Failed evaluating jpath: %s", fr_strerror());
+ RPEDEBUG("Failed evaluating jpath");
return -1;
}
if (ret == 0) return 0;
vp->op = map->op;
if (value_box_steal(vp, &vp->data, value) < 0) {
- REDEBUG("Copying data to attribute failed: %s", fr_strerror());
+ RPEDEBUG("Copying data to attribute failed");
talloc_free(vp);
goto error;
}
RWDEBUG("* YOU ARE PREVENTING THE SERVER FROM WORKING");
RWDEBUG("*********************************************");
- REDEBUG("Attribute \"User-Password\" is required for authentication");
+ RPEDEBUG("Attribute \"User-Password\" is required for authentication");
return RLM_MODULE_INVALID;
}
if (tmpl_expand(&sasl.mech, sasl_mech_buff, sizeof(sasl_mech_buff), request,
inst->user_sasl.mech, fr_ldap_escape_func, inst) < 0) {
- REDEBUG("Failed expanding user.sasl.mech: %s", fr_strerror());
+ RPEDEBUG("Failed expanding user.sasl.mech");
rcode = RLM_MODULE_FAIL;
goto finish;
}
if (inst->user_sasl.proxy) {
if (tmpl_expand(&sasl.proxy, sasl_proxy_buff, sizeof(sasl_proxy_buff), request,
inst->user_sasl.proxy, fr_ldap_escape_func, inst) < 0) {
- REDEBUG("Failed expanding user.sasl.proxy: %s", fr_strerror());
+ RPEDEBUG("Failed expanding user.sasl.proxy");
rcode = RLM_MODULE_FAIL;
goto finish;
}
if (inst->user_sasl.realm) {
if (tmpl_expand(&sasl.realm, sasl_realm_buff, sizeof(sasl_realm_buff), request,
inst->user_sasl.realm, fr_ldap_escape_func, inst) < 0) {
- REDEBUG("Failed expanding user.sasl.realm: %s", fr_strerror());
+ RPEDEBUG("Failed expanding user.sasl.realm");
rcode = RLM_MODULE_FAIL;
goto finish;
}
if (!fr_packet_list_id_alloc(conn->pl, IPPROTO_UDP, &ccr->packet, NULL)) {
if (mod_fd_add(request->el, conn, inst) < 0) {
talloc_free(ccr);
- REDEBUG("Failed adding more sockets");
+ RPEDEBUG("Failed adding more sockets");
return RLM_MODULE_FAIL;
}
if (!fr_packet_list_id_alloc(conn->pl, IPPROTO_UDP, &ccr->packet, NULL)) {
talloc_free(ccr);
- REDEBUG("Failed allocating ID: %s", fr_strerror());
+ RPEDEBUG("Failed allocating ID");
return RLM_MODULE_FAIL;
}
}
/* Logs own errors */
if (fr_redis_reply_to_value_box(map, &vpt, value,
map->lhs->tmpl_da->type, map->lhs->tmpl_da) < 0) {
- REDEBUG("Failed converting Redis data: %s", fr_strerror());
+ RPEDEBUG("Failed converting Redis data");
goto error;
}
}
if (fr_inet_pton_port(&node_addr.ipaddr, &node_addr.port, p, q - p, AF_UNSPEC, true, true) < 0) {
- REDEBUG("Failed parsing node address: %s", fr_strerror());
+ RPEDEBUG("Failed parsing node address");
return -1;
}
p = q + 1;
if (fr_redis_cluster_pool_by_node_addr(&pool, inst->cluster, &node_addr, true) < 0) {
- REDEBUG("Failed locating cluster node: %s", fr_strerror());
+ RPEDEBUG("Failed locating cluster node");
return -1;
}
if (value_box_cast(NULL, &ip_map.rhs->tmpl_value_box, PW_TYPE_IPV4_ADDR,
NULL, &tmp)) {
- REDEBUG("Failed converting integer to IPv4 address: %s", fr_strerror());
+ RPEDEBUG("Failed converting integer to IPv4 address");
ret = IPPOOL_RCODE_FAIL;
goto finish;
}
packet->id = fr_rand() & 0xff;
packet->sockfd = fr_socket(&home->src_ipaddr, 0);
if (packet->sockfd < 0) {
- REDEBUG("Failed opening socket: %s", fr_strerror());
+ RPEDEBUG("Failed opening socket");
rcode = RLM_MODULE_FAIL;
goto done;
}
*/
RDEBUG("Replicating %s list to Realm \"%s\"", fr_int2str(pair_lists, list, "<INVALID>"), realm->name);
if (fr_radius_send(packet, NULL, home->secret) < 0) {
- REDEBUG("Failed replicating packet: %s", fr_strerror());
+ RPEDEBUG("Failed replicating packet");
rcode = RLM_MODULE_FAIL;
goto done;
}
*/
vp = fr_pair_make(ctx, NULL, row[2], NULL, op);
if (!vp) {
- REDEBUG("Failed to create the pair: %s", fr_strerror());
+ RPEDEBUG("Failed to create the pair");
return -1;
}
if (do_xlat) {
if (fr_pair_mark_xlat(vp, value) < 0) {
- REDEBUG("Error marking pair for xlat: %s", fr_strerror());
+ RPEDEBUG("Error marking pair for xlat");
talloc_free(vp);
return -1;
}
} else {
if (fr_pair_value_from_str(vp, value, -1) < 0) {
- REDEBUG("Error parsing value: %s", fr_strerror());
+ RPEDEBUG("Error parsing value");
talloc_free(vp);
return -1;