Super so now I have the debug result but that didnt get me closer to the problem :(
Im gonna dump the result here(I removed the certificates etc. for safety reasons)
Mar 08 15:43:21 simplesamlphp DEBUG [de65c7106c] Session: 'saml2' not valid because we are not authenticated.
Mar 08 15:43:21 simplesamlphp INFO [de65c7106c] SAML2.0 - SP.initSSO: Accessing SAML 2.0 SP initSSO script
Mar 08 15:43:21 simplesamlphp DEBUG [de65c7106c] Sending message:
Mar 08 15:43:21 simplesamlphp DEBUG [de65c7106c] <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_ed5fdc6243a3b80d21839edf4373587815233f458f" Version="2.0" IssueInstant="2012-03-08T14:43:21Z" Destination="
https://saml.test-nemlog-in.dk/adfs/ls" AssertionConsumerServiceURL="
https://saml.tabulexnet.dk/simplesaml/saml2/sp/AssertionConsumerService.php" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST">
Mar 08 15:43:21 simplesamlphp DEBUG [de65c7106c] <saml:Issuer>
https://saml.tabulexnet.dk</saml:Issuer>
Mar 08 15:43:21 simplesamlphp DEBUG [de65c7106c] <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" AllowCreate="true"/>
Mar 08 15:43:21 simplesamlphp DEBUG [de65c7106c] </samlp:AuthnRequest>
Mar 08 15:43:21 simplesamlphp DEBUG [de65c7106c] Redirect to 1077 byte URL:
https://saml.test-nemlog-Mar 08 15:43:53 simplesamlphp INFO [de65c7106c] SAML2.0 - SP.AssertionConsumerService: Accessing SAML 2.0 SP endpoint AssertionConsumerService
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Received message:
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_c18cced9-1b1c-4a41-93c7-aab18ea242e0" Version="2.0" IssueInstant="2012-03-08T14:43:53.683Z" Destination="
https://saml.tabulexnet.dk/simplesaml/saml2/sp/AssertionConsumerService.php" Consent="urn:oasis:names:tc:SAML:2.0:consent:unspecified" InResponseTo="_ed5fdc6243a3b80d21839edf4373587815233f458f">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
https://test-nemlog-in.dk</Issuer>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <samlp:Status>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </samlp:Status>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <EncryptedAssertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <xenc:EncryptedData xmlns:xenc="
http://www.w3.org/2001/04/xmlenc#" Type="
http://www.w3.org/2001/04/xmlenc#Element">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <xenc:EncryptionMethod Algorithm="
http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <KeyInfo xmlns="
http://www.w3.org/2000/09/xmldsig#">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <e:EncryptedKey xmlns:e="
http://www.w3.org/2001/04/xmlenc#">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <e:EncryptionMethod Algorithm="
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <DigestMethod Algorithm="
http://www.w3.org/2000/09/xmldsig#sha1"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </e:EncryptionMethod>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <KeyInfo>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:X509Data xmlns:ds="
http://www.w3.org/2000/09/xmldsig#">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:X509IssuerSerial>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:X509IssuerName>CN=TDC OCES Systemtest CA II, O=TDC, C=DK</ds:X509IssuerName>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:X509SerialNumber>1077414972</ds:X509SerialNumber>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </ds:X509IssuerSerial>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </ds:X509Data>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </KeyInfo>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <e:CipherData>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <e:CipherValue></e:CipherValue>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </e:CipherData>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </e:EncryptedKey>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </KeyInfo>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <xenc:CipherData>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <xenc:CipherValue></xenc:CipherValue>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </xenc:CipherData>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </xenc:EncryptedData>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </EncryptedAssertion>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </samlp:Response>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Has 1 candidate keys for validation.
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Validation with key #0 failed without exception.
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Decrypted message:
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion" ID="_09d72120-e54f-4c5d-abe8-d30ae675614e" IssueInstant="2012-03-08T14:43:53.683Z" Version="2.0">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <Issuer>
https://test-nemlog-in.dk</Issuer>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:Signature xmlns:ds="
http://www.w3.org/2000/09/xmldsig#">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:SignedInfo>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:CanonicalizationMethod Algorithm="
http://www.w3.org/2001/10/xml-exc-c14n#"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:SignatureMethod Algorithm="
http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:Reference URI="#_09d72120-e54f-4c5d-abe8-d30ae675614e">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:Transforms>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:Transform Algorithm="
http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:Transform Algorithm="
http://www.w3.org/2001/10/xml-exc-c14n#"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </ds:Transforms>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:DigestMethod Algorithm="
http://www.w3.org/2000/09/xmldsig#sha1"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:DigestValue>w5H6h8mVQ8IIBTJH6h+36MzV9UI=</ds:DigestValue>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </ds:Reference>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </ds:SignedInfo>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:SignatureValue></ds:SignatureValue>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <KeyInfo xmlns="
http://www.w3.org/2000/09/xmldsig#">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:X509Data>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <ds:X509Certificate></ds:X509Certificate>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </ds:X509Data>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </KeyInfo>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </ds:Signature>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <Subject>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">+bKEQo2DS+2MI7nOl9eBbANbuWX4NgZnIu/YKQ/nat8=</NameID>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <SubjectConfirmationData InResponseTo="_ed5fdc6243a3b80d21839edf4373587815233f458f" NotOnOrAfter="2012-03-08T14:48:53.683Z" Recipient="
https://saml.tabulexnet.dk/simplesaml/saml2/sp/AssertionConsumerService.php"/>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </SubjectConfirmation>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </Subject>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <Conditions NotBefore="2012-03-08T14:43:53.683Z" NotOnOrAfter="2012-03-08T15:43:53.683Z">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <AudienceRestriction>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <Audience>
https://saml.tabulexnet.dk</Audience>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </AudienceRestriction>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </Conditions>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <AuthnStatement AuthnInstant="2012-03-08T14:43:43.916Z" SessionIndex="_09d72120-e54f-4c5d-abe8-d30ae675614e">
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <AuthnContext>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] <AuthnContextClassRef>element:urn:oasis:names:tc:SAML:2.0:ac:classes:X509</AuthnContextClassRef>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </AuthnContext>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </AuthnStatement>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] </Assertion>
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Decryption with key #0 succeeded.
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Has 1 candidate keys for validation.
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Validation with key #0 succeeded.
Mar 08 15:43:53 simplesamlphp INFO [de65c7106c] SAML2.0 - SP.AssertionConsumerService: Successful response from IdP
Mar 08 15:43:53 simplesamlphp NOTICE STAT [de65c7106c] saml20-sp-SSO
https://saml.tabulexnet.dk https://test-nemlog-in.dk NA
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Filter config for
https://test-nemlog-in.dk->
https://saml.tabulexnet.dk: array ( 0 => sspmod_core_Auth_Process_AttributeLimit::__set_state(array( 'allowedAttributes' => array ( ), 'isDefault' => false, 'priority' => 50, )), 1 => sspmod_core_Auth_Process_GenerateGroups::__set_state(array( 'generateGroupsFrom' => array ( 0 => 'eduPersonAffiliation', ), 'priority' => 60, )), 2 => sspmod_core_Auth_Process_AttributeAdd::__set_state(array( 'replace' => false, 'attributes' => array ( 'groups' => array ( 0 => 'users', 1 => 'members', ), ), 'priority' => 61, )), 3 => sspmod_core_Auth_Process_LanguageAdaptor::__set_state(array( 'langattr' => 'preferredLanguage', 'priority' => 90, )),)
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] GenerateGroups - attribute 'eduPersonAffiliation' not found.
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] LanguageAdaptor: Language in session was set [en]
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Session: doLogin("saml2")
Mar 08 15:43:53 simplesamlphp DEBUG [de65c7106c] Session: Valid session found with 'saml2'.