How to debug client side SAML/IWA?

Hi,

I configured SAML to use with our Notes client. So I followed all steps described in https://help.hcltechsw.com/domino/11.0.1/admin/secu_using_security_assertion_markup_language_saml_to_configure_federated_identity_authentication_t.html

My tests with Firefox and Chrome are fine, no prompt for credential anymore.

But with the Notes client, in the startup, I still have an issue because I was prompt to give my Windows credential and few seconds after I was prompt to give my Notes password.

I think something was wrong but I'm unable to figure what.

So my question is how to show a log and message about the authentication process in the Notes client side ? Or maybe my issue sound familiar to someone and gives me a solution :)

Hello @Olivier FRANCHET !

On document you followed to configure SAML, there is the information below:

SAML authentication at Notes client startup is referred to as Notes federated login.

Did you follow the steps described on document below to enable Notes Federated Login?

> Enabling Notes federated login

https://help.hcl-software.com/domino/11.0.1/admin/secu_using_a_security_settings_policy_to_assign_federated_login_to_clients_t.html

I hope it helps!

Please mark this question as answered and helpful if your issue is resolved.

Regards!​

Rodrigo de San Vicente

Staff Software Engineer

Collaborative Workflow Platform

Thanks for your answer.

I followed the documentation about Notes Federated Login. I checked it many times.

My main problem is to debug on client side and I didn't find any documentation about debug parameters for SAML on Notes client.

Actually, on client startup I have 3 forms prompted to me :

The 1st is the classic Notes Sign-in form (the one with location selection)

... few seconds passed and I had the popup 'Downloading ID file from the Vault to enable Notes federated login' ...

after this I had a sign-in form for my Windows credential, so I filled it with my username (my email) and my Windows password ... no error occured

And at last, after few seconds, was the Notes password prompt.

I checked those :

- My ID file is in the Vault.

- There are no errors in my Notes logs (none in security events, no more in miscellaneous events).

Any ideas ? Some debug parameters to unwear my blindfold ?

Thanks for your time.

When I ran into a similar problem before, the SPN registration was incorrect for the ADFS hostname.

At that time, I was starting ADFS with a domain account, but the SPN registration was ComputerName.
After deleting it, re-registering it, and checking Windows Authentication, I was able to start Notes without being asked for a password.

  • When ADFS is starting the service on Local System

> setspn -a HTTP/ADFS.DOMAIN.COM %ComputerName%

  • If ADFS is running a service with his domain account (Domain\ADFS)

> setspn -a HTTP/ADFS.DOMAIN.COM DOMAIN\ADFS

I don't know if it's the same case, but I hope it helps.

Thanks for your answer. The ADFS service is running with a domain account and the spn is well registered. I'm using Keberos auth with my browser to access Domino database, so that works fine.

Hello Oliver,

Please refer the below document on "Troubleshooting SAML authentication in Domino"

https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0029854

Thank you.

Regards

Shrikant J

Hi, thanks for your link.

I added this notes.ini settings :

; DEBUG
Client_Clock=1
Debug_Console=1
Debug_SAML=31
DEBUG_IDV_CONNECT=1
DEBUG_IDV_TRACE=1
DEBUG_IDV_TRUSTCERT=1

not sure about Debug_SAML because it's not clear in the documentation if this applied on both side or only on server side.

And I saw this messages :

[6178:0014-1510:IDVresyncViaDownload] 11/12/2020 12:07:44,56 IDVresyncViaDownload> Early out condition
[6178:0014-1510:IDVresyncViaDownload] 11/12/2020 12:07:44,56 IDVresyncViaDownload> IDFileUnlock
[6178:0014-1510:IDVresyncViaDownload] 11/12/2020 12:07:45,56 IDVresyncViaDownload> Finished
[6178:0002-4D7C] 11/12/2020 12:08:10,12 DeskClientOpenInt> Calling CreateProgramRCP pszRCPCmdLine[/authenticate "=C:\Program Files (x86)\HCL\Notes\notes.ini" -RPARAMS  -vmargs  -Dnotes.federatedlogin=true  -Dnotes.federatedloginlaunch=true ] bDeskProvisioningRestart [0]
[6178:0002-4D7C] 11/12/2020 12:08:10,17 DeskClientOpenInt> DESK_CHECKNOTES2ALIVE_TIMER started
[6178:0002-4D7C] 11/12/2020 12:08:10,17 DeskClientOpenInt> Executed CreateProgramRCP
[6178:0002-4D7C] 11/12/2020 12:08:34,56 PH3_SAML_Interceptor> Failed to retrieve SAML   assertion from IdP

