summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-12-08 18:52:33 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-12-08 08:55:04 +0100
commit94f4929e04ce4357e3c74b6a14a4b8fccde30fda (patch)
tree9464129b09568b9990df630cd5d33a87082534ae
parenta21cb5a0a11c63f7746a483dca845c12dcfdf1b2 (diff)
downloadsamba-94f4929e04ce4357e3c74b6a14a4b8fccde30fda.tar.gz
samba-94f4929e04ce4357e3c74b6a14a4b8fccde30fda.tar.bz2
samba-94f4929e04ce4357e3c74b6a14a4b8fccde30fda.zip
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
-rw-r--r--source4/auth/gensec/spnego.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c
index 898dad1e92..b757e62840 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) {