From: Andrew Bartlett Date: Wed, 8 Dec 2010 07:52:33 +0000 (+1100) Subject: s4-spnego use "not_defined_in_RFC4178@please_ignore" if no principal specified X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=94f4929e04ce4357e3c74b6a14a4b8fccde30fda;p=kai%2Fsamba.git 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 --- diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c index 898dad1e923..b757e62840d 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) {