ENOENT -> HDB_ERR_NOENTRY (from Derrick Brashear)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11063 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-07-31 09:43:20 +00:00
parent e3ebc7b906
commit 47b7f07d33
2 changed files with 4 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ fetch_server (const Ticket *t,
kdc_log(0, kdc_log(0,
"Request to convert ticket from %s for unknown principal %s: %s", "Request to convert ticket from %s for unknown principal %s: %s",
from, *spn, krb5_get_err_text(context, ret)); from, *spn, krb5_get_err_text(context, ret));
if (ret == ENOENT) if (ret == HDB_ERR_NOENTRY)
ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN; ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN;
return ret; return ret;
} }

View File

@@ -1608,7 +1608,7 @@ tgs_rep2(KDC_REQ_BODY *b,
ret = db_fetch(p, &uu); ret = db_fetch(p, &uu);
krb5_free_principal(context, p); krb5_free_principal(context, p);
if(ret){ if(ret){
if (ret == ENOENT) if (ret == HDB_ERR_NOENTRY)
ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN; ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN;
goto out; goto out;
} }
@@ -1674,7 +1674,7 @@ tgs_rep2(KDC_REQ_BODY *b,
} }
kdc_log(0, "Server not found in database: %s: %s", spn, kdc_log(0, "Server not found in database: %s: %s", spn,
krb5_get_err_text(context, ret)); krb5_get_err_text(context, ret));
if (ret == ENOENT) if (ret == HDB_ERR_NOENTRY)
ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN; ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN;
goto out; goto out;
} }
@@ -1688,7 +1688,7 @@ tgs_rep2(KDC_REQ_BODY *b,
if(ret){ if(ret){
kdc_log(0, "Client not found in database: %s: %s", kdc_log(0, "Client not found in database: %s: %s",
cpn, krb5_get_err_text(context, ret)); cpn, krb5_get_err_text(context, ret));
if (ret == ENOENT) if (ret == HDB_ERR_NOENTRY)
ret = KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN; ret = KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN;
goto out; goto out;
} }