diff options
author | Russ Allbery <rra@stanford.edu> | 2007-03-09 06:09:09 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-03-09 06:09:09 +0000 |
commit | d56a957e213ac1c19d90d4d11243ebc732712b6c (patch) | |
tree | b79683e4c305b5dfb66c9f4c9d16b5ce60020729 /kasetkey | |
parent | aa66e97a78ffc16186dd22f5556f66bc050106ce (diff) |
read_service_key wants the realm, not the cell.
Diffstat (limited to 'kasetkey')
-rw-r--r-- | kasetkey/kasetkey.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kasetkey/kasetkey.c b/kasetkey/kasetkey.c index df0eac3..9566dd4 100644 --- a/kasetkey/kasetkey.c +++ b/kasetkey/kasetkey.c @@ -235,11 +235,14 @@ authenticate(struct config *config, struct ktc_token *token) char name[MAXKTCNAMELEN]; char inst[MAXKTCNAMELEN]; char cell[MAXKTCNAMELEN]; + char realm[MAXKTCREALMLEN]; long code; struct ktc_encryptionKey key; /* Get the admin password one way or the other. */ parse_principal(config, config->admin, name, inst, cell); + if (ka_CellToRealm(cell, realm, &local) == KANOCELL) + die("unable to determine realm"); if (config->keyfile) { code = read_service_key(name, inst, cell, 0, config->keyfile, (char *) &key); |