summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-05-11 19:19:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:40 -0500
commit0aef77698e0f927b9d492edc56195217b1b59c07 (patch)
tree8cb86280abc216a43d7057364d954067229f914b /source4/auth/gensec
parentd4d4d668280f10cc4f1a6af86adc1d9210520df2 (diff)
downloadsamba-0aef77698e0f927b9d492edc56195217b1b59c07.tar.gz
samba-0aef77698e0f927b9d492edc56195217b1b59c07.tar.bz2
samba-0aef77698e0f927b9d492edc56195217b1b59c07.zip
r6737: Explain these error returns a bit better.
Andrew Bartlett (This used to be commit 77d054c65aeecfc0d1156d750f7b8025cb154d3a)
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/gensec_gssapi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c
index 8ee0c18208..9809a1b408 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -96,7 +96,9 @@ static NTSTATUS gensec_gssapi_start(struct gensec_security *gensec_security)
if (gensec_security->want_features & GENSEC_FEATURE_SESSION_KEY) {
#ifndef HAVE_GSSKRB5_GET_INITIATOR_SUBKEY
- /* GSSAPI won't give us the session keys, without the right hook */
+ /* GSSAPI won't give us the session keys, without the
+ * right hooks. This is critical when requested, so
+ * fail outright. */
return NT_STATUS_INVALID_PARAMETER;
#endif
}
@@ -108,7 +110,8 @@ static NTSTATUS gensec_gssapi_start(struct gensec_security *gensec_security)
}
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 */
+ /* GSSAPI DCE_STYLE is critical when requested, so
+ * fail outright */
return NT_STATUS_INVALID_PARAMETER;
#else
gensec_gssapi_state->want_flags |= GSS_C_DCE_STYLE;