summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-11-13 20:03:53 -0500
committerSimo Sorce <simo@redhat.com>2013-11-16 17:28:51 -0500
commit16f8bf04b9f254914379d2cefe504a7511e75371 (patch)
tree3e42eada1ee653b537c12e850f0d0c079a240f93 /proxy/src
parente5d88cadd689a4a16551c6fa999e6667dfe9d4c6 (diff)
downloadgss-proxy-16f8bf04b9f254914379d2cefe504a7511e75371.tar.gz
gss-proxy-16f8bf04b9f254914379d2cefe504a7511e75371.tar.xz
gss-proxy-16f8bf04b9f254914379d2cefe504a7511e75371.zip
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.
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/gp_creds.c5
1 files changed, 5 insertions, 0 deletions
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) */