aboutsummaryrefslogtreecommitdiff
path: root/kasetkey
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-03-09 06:22:46 +0000
committerRuss Allbery <rra@stanford.edu>2007-03-09 06:22:46 +0000
commite27bf926cf8dc6b486f0e3c16f5de874fde48418 (patch)
tree1a83543938b711240ea367947297edc5a10866ca /kasetkey
parenta0ebebd71d205c213ac4fffbe93aaea6fb4b5c3f (diff)
Fix principal parsing to not always use the admin principal, which
caused us to delete our own principal.
Diffstat (limited to 'kasetkey')
-rw-r--r--kasetkey/kasetkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kasetkey/kasetkey.c b/kasetkey/kasetkey.c
index 949e6bb..b3cf9a2 100644
--- a/kasetkey/kasetkey.c
+++ b/kasetkey/kasetkey.c
@@ -145,11 +145,11 @@ parse_principal(struct config *config, const char *principal, char *name,
{
long code;
- code = ka_ParseLoginName(config->admin, name, inst, cell);
+ code = ka_ParseLoginName(principal, name, inst, cell);
if (config->debug)
printf("ka_ParseLoginName %ld\n", code);
if (code != 0)
- die("can't parse admin name");
+ die("can't parse principal %s", principal);
if (cell[0] == '\0') {
strncpy(cell, config->local_cell, MAXKTCREALMLEN - 1);
cell[MAXKTCREALMLEN - 1] = '\0';