*/
static REALM *check_for_realm(void *instance, REQUEST *request)
{
- int is_local;
char namebuf[MAX_STRING_LEN];
char *username;
char *realmname = NULL;
/*
* Figure out what to do with the request.
*/
- is_local = FALSE;
switch (request->packet->code) {
default:
DEBUG2("rlm_realm: Unknown packet code %d\n",
case PW_ACCOUNTING_REQUEST:
if (realm->acct_ipaddr == htonl(INADDR_NONE)) {
DEBUG2("rlm_realm: Accounting realm is LOCAL.");
- is_local = TRUE;
+ return NULL;
}
if (realm->acct_port == 0) {
case PW_AUTHENTICATION_REQUEST:
if (realm->ipaddr == htonl(INADDR_NONE)) {
DEBUG2("rlm_realm: Authentication realm is LOCAL.");
- is_local = TRUE;
+ return NULL;
}
if (realm->auth_port == 0) {
}
/*
- * Local realm, don't proxy it.
- */
- if (is_local) {
- return NULL;
- }
-
- /*
* If this request has arrived from another freeradius server
* that has already proxied the request, we don't need to do
* it again.