summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-01-11 15:03:58 +0100
committerSimo Sorce <simo@redhat.com>2013-01-15 10:01:38 -0500
commit3efe19be5b1ff867d5f6f723fb38ced5ac672e61 (patch)
tree4763471245c9bb7dc8035756fd8c66048044a482
parent8b45f3547038bb786c150905645b400b68f80e04 (diff)
downloadgss-proxy-3efe19be5b1ff867d5f6f723fb38ced5ac672e61.tar.gz
gss-proxy-3efe19be5b1ff867d5f6f723fb38ced5ac672e61.tar.xz
gss-proxy-3efe19be5b1ff867d5f6f723fb38ced5ac672e61.zip
Change interposer usage, clients need to set GSS_USE_PROXY=1|YES.
The variable _GSSPROXY_LOOPS has been changed in favor of GSS_USE_PROXY. From now on, applications needs to explicitly enable the usage of the gssproxy interposer inception.
-rw-r--r--proxy/src/gp_init.c2
-rw-r--r--proxy/src/mechglue/gss_plugin.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/proxy/src/gp_init.c b/proxy/src/gp_init.c
index 835c049..c0cdb92 100644
--- a/proxy/src/gp_init.c
+++ b/proxy/src/gp_init.c
@@ -66,7 +66,7 @@ void init_server(bool daemonize)
setlocale(LC_ALL, "");
/* Set env var to avoid looping to ourselves in GSSAPI */
- setenv("_GSSPROXY_LOOPS", "NO", 0);
+ setenv("GSS_USE_PROXY", "NO", 0);
gp_logging_init();
}
diff --git a/proxy/src/mechglue/gss_plugin.c b/proxy/src/mechglue/gss_plugin.c
index 4f7ad62..ac9f678 100644
--- a/proxy/src/mechglue/gss_plugin.c
+++ b/proxy/src/mechglue/gss_plugin.c
@@ -100,8 +100,11 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type)
/* avoid looping in the gssproxy daemon by avoiding to interpose
* any mechanism */
- envval = getenv("_GSSPROXY_LOOPS");
- if (envval && strcmp(envval, "NO") == 0) {
+ envval = getenv("GSS_USE_PROXY");
+ if (!envval) {
+ return NULL;
+ }
+ if ((strcmp(envval, "YES") != 0) && (strcmp(envval, "1") != 0)) {
return NULL;
}