Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 10 Sep 2008 05:53:18 -0700 (PDT),    group: microsoft.public.platformsdk.security        back       


IIS IWA with IE started via smart card credentials.   
IIS 6 on Win 2k3
IE 6+ on XP Pro SP2

Hi, I'm starting a IE as the user on a smart card via
createprocesswithlogonw to attempt Integrated Windows Authentication
to a website.

The userid is the string version of the cert, the passwd is the PIN
and there is no domain.
IE starts fine.  TaskMgr shows it running as the correct user.
I then navigate to an IWA web site.  IE prompts me for credentials.
I've tried setting IE to automatically logon or logon with un and pw
via options in multiple sites.  None alleviate the issue.

If I start IE with runas via un / pw it can IWA me just fine.

Can anyone tell me what I need to do to get the smard card credential
invocation to work correctly?

Thanks.
date: Wed, 10 Sep 2008 05:53:18 -0700 (PDT)   author:   ceh

Re: IIS IWA with IE started via smart card credentials.   
On Sep 10, 8:53 am, ceh  wrote:
> IIS 6 on Win 2k3
> IE 6 on XP Pro SP2
>
> Hi, I'm starting a IE as the user on a smart card via
> createprocesswithlogonw to attempt Integrated Windows Authentication
> to a website.
>
> The userid is the string version of the cert, the passwd is the PIN
> and there is no domain.
> IE starts fine.  TaskMgr shows it running as the correct user.
> I then navigate to an IWA web site.  IE prompts me for credentials.
> I've tried setting IE to automatically logon or logon with un and pw
> via options in multiple sites.  None alleviate the issue.
>
> If I start IE with runas via un / pw it can IWA me just fine.
>
> Can anyone tell me what I need to do to get the smard card credential
> invocation to work correctly?
>
> Thanks.

Sorry, forgot to mention that if I log on to the OS via smart card and
then navigate to that site, IWA works fine.  IIS gets the info it
needs.

The problem is only when the OS logged on user and the user running IE
are different.
date: Wed, 10 Sep 2008 06:07:23 -0700 (PDT)   author:   ceh

Re: IIS IWA with IE started via smart card credentials.   
Hi ceh, I am trying to logon with a smartcard from an application as well, 
except I want to call LogonUser, not CreateProcessWithLogon.  Can you share 
how you are retrieving the certificate from the smartcard?  I would be very 
appreciative for any information you could give me regarding this.

As far as your particular problem, what logon flag are you using in your 
call to CreateProcessWithLogon()?

Instead of calling CreateProcessWithLogon(), have you tried calling 
LogonUser() with LOGON32_LOGON_INTERACTIVE, then passing the token to 
CreateProcessWithToken()?

Just some ideas.  I'm a complete n00b to the Windows Security SDK stuff.

Cheers,
Greg

"ceh" wrote:

> On Sep 10, 8:53 am, ceh  wrote:
> > IIS 6 on Win 2k3
> > IE 6+ on XP Pro SP2
> >
> > Hi, I'm starting a IE as the user on a smart card via
> > createprocesswithlogonw to attempt Integrated Windows Authentication
> > to a website.
> >
> > The userid is the string version of the cert, the passwd is the PIN
> > and there is no domain.
> > IE starts fine.  TaskMgr shows it running as the correct user.
> > I then navigate to an IWA web site.  IE prompts me for credentials.
> > I've tried setting IE to automatically logon or logon with un and pw
> > via options in multiple sites.  None alleviate the issue.
> >
> > If I start IE with runas via un / pw it can IWA me just fine.
> >
> > Can anyone tell me what I need to do to get the smard card credential
> > invocation to work correctly?
> >
> > Thanks.
> 
> Sorry, forgot to mention that if I log on to the OS via smart card and
> then navigate to that site, IWA works fine.  IIS gets the info it
> needs.
> 
> The problem is only when the OS logged on user and the user running IE
> are different.
>
date: Fri, 19 Sep 2008 10:46:01 -0700   author:   gregg1ep00

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us