summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-28 06:49:26 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-03-27 02:34:36 +0100
commit01c029993c7111dc3287118f69184c399b4aaace (patch)
tree2bb8da404239449fefe61a78f9442603188f58ec /auth
parent2103c373b44871810197fa8e423f55a659a8b89d (diff)
downloadsamba-01c029993c7111dc3287118f69184c399b4aaace.tar.gz
samba-01c029993c7111dc3287118f69184c399b4aaace.tar.xz
samba-01c029993c7111dc3287118f69184c399b4aaace.zip
auth/gensec/spnego: map SPNEGO_REJECT to NT_STATUS_LOGON_FAILURE
This is what NTLMSSP also gives. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Mar 27 02:34:36 CET 2014 on sn-devel-104
Diffstat (limited to 'auth')
-rw-r--r--auth/gensec/spnego.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/gensec/spnego.c b/auth/gensec/spnego.c
index 6878b4fd46..7e9dcaee70 100644
--- a/auth/gensec/spnego.c
+++ b/auth/gensec/spnego.c
@@ -1010,7 +1010,7 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
if (spnego.negTokenTarg.negResult == SPNEGO_REJECT) {
spnego_free_data(&spnego);
- return NT_STATUS_ACCESS_DENIED;
+ return NT_STATUS_LOGON_FAILURE;
}
/* Server didn't like our choice of mech, and chose something else */