]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: Add a token status icon to the NIM plug-in
authorAsanka Herath <asanka@secure-endpoints.com>
Mon, 19 Oct 2009 21:12:32 +0000 (17:12 -0400)
committerJeffrey Altman <jaltman|account-1000011@unknown>
Mon, 19 Oct 2009 21:16:50 +0000 (14:16 -0700)
commit6b0e4039c65262e68481ff43bc0cce531c5b39eb
tree0f006576f8244dd7df19b90e60f8d5f1b7d7570d
parentedbef134b7ee2abbd8e2b9639991e5906f3b8fb0
Windows: Add a token status icon to the NIM plug-in

The Network Identity Manager plug-in for OpenAFS replaces
afscreds.exe for token management.  However, unlike afscreds.exe,
the plug-in did not indicate the status of AFS tokens using an
icon in the notification area.

This patch adds a token status icon to the plug-in so that while
the plug-in is used, a familiar padlock icon in the notification
area will indicate the status of tokens as well as the OpenAFS
service.

There are four possible states indicated by the icons:

- No tokens: indicated by a padlock with a bright red 'X' beside
  it.

- At least one valid token: indicated by a normal padlock.

- Service is not running: indicated by a grayed out padlock with
  a black square beside it.

- Service error: indicated by a padlock broken in half.

The 'Service error' state means that the OpenAFS client service
is technically running (as reported by Windows), but is not
responding to requests.

In addition to the icon, hovering the mouse cursor over the icon
will show details about the current state (such as the list of
cells for which valid tokens exist) and the version of OpenAFS
running on the machine.

Reviewed-on: http://gerrit.openafs.org/683
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/netidmgr_plugin/NTMakefile
src/WINNT/netidmgr_plugin/afscred.h
src/WINNT/netidmgr_plugin/afsfuncs.c
src/WINNT/netidmgr_plugin/afsicon.c [new file with mode: 0644]
src/WINNT/netidmgr_plugin/afsplugin.c
src/WINNT/netidmgr_plugin/images/creds_broke.ico [new file with mode: 0644]
src/WINNT/netidmgr_plugin/images/creds_none.ico [new file with mode: 0644]
src/WINNT/netidmgr_plugin/images/creds_ok.ico [new file with mode: 0644]
src/WINNT/netidmgr_plugin/images/creds_stopped.ico [new file with mode: 0644]
src/WINNT/netidmgr_plugin/lang/en_us/langres.rc
src/WINNT/netidmgr_plugin/langres.h