If kadmind is run with the -proponly flag, check that iprop_enable is
set and output a reasonable error message if it isn't. Otherwise we
see the confusing message "Invalid argument while initializing
network".
[ghudson@mit.edu: rewrote commit message; edited error message]
ticket: 8673 (new)
fail_to_start(0, _("Missing required realm configuration"));
if (!(params.mask & KADM5_CONFIG_ACL_FILE))
fail_to_start(0, _("Missing required ACL file configuration"));
+ if (proponly && !params.iprop_enabled) {
+ fail_to_start(0, _("-proponly can only be used when "
+ "iprop_enable is true"));
+ }
ret = setup_loop(¶ms, proponly, &vctx);
if (ret)