Hi,
I want to implement a tomcat SSO frontend, which connects to a IIS/.NET Webservice with SSO credentials from user.
Worksflow: IE with Windows Integrated Authentication <http/spnego> TOMCAT/WAFFLE with Impersonate = true <http/spnego> IIS/.NET Webservice
The Solution works great, if no Authorization Header is set manually and IIS and TOMCAT share the same server. (eq. DEV Environment, tcp:80 IIS, tcp:8080 TOMCAT)
Unfortunatly this doesnt work in PROD Environment and results in http 401 error. (different server which is a must for seperation of duty)
So i started to add manually a Authorization Header and all attempts to fix the problem failed so far.
I'm fairly new to JAVA and WAFFLE/JNA and i think that i forget something.
Currently i'm not shure where to start further investigations.
The solution works, if no Authorization is set manually on the same server.
Why? And is there a chance to get arround this by config change?
If the Authorization is set manually, should i focus on serverContext or clientContext, or both?
I spent multiple hours to understand and implement the Client/Server handshake SSO from Thomas (Daniel).
http://tuhrig.de/a-windows-sso-for-java-on-client-and-server/
It would be great, if somebody can help me with this issue.
regards Guenter
Client connects to DEV TOMCAT Server which connects to DEV IIS/.NET Webservice (same server)
SPN: HTTP/<server DEV>.<domain>.inside
TOK: Negotiate TlRMTVNTUAABAAAAl7II4gcABwAyAAAACgAKACgAAAAGA4AlAAAAD1ZNQ01EV1QwMDFBVVNUUklB
LEN: 86
TLE: 76
USR: <domain>\<username>
IDY: Sspi$CtxtHandle(auto-allocated@0x16a15c70 (16 bytes)) {
Pointer dwLower@0=native@0x1a13e0
Pointer dwUpper@8=native@0xb94aae3250
}
Client connects to PROD TOMCAT Server which connects to PROD IIS/.NET Webservice (different server)
SPN: HTTP/<server DEV>.<domain>.inside
TOK: Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGA4AlAAAADw==
LEN: 66
TLE: 56
USR: <domain>\<username>
IDY: Sspi$CtxtHandle(auto-allocated@0x146fe750 (16 bytes)) {
Pointer dwLower@0=native@0x2ce8d0
Pointer dwUpper@8=native@0x5735205680
}