Bug in SSPI AcceptSecurityContext?
- From: the_marshman <themarshman@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 06:31:05 -0700
We have been trying to gain a detailed understanding of what SSPI does when
authentication fails.
Take the scenario where the client initializes a context for a service with
the SPN of "userA@xxxxxxxxxx". However the service is actually running as
"userB@xxxxxxxxxx".
On the first call to AcceptSecurityContext, when the client's first blob is
passed in, SSPI returns SEC_I_CONTINUE_NEEDED. Shouldn't it return a failure
code since the ticket embedded in the security blob (token) is not encrypted
with a key it can understand?
We've also noticed the behaviour differs between an initial logon and once
the workstation has been locked and unlocked.
On an initial login:
AcquireCredentialsHandle (client side) - SEC_E_OK
AcquireCredentialsHandle (server side) - SEC_E_OK
InitializeSecurityContext - SEC_I_CONTINUE_NEEDED -> Send token to server
AcceptSecurityContext - SEC_I_CONTINUE_NEEDED -> Send token to client
InitializeSecurityContext - SEC_I_CONTINUE_NEEDED -> Send token to server
AcceptSecurityContext - SEC_I_CONTINUE_NEEDED -> Send token to client
InitializeSecurityContext - SEC_E_WRONG_PRINCIPAL
After locking/unlocking the workstation:
AcquireCredentialsHandle (client side) - SEC_E_OK
AcquireCredentialsHandle (server side) - SEC_E_OK
InitializeSecurityContext - SEC_I_CONTINUE_NEEDED -> Send token to server
AcceptSecurityContext - SEC_I_CONTINUE_NEEDED -> Send token to client
InitializeSecurityContext - SEC_E_LOGON_DENIED
Where is the behaviour different after the lock/unlock and why the extra
roundtrip in the initial logon case?
Any enlightment would be greatly appreciated given the black-box nature of
SSPI :)
.
- Follow-Ups:
- RE: Bug in SSPI AcceptSecurityContext?
- From: the_marshman
- RE: Bug in SSPI AcceptSecurityContext?
- Prev by Date: renaming domain controller
- Next by Date: RE: Bug in SSPI AcceptSecurityContext?
- Previous by thread: renaming domain controller
- Next by thread: RE: Bug in SSPI AcceptSecurityContext?
- Index(es):
Relevant Pages
|