diff options
| author | Russ Allbery <rra@stanford.edu> | 2007-09-25 15:32:56 +0000 | 
|---|---|---|
| committer | Russ Allbery <rra@stanford.edu> | 2007-09-25 15:32:56 +0000 | 
| commit | 5b0ac97910f3d8c6e5e74a9a8032cd9c01cb758a (patch) | |
| tree | 7c0757e9ccc4a2fa137d6fa67bc3935ec74a2b0a | |
| parent | 22325c2e892fbff05d642c095d645045f2a5e0b2 (diff) | |
Determine the cell of our target principal before we open an authserver
connection and use that cell as the authserver cell.
| -rw-r--r-- | kasetkey/kasetkey.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/kasetkey/kasetkey.c b/kasetkey/kasetkey.c index 2210866..95e0a3f 100644 --- a/kasetkey/kasetkey.c +++ b/kasetkey/kasetkey.c @@ -298,6 +298,7 @@ delete_principal(struct config *config)      /* Make connection to AuthServer. */      authenticate(config, &token); +    parse_principal(config, config->delete, name, inst, cell);      code = ka_AuthServerConn(cell, KA_MAINTENANCE_SERVICE, &token, &conn);      if (config->debug)          printf("ka_AuthServerConn %ld\n", code); @@ -305,7 +306,6 @@ delete_principal(struct config *config)          die("can't make connection to auth server");      /* Delete the user. */ -    parse_principal(config, config->delete, name, inst, cell);      code = ubik_Call(KAM_DeleteUser, conn, 0, name, inst);      if (config->debug)          printf("ubik_Call KAM_DeleteUser %ld\n", code); @@ -336,6 +336,7 @@ generate_srvtab(struct config *config)      /* Make connection to AuthServer. */      authenticate(config, &token); +    parse_principal(config, config->service, name, inst, cell);      code = ka_AuthServerConn(cell, KA_MAINTENANCE_SERVICE, &token, &conn);      if (config->debug)          printf("ka_AuthServerConn %ld\n", code); @@ -343,7 +344,6 @@ generate_srvtab(struct config *config)          die("can't make connection to auth server");      /* Get the key for the principal we're creating. */ -    parse_principal(config, config->service, name, inst, cell);      if (config->k5srvtab != NULL) {           char buffer[SNAME_SZ * 4];          char *p;  | 
