WindowsSecurityContextImpl not authenticating

Dec 17, 2012 at 5:20 PM

Hi,

I am using Waffle to authenticate users when they login. Now I have 2 versions of the code - in my branch version the authentication works fine, however in the trunk version it throws the following error:

 

com.sun.jna.platform.win32.Win32Exception: The token supplied to the function is invalid

 

I've inspected the 2 versions of the code and they have identical code around this area. When the inspecting the WindowsSecurityContextImpl there is a slight difference - it appears as though the credentials field is using 8 bytes in trunk but 16 bytes in branch.

 

This is the toString of the credentials field in trunk:

Sspi$CtxtHandle(allocated@0x18aedf50 (8 bytes)) {
  Pointer dwLower@0=null
  Pointer dwUpper@4=null
}
memory dump
[00000000]
[00000000]

 

and in branch:

Sspi$CredHandle(allocated@0xa588110 (16 bytes)) {
  Pointer dwLower@0=native@0x243880
  Pointer dwUpper@8=native@0x25dfcd0
}

 

If anyone can point me in the right direction of what is going wrong here that would be much appreciated.

 

Thanks,

Coordinator
Dec 17, 2012 at 5:23 PM

 

WAFFLE HAS MOVED TO GITHUB
WAFFLE HAS MOVED TO GITHUB

WAFFLE HAS MOVED TO GITHUB
WAFFLE HAS MOVED TO GITHUB

 

WAFFLE HAS MOVED TO GITHUB
WAFFLE HAS MOVED TO GITHUB

 

WAFFLE HAS MOVED TO GITHUB
WAFFLE HAS MOVED TO GITHUB

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

 

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

 

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

 

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

We're going to give up the discussions here and move to THIS GOOGLE GROUP, please subscribe and stop posting questions here.

 

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

 

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

 

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.

 

DONT POST HERE - GO HERE. The new home is http://dblock.github.com/waffle/.