summaryrefslogtreecommitdiffstats
path: root/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'proxy')
-rw-r--r--proxy/src/gp_creds.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
index e02a667..e1c71fe 100644
--- a/proxy/src/gp_creds.c
+++ b/proxy/src/gp_creds.c
@@ -371,7 +371,12 @@ static int gp_get_cred_environment(struct gp_call_ctx *gpcall,
* if any. */
if (use_service_keytab) {
if (k_num == -1) {
- ret = EINVAL;
+ if (ck_num == -1) {
+ ret = EINVAL;
+ } else {
+ /* allow a service to define only the client keytab */
+ ret = 0;
+ }
goto done;
}
if (ck_num == -1) {