Implementing TOTP Authentication and SAML SSO on a Single HCL Domino Server Using Two Separate URLs

You can run SAML single sign-on and TOTP on the same HCL Domino server, but only on two separate URLs. Here is the short version of how we set it up in a lab.

Why two URLs

HCL does not support TOTP together with SAML or Basic session authentication. The fix is one Web Site document per login method, each on its own host name .

URL A URL B
Example mail.example.com sso-mail.example.com
Login Password plus TOTP SAML through your identity provider
Session authentication Single Server or Multiple Servers SAML

SSO users skip Domino’s TOTP prompt, so enforce MFA at the identity provide r.

The setup in six steps

  1. DNS and certificates: Create an A record and a TLS certificate for each host name.

    We used Domino Certificate Manager with Let’s Encrypt, with the DNS name as the common name.

  2. SNI: Run set config ENABLE_SNI=1 so both sites share one IP. List the IP on one Web Site document only.

  3. SAML site (URL B): Create the Web SSO Configuration and idpcat.n sf.

    Add an IdP configuration document in the Disabled state, import the IdP metadata, then export the service provider XML and import it at the IdP.

  4. SAML Web Site document: Set Session authentication to SAML and map the SSO host name to it.

  5. TOTP site (URL A): Vault the users, create the MFA certificate with mfamgmt create trustcert, turn on TOTP in Configuration Settings, and add a Web Site document with TOTP enabled. Map$$LoginUserFormMFA in domcf g.nsf.

  6. Enable and test: Set the IdP configuration to Enabled, restart HTTP with tell http quit and load http, then test each URL in a private browse r window.

Sample IdP configurations:

URL - A for SAML SSO https://ssodom.mystdemo.info

URL B - for TOTP https://ssodom-totp.mystdemo.info

Four pitfalls

  • “Bad SAML Request” after IdP login: Domino 14.5.1 FP1 could not decrypt assertions using RSA-OAEP. Turn assertion encryption off at the IdP and keep the response signed.
  • TOTP site silently switched to SAML: The same IP was listed on both Web Site documents. Enable SNI and keep the IP on one site.
  • “No website found for IP”. The server sees its private IP. Add it to the Web Site and IdP host names.
  • Let’s Encrypt challenge fails. Open port 80. The site must not require login for the ACME challenge, which also matters at renewal.

Takeaway

Keep your existing TOTP URL as it is, add a second host name for SAML, and enforce MFA at the identity provider. Build the SAML site with its IdP configuration disabled and enable it last, so rollback is a si ngle change.

Reference:Configuring SAML in the Internet Site document · Enabling TOTP

3 Likes