diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-07-28 08:17:25 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-07-28 12:16:13 +0200 |
commit | 7204ea422bcffa0a7d26eb34c7adf9fc3a7e714c (patch) | |
tree | f7a82d83a78c5d1e66a995866c713cf1d60766fb /source4 | |
parent | 4e049b0a1c95d896280944588df130a5f5e7563f (diff) | |
download | samba-7204ea422bcffa0a7d26eb34c7adf9fc3a7e714c.tar.gz samba-7204ea422bcffa0a7d26eb34c7adf9fc3a7e714c.tar.bz2 samba-7204ea422bcffa0a7d26eb34c7adf9fc3a7e714c.zip |
s4:gensec/spnego: only generate the mechListMic when the server expects it
This fixes the ntvfs.cifs tests.
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/gensec/spnego.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c index 331d033524..b3567202c1 100644 --- a/source4/auth/gensec/spnego.c +++ b/source4/auth/gensec/spnego.c @@ -1029,7 +1029,8 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA spnego.negTokenTarg.responseToken, &unwrapped_out); - if (NT_STATUS_IS_OK(nt_status)) { + if (NT_STATUS_IS_OK(nt_status) + && spnego.negTokenTarg.negResult != SPNEGO_ACCEPT_COMPLETED) { new_spnego = gensec_have_feature(spnego_state->sub_sec_security, GENSEC_FEATURE_NEW_SPNEGO); } |