summaryrefslogtreecommitdiff
path: root/lib/krb5_wrap
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-11-14 15:38:42 +0100
committerStefan Metzmacher <metze@samba.org>2020-02-10 16:32:38 +0000
commit765b0eac63ef508c66f4e615882d8eb5bb7ae929 (patch)
treeb73c61960d7e8ed69cc92f951ea08b40ec2ea08b /lib/krb5_wrap
parentc403fa1a7fe6725957aab7e8039877d1becad8bf (diff)
downloadsamba-765b0eac63ef508c66f4e615882d8eb5bb7ae929.tar.gz
krb5_wrap: map KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN to NT_STATUS_INVALID_COMPUTER_NAME
KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN is already mapped to NT_STATUS_INVALID_ACCOUNT_NAME and we need a way to distinguish between client and server principal at the NTSTATUS layer too. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r--lib/krb5_wrap/krb5_errs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/krb5_wrap/krb5_errs.c b/lib/krb5_wrap/krb5_errs.c
index 37428defe1e..0cf79023bce 100644
--- a/lib/krb5_wrap/krb5_errs.c
+++ b/lib/krb5_wrap/krb5_errs.c
@@ -41,7 +41,7 @@ static const struct {
{KRB5KDC_ERR_POLICY, NT_STATUS_INVALID_WORKSTATION},
{KRB5KDC_ERR_PREAUTH_FAILED, NT_STATUS_LOGON_FAILURE},
{KRB5KDC_ERR_SERVICE_REVOKED, NT_STATUS_ACCESS_DENIED},
- {KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN, NT_STATUS_INVALID_ACCOUNT_NAME},
+ {KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN, NT_STATUS_INVALID_COMPUTER_NAME},
{KRB5KDC_ERR_SUMTYPE_NOSUPP, NT_STATUS_LOGON_FAILURE},
{KRB5KDC_ERR_TGT_REVOKED, NT_STATUS_ACCESS_DENIED},
{KRB5_KDC_UNREACH, NT_STATUS_NO_LOGON_SERVERS},