if (status)
{
com_err(whoami, status, "while connecting to Moira");
- return MRCL_FAIL;
+ return status;
}
status = mr_motd(&motd);
{
mr_disconnect();
com_err(whoami, status, "while checking server status");
- return MRCL_FAIL;
+ return status;
}
if (motd)
{
sprintf(temp, "The Moira server is currently unavailable: %s", motd);
com_err(whoami, status, temp);
mr_disconnect();
- return MRCL_FAIL;
+ return status;
}
status = mr_version(version);
{
com_err(whoami, status, "while setting query version number.");
mr_disconnect();
- return MRCL_FAIL;
+ return status;
}
}
{
com_err(whoami, status, "while authenticating to Moira.");
mr_disconnect();
- return MRCL_AUTH_ERROR;
+ return status;
}
}
- return MRCL_SUCCESS;
+ return MR_SUCCESS;
}
void expand_groups(LDAP *ldap_handle, char *dn_path, char *group_name)