summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-07-06 17:58:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:53 -0500
commitc688a1e18ff5e3f50005a8438bdbfb0e4382ca18 (patch)
treea6249b33887bc5e90634d05ba5a8161a50a04411 /source4/libcli
parent6f0d8e67ffb3c45992bce37e1d2ab511908dedcf (diff)
downloadsamba-c688a1e18ff5e3f50005a8438bdbfb0e4382ca18.tar.gz
samba-c688a1e18ff5e3f50005a8438bdbfb0e4382ca18.tar.bz2
samba-c688a1e18ff5e3f50005a8438bdbfb0e4382ca18.zip
r1365: in SPNEGO_SERVER_TARG we should not check the spnego_negResult
because the client don't send this metze (This used to be commit b1217a4ef6592082bb02fd0596a0563bacdf1d8e)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/auth/spnego.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source4/libcli/auth/spnego.c b/source4/libcli/auth/spnego.c
index 02bc9043f5..aa0f83700d 100644
--- a/source4/libcli/auth/spnego.c
+++ b/source4/libcli/auth/spnego.c
@@ -340,10 +340,6 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
spnego_state->expected_packet));
return NT_STATUS_INVALID_PARAMETER;
}
-
- if (spnego.negTokenTarg.negResult == SPNEGO_REJECT) {
- return NT_STATUS_ACCESS_DENIED;
- }
if (spnego.negTokenTarg.responseToken.length) {
nt_status = gensec_update(spnego_state->sub_sec_security,
@@ -355,11 +351,6 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
nt_status = NT_STATUS_OK;
}
- if (NT_STATUS_IS_OK(nt_status)
- && (spnego.negTokenTarg.negResult != SPNEGO_ACCEPT_COMPLETED)) {
- nt_status = NT_STATUS_INVALID_PARAMETER;
- }
-
spnego_state->result = spnego.negTokenTarg.negResult;
spnego_free_data(&spnego);