From 32b1d5aa0497c4e3677b4575cc7e299590df5618 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some cases a name may not be provided, still try to perform impersonation if the service is configured that way. Reviewed-by: Günther Deschner --- proxy/src/gp_creds.c | 5 +++++ 1 file changed, 5 insertions(+) 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