From d9aa1ff496712251b42aad3e840f747fd427cea0 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 1 Oct 2012 09:50:46 -0700 Subject: [PATCH] use configuration for db-dir --- lib/hdb/dbinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/hdb/dbinfo.c b/lib/hdb/dbinfo.c index a85e3fc50..bead7170f 100644 --- a/lib/hdb/dbinfo.c +++ b/lib/hdb/dbinfo.c @@ -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; }