From 94f4929e04ce4357e3c74b6a14a4b8fccde30fda Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 8 Dec 2010 18:52:33 +1100 Subject: [PATCH] s4-spnego use "not_defined_in_RFC4178@please_ignore" if no principal specified 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c index 898dad1e9232..b757e62840d4 100644 --- a/source4/auth/gensec/spnego.c +++ b/source4/auth/gensec/spnego.c @@ -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) { -- 2.34.1