iprop: Fix default dbname choice on initial prop
commit0c1cd18e03f871d441bc4f8802ac2ad5c4ea579a
authorNicolas Williams <nico@twosigma.com>
Mon, 3 May 2021 20:00:36 +0000 (3 15:00 -0500)
committerNicolas Williams <nico@twosigma.com>
Mon, 3 May 2021 20:02:43 +0000 (3 15:02 -0500)
treea71880e69671cfab58affad0aca671b20dd54f0b
parente609e61f211f258fa39ae924ea83c2fe785b07ec
iprop: Fix default dbname choice on initial prop

If a DB does not already exist, ipropd-slave will use the compiled
default, which is not necessarily what is desired or configured in
`[kdc]`.

This change makes `hdb_default_db()` return the first dbanme in the
`[kdc]` configuration, falling back on `HDB_DEFAULT_DB`.

Also, this adds a `--database` option to `ipropd-slave`.
lib/hdb/dbinfo.c
lib/kadm5/iprop.8
lib/kadm5/ipropd_slave.c