SSPI in kernel

I’m trying to use SSPI in my driver.

Although the same code in user mode works fine,
when I make first call InitializeSecurityContext() from my driver,
it returns SEC_E_INVALID_TOKEN or causes exception.
when I send NtLmNegotiate message from AP to my driver,
AcceptSecurityContext() also returns SEC_E_INVALID_TOKEN.
I allocate buffers from virtual memory not pool in kernel mode.

InitializeSecurityContext() seems work only for NtLmChallenge,
AcceptSecurityContext() seems work only for NtLmAuthenticate.

Does anyone know how to initiate SSPI in kernel?

thanks,

mori


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com