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:
@@ -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;
|
||||
|
@@ -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: {
|
||||
|
@@ -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));
|
||||
|
@@ -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));
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user