svn rev #19864: trunk/src/windows/identity/ plugins/krb5/ ui/ uilib/

jaltman@MIT.EDU jaltman at MIT.EDU
Fri Aug 24 10:45:38 EDT 2007


Commit By: jaltman
Log Message: 
ticket: new 
subject: NIM: Add Identity Provider Pre-Process Message 
component: windows

The Network Identity Manager application does not provide a user
interface for identity specification.  That responsibility lies with
the identity provider.  Whenever a dialog needs to allow the user to
specify an identity, the identity provider has to populate the dialog
with the necessary controls so that the user can specify an identity.
In the case of the Kerberos v5 identity provider, the controls allow
the user to specify a username and a realm.

Once the dialog is populated, the application will dispatch window
messages to the identity provider.  The identity provider will handle
the window messages and notify the application when the selected
identity changes.

One deficiency of the API was that there was no message to notify the
identity provider that an identity selection has to be made
immediately.  When the user invokes the default action for a dialog by
hitting enter, the only message received by the dialog is a command
identifier of the default action.  In this case, the identity provider
will not get a chance to notify the application of the identity
selection.

This patch fixes the API deficiency by introducing a new message,
WMNC_IDENT_PREPROCESS, which the application can use to notify the 
identity provider that the dialog box is about to be processed.  In 
response, the identity provider can notify the application of the 
selected identity even if no other messages were received by the 
identity provider.




Changed Files:
U   trunk/src/windows/identity/apiversion.txt
U   trunk/src/windows/identity/plugins/krb5/krb5identpro.c
U   trunk/src/windows/identity/ui/cfg_identities_wnd.c
U   trunk/src/windows/identity/uilib/khnewcred.h



More information about the cvs-krb5 mailing list