s4-spnego use "not_defined_in_RFC4178@please_ignore" if no principal specified
authorAndrew Bartlett <abartlet@samba.org>
Wed, 8 Dec 2010 07:52:33 +0000 (18:52 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 8 Dec 2010 07:55:04 +0000 (08:55 +0100)
We need to make this the default, but for now just send it if we have
not been given a target principal.

Andrew Bartlett

source4/auth/gensec/spnego.c

index 898dad1e92326b005de36ab645310a3df4a77517..b757e62840d4cc996b7055b2415c75e9140262b1 100644 (file)
@@ -639,6 +639,8 @@ static NTSTATUS gensec_spnego_create_negTokenInit(struct gensec_security *gensec
                        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) {