Adapt to new name of HDB errors

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2686 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-01 16:14:22 +00:00
parent b99e1eba67
commit 9fb6bc7762
5 changed files with 5 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ doit2(HDB *db, hdb_entry *ent, int mod)
ret = db->fetch(context, db, ent);
switch(ret){
case KRB5_HDB_NOENTRY:
case HDB_ERR_NOENTRY:
if(mod){
fprintf(stderr, "Entry not found in database\n");
return;

View File

@@ -63,7 +63,7 @@ get_entry(int argc, char **argv)
ret = db->fetch(context, db, &ent);
switch(ret){
case KRB5_HDB_NOENTRY:
case HDB_ERR_NOENTRY:
fprintf(stderr, "Entry not found in database\n");
break;
case 0: {

View File

@@ -101,7 +101,7 @@ init(int argc, char **argv)
fprintf(stderr, "Entry already exists\n");
krb5_free_principal(context, ent.principal);
continue;
case KRB5_HDB_NOENTRY:
case HDB_ERR_NOENTRY:
break;
default:
warnx("hdb_fetch: %s", krb5_get_err_text(context, err));

View File

@@ -101,7 +101,7 @@ init(int argc, char **argv)
fprintf(stderr, "Entry already exists\n");
krb5_free_principal(context, ent.principal);
continue;
case KRB5_HDB_NOENTRY:
case HDB_ERR_NOENTRY:
break;
default:
warnx("hdb_fetch: %s", krb5_get_err_text(context, err));

View File

@@ -243,7 +243,7 @@ change (krb5_context context,
ret = db->fetch (context, db, &ent);
switch (ret) {
case KRB5_HDB_NOENTRY:
case HDB_ERR_NOENTRY:
syslog (LOG_ERR, "not found in database");
reply_priv (context, auth_context, s, addr, 2,
"entry not found in database");