PC Review Forums Newsgroups Windows XP Windows XP Security GINA for Smart Card logon

Reply

GINA for Smart Card logon

 
Thread Tools Rate Thread
Old 27-09-2007, 03:23 AM   #1
=?Utf-8?B?ZHh1bGVl?=
Guest
 
Posts: n/a
Default GINA for Smart Card logon


Recently, I am writing a GINA for Smart Card logon.But I have a problem.

First, I installed PC/SC driver and invoked a function in WlxInitialize
like this
WlxSetOption(g_hWlx, WLX_OPTION_USE_SMART_CARD, 1, NULL);When I remove the
smart card,winlogon looks as if it can not receive the WLX_SAS_TYPE_SC_REMOVE
event.I do not known why. I think windows should send this message to
winlogon.At last, I create a thread and try to get the message
WM_DEVICECHANGE. If it occurs, I will invoke the funtion WlxSasNotify.So I
can receive the WLX_SAS_TYPE_SC_REMOVE event.But there is another problem.My
computer may stop at the winlogon desktop and the default desktop may be
hidden.

Who can give me some solution or suggestion ? And my os is windows xp sp2
Thanks very much.
  Reply With Quote
Old 27-09-2007, 05:27 AM   #2
Steve Riley [MSFT]
Guest
 
Posts: n/a
Default Re: GINA for Smart Card logon

Winlogon already supports smartcards. Why are you writing a new GINA? And
you do know the GINA is gone in Windows Vista/Server 2008, right?

--
Steve Riley
steve.riley@microsoft.com
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


"dxulee" <dxulee@discussions.microsoft.com> wrote in message
news:2F78DBF8-A5B7-4052-BDFE-1C3BC5C5674E@microsoft.com...
> Recently, I am writing a GINA for Smart Card logon.But I have a problem.
>
> First, I installed PC/SC driver and invoked a function in WlxInitialize
> like this
> WlxSetOption(g_hWlx, WLX_OPTION_USE_SMART_CARD, 1, NULL);When I remove the
> smart card,winlogon looks as if it can not receive the
> WLX_SAS_TYPE_SC_REMOVE
> event.I do not known why. I think windows should send this message to
> winlogon.At last, I create a thread and try to get the message
> WM_DEVICECHANGE. If it occurs, I will invoke the funtion WlxSasNotify.So I
> can receive the WLX_SAS_TYPE_SC_REMOVE event.But there is another
> problem.My
> computer may stop at the winlogon desktop and the default desktop may be
> hidden.
>
> Who can give me some solution or suggestion ? And my os is windows xp sp2
> Thanks very much.


  Reply With Quote
Old 27-09-2007, 05:43 AM   #3
=?Utf-8?B?ZHh1bGVl?=
Guest
 
Posts: n/a
Default Re: GINA for Smart Card logon

You are right. But Windows XP will exist for a long time.So my company need
to support it.
Winlogon supports smartcards.But how can I receive WLX_SAS_TYPE_SC_REMOVE
in the funtion WlxLoggedOnSAS.When I remove smart cards, Winlogon does not
response to the action.


"Steve Riley [MSFT]" wrote:

> Winlogon already supports smartcards. Why are you writing a new GINA? And
> you do know the GINA is gone in Windows Vista/Server 2008, right?
>
> --
> Steve Riley
> steve.riley@microsoft.com
> http://blogs.technet.com/steriley
> http://www.protectyourwindowsnetwork.com
>
>
> "dxulee" <dxulee@discussions.microsoft.com> wrote in message
> news:2F78DBF8-A5B7-4052-BDFE-1C3BC5C5674E@microsoft.com...
> > Recently, I am writing a GINA for Smart Card logon.But I have a problem.
> >
> > First, I installed PC/SC driver and invoked a function in WlxInitialize
> > like this
> > WlxSetOption(g_hWlx, WLX_OPTION_USE_SMART_CARD, 1, NULL);When I remove the
> > smart card,winlogon looks as if it can not receive the
> > WLX_SAS_TYPE_SC_REMOVE
> > event.I do not known why. I think windows should send this message to
> > winlogon.At last, I create a thread and try to get the message
> > WM_DEVICECHANGE. If it occurs, I will invoke the funtion WlxSasNotify.So I
> > can receive the WLX_SAS_TYPE_SC_REMOVE event.But there is another
> > problem.My
> > computer may stop at the winlogon desktop and the default desktop may be
> > hidden.
> >
> > Who can give me some solution or suggestion ? And my os is windows xp sp2
> > Thanks very much.

>
>

  Reply With Quote
Old 27-09-2007, 01:44 PM   #4
=?Utf-8?B?dA==?=
Guest
 
Posts: n/a
Default Re: GINA for Smart Card logon



"Steve Riley [MSFT]" wrote:

