retcode = TCL_ERROR;
goto finished;
}
- if ((retcode = parse_str(interp, argv[6], ¶ms->admin_lockfile)) != TCL_OK) {
- Tcl_AppendElement(interp, "while parsing admin_lockfile name");
- retcode = TCL_ERROR;
- goto finished;
- }
+ /* 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");
retcode = TCL_ERROR;
/*
* lib/kadm5/admin.h
*
- * Copyright 2001 by the Massachusetts Institute of Technology.
+ * Copyright 2001, 2008 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
char * dbname;
char * admin_dbname;
- char * admin_lockfile;
+
+ /* dummy fields to preserve abi for now */
+ char * admin_lockfile_was_here;
+
char * admin_keytab;
char * acl_file;
char * dict_file;
params.admin_dbname = NULL;
}
- if (params.mask & KADM5_CONFIG_ADBNAME) {
- if (asprintf(¶ms.admin_lockfile, "%s.lock", params.admin_dbname) > 0)
- params.mask |= KADM5_CONFIG_ADB_LOCKFILE;
- else
- params.admin_lockfile = NULL;
- }
-
+ params.admin_lockfile_was_here = NULL;
+ /* never set KADM5_CONFIG_ADB_LOCKFILE */
+
/* Get the value for the admin (policy) database lock file*/
hierarchy[2] = "admin_keytab";
if (params_in->mask & KADM5_CONFIG_ADMIN_KEYTAB) {
free(params->acl_file);
free(params->realm);
free(params->admin_dbname);
- free(params->admin_lockfile);
}
return(0);
}
#define REQUIRED_PARAMS (KADM5_CONFIG_REALM | KADM5_CONFIG_DBNAME | \
KADM5_CONFIG_ADBNAME | \
- KADM5_CONFIG_ADB_LOCKFILE | \
KADM5_CONFIG_ENCTYPE | \
KADM5_CONFIG_FLAGS | \
KADM5_CONFIG_MAX_LIFE | KADM5_CONFIG_MAX_RLIFE | \