From 64c50b61c2adf36b3582c1e35911f4768b3cec4b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 14 May 2013 16:59:56 +0200 Subject: Add --with-gpp-default-behavior configure switch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only LOCAL_ONLY,LOCAL_FIRST and REMOTE_FIRST allowed. REMOTE_ONLY is recognized but configure aborts as long as it is not supported. Signed-off-by: Günther Deschner Reviewed-by: Simo Sorce --- proxy/src/mechglue/gss_plugin.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'proxy/src/mechglue/gss_plugin.c') diff --git a/proxy/src/mechglue/gss_plugin.c b/proxy/src/mechglue/gss_plugin.c index aac213e..0e62990 100644 --- a/proxy/src/mechglue/gss_plugin.c +++ b/proxy/src/mechglue/gss_plugin.c @@ -75,12 +75,13 @@ enum gpp_behavior gpp_get_behavior(void) } else if (strcmp(envval, "REMOTE_ONLY") == 0) { behavior = GPP_REMOTE_ONLY; } else { - /* unknwon setting, default to local first */ - behavior = GPP_LOCAL_FIRST; + /* unknown setting, default to what has been configured + * (by default local first) */ + behavior = GPP_DEFAULT_BEHAVIOR; } } else { - /* default to local only for now */ - behavior = GPP_LOCAL_FIRST; + /* default to what has been configured (by default local only) */ + behavior = GPP_DEFAULT_BEHAVIOR; } } -- cgit