+2001-06-20 Mitchell Berger <mitchb@mit.edu>
+
+ * lock-test.c: Changed to include server_internal.h instead of adb.h.
+ (main): kadm5_server_handle_rec added for use with the new
+ osa_adb_open_policy calling sequence.
+
2001-06-20 Mitchell Berger <mitchb@mit.edu>
* api.0/init.exp: Silly typo fixed.
#include <stdio.h>
#include <krb5.h>
#include <kadm5/admin.h>
-#include <kadm5/adb.h>
+#include <kadm5/server_internal.h>
char *whoami;
krb5_context context;
kadm5_config_params params;
krb5_error_code kret;
+ kadm5_server_handle_rec kadm5_handle;
whoami = argv[0];
exit(1);
}
- ret = osa_adb_open_policy(&policy_db, ¶ms);
+ /* XXX Horrible kludge. To get the generation number to increase for
+ * policy updates, the handle to the policy db needs a handle to the
+ * principal db so it can do a kdb_get_entry on the master principal.
+ * The only things it looks at are the context and params.
+ */
+ kadm5_handle.context = context;
+ kadm5_handle.params = params;
+ ret = osa_adb_open_policy(&policy_db, ¶ms, &kadm5_handle);
if (ret != OSA_ADB_OK) {
com_err(whoami, ret, "while opening database");
exit(1);