Set up SAML 2.0 Single Sign-On between Keycloak (with an LDAP-backed realm) and the Syteca Management Tool.
This page configures SAML 2.0 authentication between Keycloak and the Syteca Management Tool, including synchronizing users from Active Directory via an LDAP provider in Keycloak. See SSO integration overview for what SSO integration does and the Management Tool settings shared across every provider.
To pass each user’s full distinguished name (DN) from LDAP into Keycloak — required later for the SAML assertion mapper:
1
Open the LDAP provider's mappers
Go to User Federation > [your LDAP provider] > Mappers > Add mapper.
2
Create the mapper
Parameter
Value
Name
ldap-dn-mapper
Mapper Type
user-attribute-ldap-mapper
User Model Attribute
dn
LDAP Attribute
distinguishedName
Read Only
On
Always Read Value From LDAP
On
Is Mandatory In LDAP
Off
3
Save
Save the mapper.
Confirm DN synchronization is working before continuing: open Users, select any user imported from LDAP, and check that the Details tab shows a dn attribute with user and domain information (for example CN=User Name,OU=Users,DC=domain,DC=com).
Using a self-signed certificate from the Management Tool
If you plan to use a self-signed certificate generated by the Management Tool (rather than one generated by Keycloak), complete these additional steps.
1
Export the Management Tool's certificate
In the Management Tool’s SSO settings, with the required fields already filled in, click Download signing certificate and save the file (for example, SsoCert.cer).
2
Convert the certificate to PEM format, if needed
If the certificate downloaded in DER format, convert it:
openssl x509 -inform DER -in SsoCert.cer -out SsoCert.pem
3
Import the certificate into Keycloak
Go to Clients > [your SAML client] > Keys, click Import key, and upload the SsoCert.pem file.