From f678f9857af765d109c502229f07481a7b30c3e8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 1 Apr 2013 11:32:21 -0400 Subject: Add krb5_client_keytab config option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simo Sorce Reviewed-by: Günther Deschner --- proxy/src/gp_config.c | 8 ++++++++ proxy/src/gp_proxy.h | 1 + 2 files changed, 9 insertions(+) diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c index f702684..40d1f55 100644 --- a/proxy/src/gp_config.c +++ b/proxy/src/gp_config.c @@ -85,6 +85,14 @@ static int get_krb5_mech_cfg(struct gp_service *svc, } } + value = gp_config_get_string(ctx, secname, "krb5_client_keytab"); + if (value) { + svc->krb5.client_keytab = strdup(value); + if (!svc->krb5.client_keytab) { + return ENOMEM; + } + } + return 0; } diff --git a/proxy/src/gp_proxy.h b/proxy/src/gp_proxy.h index f8b9771..8895aa8 100644 --- a/proxy/src/gp_proxy.h +++ b/proxy/src/gp_proxy.h @@ -42,6 +42,7 @@ struct gp_cred_krb5 { char *principal; char *keytab; char *ccache; + char *client_keytab; }; struct gp_creds_handle; -- cgit