diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-05-11 15:05:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:39 -0500 |
commit | 470f14ece24ebad6d32e60d84699797347ff271e (patch) | |
tree | bf86d3729ac65c5d738c251be4a4ab9c43c1cc9a /source4/auth | |
parent | 2542d54e9384302c6c9a7b2b2bf4be07b6d95f9c (diff) | |
download | samba-470f14ece24ebad6d32e60d84699797347ff271e.tar.gz samba-470f14ece24ebad6d32e60d84699797347ff271e.tar.xz samba-470f14ece24ebad6d32e60d84699797347ff271e.zip |
r6733: GSS_C_DCE_STYLE is not available for most builds
metze
(This used to be commit 3536029e8fb1da1ca689e0b7aa1f3edfb7967790)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/gensec/gensec_gssapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c index f04f5abe9a..8ee0c18208 100644 --- a/source4/auth/gensec/gensec_gssapi.c +++ b/source4/auth/gensec/gensec_gssapi.c @@ -107,7 +107,12 @@ static NTSTATUS gensec_gssapi_start(struct gensec_security *gensec_security) gensec_gssapi_state->want_flags |= GSS_C_CONF_FLAG; } if (gensec_security->want_features & GENSEC_FEATURE_DCE_STYLE) { +#ifndef GSS_C_DCE_STYLE + /* GSSAPI won't give us the session keys, without the right hook */ + return NT_STATUS_INVALID_PARAMETER; +#else gensec_gssapi_state->want_flags |= GSS_C_DCE_STYLE; +#endif } if ((strcmp(gensec_security->ops->oid, GENSEC_OID_KERBEROS5) == 0) |