summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/gp_creds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
index e00f735..e7f2676 100644
--- a/proxy/src/gp_creds.c
+++ b/proxy/src/gp_creds.c
@@ -291,7 +291,9 @@ static int gp_get_cred_environment(struct gp_call_ctx *gpcall,
}
} else {
/* No name provided */
- if (svc->euid != target_uid) {
+ if (svc->trusted && (svc->euid == target_uid)) {
+ use_service_keytab = true;
+ } else if (svc->euid != target_uid) {
user_requested = true;
}
}