summaryrefslogtreecommitdiff
path: root/kasetkey/kasetkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'kasetkey/kasetkey.c')
-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';