use configuration for db-dir

This commit is contained in:
Love Hornquist Astrand
2012-10-01 09:50:46 -07:00
parent 703ae0e22d
commit d9aa1ff496

View File

@@ -250,6 +250,12 @@ hdb_free_dbinfo(krb5_context context, struct hdb_dbinfo **dbp)
const char *
hdb_db_dir(krb5_context context)
{
const char *p;
p = krb5_config_get_string(context, NULL, "hdb", "db-dir", NULL);
if (p)
return p;
return HDB_DB_DIR;
}