add HDBGET: that only supports get, iteration doesnt really make sense for the HDB keytab except when dumping

This commit is contained in:
Love Hornquist Astrand
2013-10-15 12:40:39 +02:00
parent d1eb0da071
commit 1d84562886
16 changed files with 56 additions and 20 deletions

View File

@@ -747,7 +747,7 @@ sigterm(int sig)
static const char *check_library = NULL;
static const char *check_function = NULL;
static getarg_strings policy_libraries = { 0, NULL };
static char sHDB[] = "HDB:";
static char sHDB[] = "HDBGET:";
static char *keytab_str = sHDB;
static char *realm_str;
static int version_flag;
@@ -831,7 +831,7 @@ main (int argc, char **argv)
} else
port = krb5_getportbyname (context, "kpasswd", "udp", KPASSWD_PORT);
ret = krb5_kt_register(context, &hdb_kt_ops);
ret = krb5_kt_register(context, &hdb_get_kt_ops);
if(ret)
krb5_err(context, 1, ret, "krb5_kt_register");