2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afs/param.h>
18 CommandProc (as, arock)
20 struct cmd_syndesc *as;
22 afs_int32 code, ecode=0;
23 struct ktc_principal server;
26 if (as->parms[0].items) { /* A cell is provided */
27 for (itp=as->parms[0].items; itp; itp = itp->next) {
28 strcpy(server.cell, itp->data);
29 server.instance[0] = '\0';
30 strcpy(server.name, "afs");
31 code = ktc_ForgetToken(&server);
33 printf("unlog: could not discard tickets for cell %s, code %d\n",
35 ecode = code; /* return last error */
39 ecode = ktc_ForgetAllTokens ();
41 printf("unlog: could not discard tickets, code %d\n", ecode);
52 struct cmd_syndesc *ts;
56 WSAStartup(0x0101, &WSAjunk);
58 ts = cmd_CreateSyntax((char *) 0, CommandProc, 0, "Release Kerberos authentication");
59 cmd_AddParm(ts, "-cell", CMD_LIST, CMD_OPTIONAL, "cell name");
61 code = cmd_Dispatch(argc, argv);