diff options
author | Günther Deschner <gdeschner@redhat.com> | 2013-05-14 16:59:56 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2013-05-15 13:34:45 +0200 |
commit | 64c50b61c2adf36b3582c1e35911f4768b3cec4b (patch) | |
tree | d7125d0a5a907dcb5c2dba2db165ebfdc55e80dc /proxy/src | |
parent | b2967e07e46c1a94d203e36d57eb260de085659e (diff) | |
download | gss-proxy-64c50b61c2adf36b3582c1e35911f4768b3cec4b.tar.gz gss-proxy-64c50b61c2adf36b3582c1e35911f4768b3cec4b.tar.xz gss-proxy-64c50b61c2adf36b3582c1e35911f4768b3cec4b.zip |
Add --with-gpp-default-behavior configure switch.
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 <gdeschner@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/src')
-rw-r--r-- | proxy/src/mechglue/gss_plugin.c | 9 |
1 files changed, 5 insertions, 4 deletions
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; } } |