Article View: borland.public.cppbuilder.nativeapi
Article #11992Catching Password Changes in Gina Stubs
From: Mike Collins
Date: Sat, 03 Jan 2004 02:34
Date: Sat, 03 Jan 2004 02:34
55 lines
2894 bytes
2894 bytes
Hi all,
First off:
H A P P Y N E W Y E A R ! ! !
I know this question is quite specific to one area of development but I
assume others have been down this path. I'm developing a GINA stub
(relaying on to the next GINA in the chain) to allow logon authentication
using external hardware device above and beond smart cards.
I have a fairly robust implimentation that I'm debuging and testing at
present. However I'm face with a small problem. I need to detect when the
user has requested to change, and actually sucessfully changed there
password. In one situation I need to block there request and replace it
with my own ChangePassword dialog, in the other situation I need to simply
have access the the new password values. I can't seem to find any way to
detect or block a request to access the Change Password dialog.
Within the MSDN documentation it states that WlxLoggedOnSAS will return a
value of WLX_SAS_ACTION_PWD_CHANGED, but it never seems to return this.
My code is totally straightforward i.e.
int WINAPI WlxLoggedOnSAS(PVOID pWlxContext, DWORD dwSasType, PVOID
pReserved)
{
int iRtnCode = 0;
if
((MainStub)&&(MainStub->getNextGinaLoaded())&&(MainStub->nxtWlxLoggedOnSAS))
{
iRtnCode = MainStub->nxtWlxLoggedOnSAS(pWlxContext, dwSasType,
pReserved);
// For test purposes...
switch (iRtnCode)
{
case WLX_SAS_ACTION_PWD_CHANGED :
ShowMessage("WLX_SAS_ACTION_PWD_CHANGED returned");
break;
case WLX_SAS_ACTION_TASKLIST :
ShowMessage("WLX_SAS_ACTION_TASKLIST returned");
break;
....
}
}
return iRtnCode;
Does anyone have any ideas, I'm relying all calls on to the next GINA which
is usually msgina.dll and I'm using this to exposed and impliment most of
the user intereaction - I don't want to have to write a total GINA
replacement.
Many thanks in advance,
Mike C
Technical Details
Message-ID:
<3ff6277b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,49ea963c7e9adaca,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-02 18:39:42 PST Reply-To: "Mike Collins" <mikec@kr8.co.uk> From: "Mike Collins" <mikec@kr8.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Catching Password Changes in Gina Stubs Date: Sat, 3 Jan 2004 02:34:11 -0000 Lines: 57 Organization: kr8 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.2.78.34 Message-ID: <3ff6277b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073096571 81.2.78.34 (2 Jan 2004 18:22:51 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail