summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 60c4e12..1ac1fac 100644
--- a/proxy/src/gp_creds.c
+++ b/proxy/src/gp_creds.c
@@ -376,7 +376,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) {