> Winlogon already supports smartcards. Why are you writing a new GINA? And
> you do know the GINA is gone in Windows Vista/Server 2008, right?
>
> --
> Steve Riley
> steve.riley@microsoft.com
> http://blogs.technet.com/steriley
> http://www.protectyourwindowsnetwork.com
>
>
> "dxulee" <dxulee@discussions.microsoft.com> wrote in message
> news:2F78DBF8-A5B7-4052-BDFE-1C3BC5C5674E@microsoft.com...
> > Recently, I am writing a GINA for Smart Card logon.But I have a problem.
> >
> > First, I installed PC/SC driver and invoked a function in WlxInitialize
> > like this
> > WlxSetOption(g_hWlx, WLX_OPTION_USE_SMART_CARD, 1, NULL);When I remove the
> > smart card,winlogon looks as if it can not receive the
> > WLX_SAS_TYPE_SC_REMOVE
> > event.I do not known why. I think windows should send this message to
> > winlogon.At last, I create a thread and try to get the message
> > WM_DEVICECHANGE. If it occurs, I will invoke the funtion WlxSasNotify.So I
> > can receive the WLX_SAS_TYPE_SC_REMOVE event.But there is another
> > problem.My
> > computer may stop at the winlogon desktop and the default desktop may be
> > hidden.
> >
> > Who can give me some solution or suggestion ? And my os is windows xp sp2
> > Thanks very much.

>
>

  Reply With Quote
Old 27-09-2007, 07:40 PM   #5
Steve Riley [MSFT]
Guest
 
Posts: n/a
Default Re: GINA for Smart Card logon

Are you trying to control what happens when people remove their smart cards
after logging on? We've already got group policy for that:

Computer Configuration | Windows Settings | Security Settings | Local
Policies | Security Options |
Interactive logon: Smart card removal behavior = No action, Lock
workstation, or Force logoff


--
Steve Riley
steve.riley@microsoft.com
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


"dxulee" <dxulee@discussions.microsoft.com> wrote in message
news:B88C7298-BCBF-467D-AE04-D4458393C124@microsoft.com...
> You are right. But Windows XP will exist for a long time.So my company
> need
> to support it.
> Winlogon supports smartcards.But how can I receive WLX_SAS_TYPE_SC_REMOVE
> in the funtion WlxLoggedOnSAS.When I remove smart cards, Winlogon does not
> response to the action.
>
>
> "Steve Riley [MSFT]" wrote:
>
>> Winlogon already supports smartcards. Why are you writing a new GINA? And
>> you do know the GINA is gone in Windows Vista/Server 2008, right?
>>
>> --
>> Steve Riley
>> steve.riley@microsoft.com
>> http://blogs.technet.com/steriley
>> http://www.protectyourwindowsnetwork.com
>>
>>
>> "dxulee" <dxulee@discussions.microsoft.com> wrote in message
>> news:2F78DBF8-A5B7-4052-BDFE-1C3BC5C5674E@microsoft.com...
>> > Recently, I am writing a GINA for Smart Card logon.But I have a
>> > problem.
>> >
>> > First, I installed PC/SC driver and invoked a function in
>> > WlxInitialize
>> > like this
>> > WlxSetOption(g_hWlx, WLX_OPTION_USE_SMART_CARD, 1, NULL);When I remove
>> > the
>> > smart card,winlogon looks as if it can not receive the
>> > WLX_SAS_TYPE_SC_REMOVE
>> > event.I do not known why. I think windows should send this message to
>> > winlogon.At last, I create a thread and try to get the message
>> > WM_DEVICECHANGE. If it occurs, I will invoke the funtion
>> > WlxSasNotify.So I
>> > can receive the WLX_SAS_TYPE_SC_REMOVE event.But there is another
>> > problem.My
>> > computer may stop at the winlogon desktop and the default desktop may
>> > be
>> > hidden.
>> >
>> > Who can give me some solution or suggestion ? And my os is windows xp
>> > sp2
>> > Thanks very much.

>>
>>

  Reply With Quote
Old 29-09-2007, 12:01 PM   #6
=?Utf-8?B?dA==?=
Guest
 
Posts: n/a
Default Re: GINA for Smart Card logon



"Steve Riley [MSFT]" wrote:

> Winlogon already supports smartcards. Why are you writing a new GINA? And
> you do know the GINA is gone in Windows Vista/Server 2008, right?
>
> --
> Steve Riley
> steve.riley@microsoft.com
> http://blogs.technet.com/steriley
> http://www.protectyourwindowsnetwork.com
>
>
> "dxulee" <dxulee@discussions.microsoft.com> wrote in message
> news:2F78DBF8-A5B7-4052-BDFE-1C3BC5C5674E@microsoft.com...
> > Recently, I am writing a GINA for Smart Card logon.But I have a problem.
> >
> > First, I installed PC/SC driver and invoked a function in WlxInitialize
> > like this
> > WlxSetOption(g_hWlx, WLX_OPTION_USE_SMART_CARD, 1, NULL);When I remove the
> > smart card,winlogon looks as if it can not receive the
> > WLX_SAS_TYPE_SC_REMOVE
> > event.I do not known why. I think windows should send this message to
> > winlogon.At last, I create a thread and try to get the message
> > WM_DEVICECHANGE. If it occurs, I will invoke the funtion WlxSasNotify.So I
> > can receive the WLX_SAS_TYPE_SC_REMOVE event.But there is another
> > problem.My
> > computer may stop at the winlogon desktop and the default desktop may be
> > hidden.
> >
> > Who can give me some solution or suggestion ? And my os is windows xp sp2
> > Thanks very much.

>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off