+ /* Check that the rp_realm matches the filter for the GSS name that
+ * was received. */
+
+ if ((!((TR_INSTANCE *)tr)->rp_gss) ||
+ (!((TR_INSTANCE *)tr)->rp_gss->filter)) {
+ fprintf(stderr, "tr_tids_req_handler: No GSS name for incoming request.\n");
+ tids_send_err_response(tids, orig_req, "No GSS name for request");
+ return -1;
+ }
+
+ if ((TR_FILTER_NO_MATCH == tr_filter_process_rp_permitted(orig_req->rp_realm, ((TR_INSTANCE *)tr)->rp_gss->filter, orig_req->cons, &fwd_req->cons, &oaction)) ||
+ (TR_FILTER_ACTION_REJECT == oaction)) {
+ fprintf(stderr, "tr_tids_req_handler: RP realm (%s) does not match RP Realm filter for GSS name\n", orig_req->rp_realm->buf);
+ tids_send_err_response(tids, orig_req, "RP Realm filter error");
+ return -1;
+ }