r6733: GSS_C_DCE_STYLE is not available for most builds
authorStefan Metzmacher <metze@samba.org>
Wed, 11 May 2005 15:05:21 +0000 (15:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:39 +0000 (13:16 -0500)
metze
(This used to be commit 3536029e8fb1da1ca689e0b7aa1f3edfb7967790)

source4/auth/gensec/gensec_gssapi.c

index f04f5abe9a806e5f79db174582f24a187464f4df..8ee0c182081dfbc2781dd412db78dceaf19c269c 100644 (file)
@@ -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)