SSPI logon gives handle to existing logon session



Hello,

I have a problem with code that does a SSPI logon. I was able to
reproduce the problem using Keith Brown's sspi_workbench utility. Here
is what I observe :

I do the InitializeSecurityContext / AcceptSecurityContext dance on a
single machine (only tested with XP SP2 for now). The "client" end of
it uses the credientials from the current session, i.e. I send a NULL
for LUID parameter of AcquireCredentialsHandle. The "server" end uses
a administrator username and password, but I can use anything else and
I still get this problem :

When the authentication is completed, the server impersonates the
client, but the token I get refers to the same "client" logon session
I started with. I want a new logon session to be created.

If the client side uses a username password, a new logon session is
created.

Does anybody know why it works like that ? Is there a trick or
combination of flags that would allow me to force the creation of a
new logon session even when I am using the credentials from the
current session ?

.



Relevant Pages

  • Re: AppPool + secureConversation
    ... because it has a logon session. ... logon session(no additional interactive logon session exists), then, DPAPI ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Getting a list of logged on users and hosts
    ... Well technicaly all logon sessions are on local machine. ... On DC a network logon session _is_ created for every NT workstation logon. ... >> host of the user on whose behalf LsaLogonSession executes. ... > is always the user of the LSA that is responsible for "remote logon ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Getting a list of logged on users and hosts
    ... Well technicaly all logon sessions are on local machine. ... On DC a network logon session _is_ created for every NT workstation logon. ... >> host of the user on whose behalf LsaLogonSession executes. ... > is always the user of the LSA that is responsible for "remote logon ...
    (microsoft.public.win32.programmer.networks)
  • Re: Howto refresh IIS 6 Application pool identity credential info
    ... Logon session 00000000:0327e6da: ... Logon type: Batch ... DNS Domain: DEV.DIGANT.ANTWERPEN.LOCAL ...
    (microsoft.public.inetserver.iis.security)
  • Re: cant use "NET USE" at windows services
    ... now, everytime after rebooting, i need to logon as a domain user to the ... > Network logon sessions are tied to the windows logon session of the ... this session is private to the windows logon session of the ...
    (microsoft.public.dotnet.languages.csharp)