From 16f8bf04b9f254914379d2cefe504a7511e75371 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 13 Nov 2013 20:03:53 -0500 Subject: Try impersonation even when a name is not provided In some cases a name may not be provided, still try to perform impersonation if the service is configured that way. --- proxy/src/gp_creds.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'proxy/src') diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c index e02a667..5337390 100644 --- a/proxy/src/gp_creds.c +++ b/proxy/src/gp_creds.c @@ -289,6 +289,11 @@ static int gp_get_cred_environment(struct gp_call_ctx *gpcall, } *requested_name = name; } + } else { + /* No name provided */ + if (svc->euid != target_uid) { + user_requested = true; + } } /* impersonation case (only for initiation) */ -- cgit