# Loads some external perl and evaluate it
my ($filename,$a,$b,$c,$d) = @_;
- radiusd::radlog(L_DBG, "From xlat $filename ");
- radiusd::radlog(L_DBG,"From xlat $a $b $c $d ");
+ radiusd::radlog(L_DBG, "From xlat $filename");
+ radiusd::radlog(L_DBG,"From xlat $a $b $c $d");
local *FH;
open FH, $filename or die "open '$filename' $!";
local($/) = undef;
sc = fr_schedule_create(NULL, el, &default_log, fr_debug_lvl,
thread_instantiate, thread_detach, schedule);
if (!sc) {
- PERROR("Failed starting the scheduler: %s", fr_strerror());
+ PERROR("Failed starting the scheduler");
EXIT_WITH_FAILURE;
}
sizeof(fr_channel_data_t),
size);
if (!s->ms) {
- ERROR("Failed creating message buffers for network IO: %s", fr_strerror());
+ PERROR("Failed creating message buffers for network IO");
talloc_free(s);
return;
}
sizeof(fr_channel_data_t),
s->listen->default_message_size * s->listen->num_messages);
if (!s->ms) {
- ERROR("Failed creating message buffers for directory IO: %s", fr_strerror());
+ PERROR("Failed creating message buffers for directory IO");
talloc_free(s);
return;
}
if (el) {
sc->single_network = fr_network_create(sc, el, 0, sc->log, sc->lvl);
if (!sc->single_network) {
- ERROR("Failed creating network: %s", fr_strerror());
+ PERROR("Failed creating network");
pre_instantiate_st_fail:
talloc_free(sc);
return NULL;
sc->single_worker = fr_worker_create(sc, "0", el, sc->log, sc->lvl);
if (!sc->single_worker) {
- ERROR("Failed creating worker: %s", fr_strerror());
+ PERROR("Failed creating worker");
goto pre_instantiate_st_fail;
}
if (!subcs) subcs = cf_section_find(sc->cs, "worker", NULL);
if (sc->worker_thread_instantiate(sc->single_worker, el, subcs) < 0) {
- ERROR("Failed calling thread instantiate: %s", fr_strerror());
+ PERROR("Failed calling thread instantiate");
goto pre_instantiate_st_fail;
}
}
if (fr_command_register_hook(NULL, "0", sc->single_worker, cmd_worker_table) < 0) {
- ERROR("Failed adding worker commands: %s", fr_strerror());
+ PERROR("Failed adding worker commands");
st_fail:
if (sc->worker_thread_detach) sc->worker_thread_detach(NULL);
goto pre_instantiate_st_fail;
}
if (fr_command_register_hook(NULL, "0", sc->single_network, cmd_network_table) < 0) {
- ERROR("Failed adding network commands: %s", fr_strerror());
+ PERROR("Failed adding network commands");
goto st_fail;
}
sc->sn->id = 0;
if (fr_schedule_pthread_create(&sc->sn->pthread_id, fr_schedule_network_thread, sc->sn) < 0) {
- ERROR("Failed creating network thread %s", fr_strerror());
+ PERROR("Failed creating network thread");
goto fail;
}
snprintf(buffer, sizeof(buffer), "%d", i);
if (fr_command_register_hook(NULL, buffer, sw->worker, cmd_worker_table) < 0) {
- ERROR("Failed adding worker commands: %s", fr_strerror());
+ PERROR("Failed adding worker commands");
goto st_fail;
}
}
if (fr_command_register_hook(NULL, "0", sc->sn->nr, cmd_network_table) < 0) {
- ERROR("Failed adding network commands: %s", fr_strerror());
+ PERROR("Failed adding network commands");
goto st_fail;
}
MEM(versions = cf_section_alloc(NULL, NULL, "version", NULL));
dependency_version_numbers_init(versions);
- DEBUG2("Server was built with: ");
+ DEBUG2("Server was built with:");
for (ci = cf_item_next(features, NULL);
ci;
cf_log_debug(modules, " } # modules");
if (fr_command_register_hook(NULL, NULL, modules, cmd_table) < 0) {
- ERROR("Failed registering radmin commands for modules - %s",
- fr_strerror());
+ PERROR("Failed registering radmin commands for modules");
return -1;
}
DEBUG2("#### Instantiating listeners ####");
if (fr_command_register_hook(NULL, NULL, virtual_server_root, cmd_table) < 0) {
- ERROR("Failed registering radmin commands for virtual servers - %s",
- fr_strerror());
+ PERROR("Failed registering radmin commands for virtual servers");
return -1;
}
#endif
#ifdef WITH_EVENT_DEBUG
-# define EVENT_DEBUG(fmt, ...) printf("EVENT: ");printf(fmt, ## __VA_ARGS__);printf("\n");fflush(stdout)
+# define EVENT_DEBUG(fmt, ...) printf("EVENT:");printf(fmt, ## __VA_ARGS__);printf("\n");fflush(stdout)
#else
# define EVENT_DEBUG(...)
#endif
if (fr_schedule_pthread_create(&session->pthread_id, bfd_child_thread, session) < 0) {
talloc_free(session->el);
session->el = NULL;
- ERROR("Thread create failed: %s", fr_strerror());
+ PERROR("Thread create failed");
goto close_pipes;
}
pthread_attr_destroy(&attr);
{
sockfd = fr_socket_server_udp(&packet->src_ipaddr, &packet->src_port, NULL, false);
if (sockfd < 0) {
- ERROR("Error opening socket: %s", fr_strerror());
+ PERROR("Error opening socket");
return -1;
}
if (fr_socket_bind(sockfd, &packet->src_ipaddr, &packet->src_port, NULL) < 0) {
- ERROR("Error binding socket: %s", fr_strerror());
+ PERROR("Error binding socket");
return -1;
}
}
static int mod_load(void)
{
if (fr_vqp_init() < 0) {
- ERROR("Failed initializing the VMPS dictionaries: %s", fr_strerror());
+ PERROR("Failed initializing the VMPS dictionaries");
return -1;
}
* common choices.
*/
if (nak->data[i] == 0) {
- REDEBUG("Peer NAK'd indicating it is not willing to continue ");
+ REDEBUG("Peer NAK'd indicating it is not willing to continue");
return FR_EAP_METHOD_INVALID;
}
RWDEBUG2("!!! Found map between LDAP attribute and a FreeRADIUS password attribute");
RWDEBUG2("!!! eDirectory does not allow passwords to be retrieved via LDAP search");
RWDEBUG2("!!! Remove the password map and either:");
- RWDEBUG2("!!! - Set 'edir = yes' and enable the universal password feature on your ");
+ RWDEBUG2("!!! - Set 'edir = yes' and enable the universal password feature on your");
RWDEBUG2("!!! eDir server (recommended)");
RWDEBUG2("!!! that password attribute");
RWDEBUG2("!!! - Bind as the user by listing %s in the authenticate section, and",
RWDEBUG2("!!! Found map between LDAP attribute and a FreeRADIUS password attribute");
RWDEBUG2("!!! but no password attribute found in search result");
RWDEBUG2("!!! Either:");
- RWDEBUG2("!!! - Ensure the user object contains a password attribute, and that ");
+ RWDEBUG2("!!! - Ensure the user object contains a password attribute, and that");
RWDEBUG2("!!! \"%s\" has permission to read that password attribute (recommended)",
conn->config->admin_identity);
RWDEBUG2("!!! - Bind as the user by listing %s in the authenticate section, and",
RWDEBUG2("!!! No \"known good\" password added");
RWDEBUG2("!!! but no password attribute found in search result");
RWDEBUG2("!!! Either:");
- RWDEBUG2("!!! - Ensure the user object contains a password attribute, and that ");
+ RWDEBUG2("!!! - Ensure the user object contains a password attribute, and that");
RWDEBUG2("!!! 'identity' is set to the DN of an account that has permission to read");
RWDEBUG2("!!! that password attribute");
RWDEBUG2("!!! - Bind as the user by listing %s in the authenticate section, and",