retcode = TCL_ERROR;
goto finished;
}
- if ((retcode = parse_str(interp, argv[5], ¶ms->admin_dbname)) != TCL_OK) {
- Tcl_AppendElement(interp, "while parsing admin_dbname name");
- retcode = TCL_ERROR;
- goto finished;
- }
+ /* Ignore argv[5], which used to set the admin_dbname field. */
/* Ignore argv[6], which used to set the admin_lockfile field. */
if ((retcode = parse_str(interp, argv[7], ¶ms->admin_keytab)) != TCL_OK) {
Tcl_AppendElement(interp, "while parsing admin_keytab name");
params.mask |= KADM5_CONFIG_DBNAME;
}
- /*
- * admin database name and lockfile are now always derived from dbname
- */
- if (params.mask & KADM5_CONFIG_DBNAME) {
- if (asprintf(¶ms.admin_dbname, "%s.kadm5", params.dbname) > 0)
- params.mask |= KADM5_CONFIG_ADBNAME;
- else
- params.admin_dbname = NULL;
- }
-
+ params.admin_dbname_was_here = NULL;
params.admin_lockfile_was_here = NULL;
- /* never set KADM5_CONFIG_ADB_LOCKFILE */
+ /* never set KADM5_CONFIG_ADBNAME, KADM5_CONFIG_ADB_LOCKFILE */
/* Get the value for the admin (policy) database lock file*/
hierarchy[2] = "admin_keytab";
free(params->dict_file);
free(params->acl_file);
free(params->realm);
- free(params->admin_dbname);
}
return(0);
}