The last message indicate a failure with my idp (my adfs service 4.0, on Windows Server 209). I'll dig with that.

Hello @Olivier FRANCHET !

Regarding the error message, see the KB below:

> KB0034047 - Notes Federated Login setup fails with Failed to retrieve SAML assertion from IdP

https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0034047

Please mark this question as answered and helpful if your issue is resolved.

Regards!​

Rodrigo de San Vicente

Staff Software Engineer

Collaborative Workflow Platform

I already found it :)

I'm checking each point now.

Hi,

None of the reason listed in the KB helped me.

I found the reason in AD FS Admin events log with this message :

Encountered error during federation passive request. 

Additional Data

Protocol Name:
Saml

Relying Party:
https://saml.mydomino.local

Exception details:
Microsoft.IdentityServer.Service.Policy.PolicyServer.Engine.AssertionConsumerServiceUrlDoesNotMatchPolicyException: MSIS3200: No AssertionConsumerService is configured on the relying party trust ‘https://saml.mydomino.local’ that is a prefix match of the AssertionConsumerService URL ‘https://saml.mydomino.loc/names.nsf?SAMLIDLogin’ specified by the request.
at Microsoft.IdentityServer.Service.SamlProtocol.EndpointResolver.LookupAssertionConsumerServiceByUrl(Collection`1 assertionConsumerServices, Uri requestedAssertionConsumerServiceUrl, String scopeIdentity)
at Microsoft.IdentityServer.Service.SamlProtocol.EndpointResolver.FindSamlResponseEndpointForAuthenticationRequest(Boolean artifactEnabled, AuthenticationRequest request, ScopeDescription scopeDescription)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolManager.GetResponseEndpointFromRequest(SamlRequest request, Boolean isUrlTranslationNeeded, ScopeDescription scope)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolManager.Issue(HttpSamlRequestMessage httpSamlRequestMessage, SecurityTokenElement onBehalfOf, String sessionState, String relayState, String& newSamlSession, String& samlpAuthenticationProvider, Boolean isUrlTranslationNeeded, WrappedHttpListenerContext context, Boolean isKmsiRequested)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolHandler.RequestBearerToken(WrappedHttpListenerContext context, HttpSamlRequestMessage httpSamlRequest, SecurityTokenElement onBehalfOf, String relyingPartyIdentifier, Boolean isKmsiRequested, Boolean isApplicationProxyTokenRequired, String& samlpSessionState, String& samlpAuthenticationProvider)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolHandler.BuildSignInResponseCoreWithSerializedToken(HttpSamlRequestMessage httpSamlRequest, WrappedHttpListenerContext context, String relyingPartyIdentifier, SecurityTokenElement signOnTokenElement, Boolean isKmsiRequested, Boolean isApplicationProxyTokenRequired)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolHandler.BuildSignInResponseCoreWithSecurityToken(SamlSignInContext context, SecurityToken securityToken, SecurityToken deviceSecurityToken)
at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolHandler.Process(ProtocolContext context)
at Microsoft.IdentityServer.Web.PassiveProtocolListener.ProcessProtocolRequest(ProtocolContext protocolContext, PassiveProtocolHandler protocolHandler)
at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)

... where I should configure an AssertionConsumerService for the relying party 'https://saml.mydomino.local'.

It wasn't obvious because I figured that the documentation explain to export the ServiceProvider xml and import it in ADFS, but that add relying party 'https://saml.mydomino.local/names.nsf?SAMLIDLogin' !

So now NFL and SAML work fine in my sandbox. Now I'll check if I can use Domino 11 and Notes 9.0.1 together with SAML and NFL.

Thanks for your time.

Here's a very helpful KB article for debugging the server and client when using NFL:

Debug settings for Notes Federated Login

https://support.hcltechsw.com/csm?id=kb_article&sysparm_article=KB0038983