summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-12-09 17:51:36 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-12-09 08:50:27 +0100
commit154b431093db68b30c429316eb660f776958a56f (patch)
tree4c6c6bc886671bbd48627cfac8592562f9e83365
parentf681859eb819b441da41e2985586bfc59dff2ec5 (diff)
downloadsamba-154b431093db68b30c429316eb660f776958a56f.tar.gz
samba-154b431093db68b30c429316eb660f776958a56f.tar.bz2
samba-154b431093db68b30c429316eb660f776958a56f.zip
s4-spnego Match Windows 2008, and no longer supply a name in the CIFS Negprot
Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Dec 9 08:50:28 CET 2010 on sn-devel-104
-rw-r--r--source4/auth/gensec/spnego.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c
index b757e62840..1f6c9198c5 100644
--- a/source4/auth/gensec/spnego.c
+++ b/source4/auth/gensec/spnego.c
@@ -635,17 +635,8 @@ static NTSTATUS gensec_spnego_create_negTokenInit(struct gensec_security *gensec
spnego_out.negTokenInit.reqFlagsPadding = 0;
if (spnego_state->state_position == SPNEGO_SERVER_START) {
- /* server credentials */
- struct cli_credentials *creds = gensec_get_credentials(gensec_security);
- if (creds) {
- principal = cli_credentials_get_principal(creds, out_mem_ctx);
- } else {
- principal = ADS_IGNORE_PRINCIPAL;
- }
- }
- if (principal) {
spnego_out.negTokenInit.mechListMIC
- = data_blob_string_const(principal);
+ = data_blob_string_const(ADS_IGNORE_PRINCIPAL);
} else {
spnego_out.negTokenInit.mechListMIC = null_data_blob;
}