summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-25 11:18:00 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-26 10:48:36 +0100
commit01588585b172a1428ca2332514250be2f99490c7 (patch)
tree9fd7b3fa76dc4fb1a725c3173b6d1e7642299cf5 /source3/librpc
parentb7becc0b19f38ddb1fd52f354e8ce13df949471c (diff)
downloadsamba-01588585b172a1428ca2332514250be2f99490c7.tar.gz
samba-01588585b172a1428ca2332514250be2f99490c7.tar.bz2
samba-01588585b172a1428ca2332514250be2f99490c7.zip
s3:gse: return NT_STATUS_LOGON_FAILURE instead of NT_STATUS_INTERNAL_ERROR
This matches the behavior of ads_verify_ticket(). Note that ads_verify_ticket() calls krb5_to_nt_status(), but as a server it's likely to always returns NT_STATUS_UNSUCCESSFUL. ads_verify_ticket() maps NT_STATUS_UNSUCCESSFUL to NT_STATUS_LOGON_FAILURE. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 26 10:48:36 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/crypto/gse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/librpc/crypto/gse.c b/source3/librpc/crypto/gse.c
index 0e664b78ea..ec37073014 100644
--- a/source3/librpc/crypto/gse.c
+++ b/source3/librpc/crypto/gse.c
@@ -503,7 +503,7 @@ static NTSTATUS gse_get_server_auth_token(TALLOC_CTX *mem_ctx,
status = NT_STATUS_MORE_PROCESSING_REQUIRED;
break;
default:
- DEBUG(0, ("gss_init_sec_context failed with [%s]\n",
+ DEBUG(1, ("gss_init_sec_context failed with [%s]\n",
gse_errstr(talloc_tos(), gss_maj, gss_min)));
if (gse_ctx->gssapi_context) {
@@ -512,7 +512,7 @@ static NTSTATUS gse_get_server_auth_token(TALLOC_CTX *mem_ctx,
GSS_C_NO_BUFFER);
}
- status = NT_STATUS_INTERNAL_ERROR;
+ status = NT_STATUS_LOGON_FAILURE;
goto done;
}