diff options
| author | Simo Sorce <simo@redhat.com> | 2013-11-13 20:03:53 -0500 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2013-11-16 17:28:51 -0500 |
| commit | 16f8bf04b9f254914379d2cefe504a7511e75371 (patch) | |
| tree | 3e42eada1ee653b537c12e850f0d0c079a240f93 /proxy/src | |
| parent | e5d88cadd689a4a16551c6fa999e6667dfe9d4c6 (diff) | |
| download | gss-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.c | 5 |
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) */ |
