diff options
-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) |