summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-12-04 15:23:44 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-12-08 08:55:04 +0100
commita21cb5a0a11c63f7746a483dca845c12dcfdf1b2 (patch)
treeae4f8fd290b051232872716df44ff0b8e398c330 /source4/auth
parent53b49d4091205cfefabf424a2fefc2df756613d9 (diff)
downloadsamba-a21cb5a0a11c63f7746a483dca845c12dcfdf1b2.tar.gz
samba-a21cb5a0a11c63f7746a483dca845c12dcfdf1b2.tar.bz2
samba-a21cb5a0a11c63f7746a483dca845c12dcfdf1b2.zip
libcli/auth bring ADS_IGNORE_PRINCIPAL in common
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/spnego.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c
index 813bf0a730..898dad1e92 100644
--- a/source4/auth/gensec/spnego.c
+++ b/source4/auth/gensec/spnego.c
@@ -827,7 +827,8 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
return NT_STATUS_INVALID_PARAMETER;
}
- if (spnego.negTokenInit.targetPrincipal) {
+ if (spnego.negTokenInit.targetPrincipal
+ && strcmp(spnego.negTokenInit.targetPrincipal, ADS_IGNORE_PRINCIPAL) != 0) {
DEBUG(5, ("Server claims it's principal name is %s\n", spnego.negTokenInit.targetPrincipal));
if (lpcfg_client_use_spnego_principal(gensec_security->settings->lp_ctx)) {
gensec_set_target_principal(gensec_security, spnego.negTokenInit.targetPrincipal);