s4-spnego Match Windows 2008, and no longer supply a name in the CIFS Negprot
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Dec 2010 06:51:36 +0000 (17:51 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Dec 2010 07:50:27 +0000 (08:50 +0100)
Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec  9 08:50:28 CET 2010 on sn-devel-104

source4/auth/gensec/spnego.c

index b757e62840d4cc996b7055b2415c75e9140262b1..1f6c9198c5d28f9ccd338a49e574863e6583f698 100644 (file)
@@ -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;
                }