Back to ITRS Analytics FAQ

Internal documentation only

This page has been marked as draft.

ITRS Analytics (Obcerv)- How to connect Obcerv/Keycloak to Active Directory (AD)

This article may be outdated. There is an ongoing ticket https://itrs.zendesk.com/agent/tickets/373169 and the contents will need to be reviewed.

To be able to connect KeyCloak to Active Directory, you need to access the Keycloak interface.

It is accessible via https://www.obcerv.local/auth (adjusted to your actual DNS name).

ITRS Analytics (Obcerv)- How to connect Obcerv/Keycloak to Active Directory (AD).

ITRS Analytics (Obcerv)- How to connect Obcerv/Keycloak to Active Directory (AD).

ITRS Analytics (Obcerv)- How to connect Obcerv/Keycloak to Active Directory (AD).

Settings for Active Directory/AD Copied

ITRS Analytics (Obcerv)- How to connect Obcerv/Keycloak to Active Directory (AD).

Attribute mappers Copied

By default, Keycloak does not copy all attributes it sees in Active Directory. Use the Mappers tab in the user federation admin section to view mappings.

Default attribute mappings:

To use a value other than CN for logging in, modify the username LDAP Mapper. Set User Model Attribute to the name of the Active Directory field that contains the user name you want to use.

You can set it to whatever attribute is used for user logins in your environment. Examples:

Note on “PKIX Path Building Failed” Copied

Active Directory servers may be secured using an organization-managed root certificate rather than a global certificate authority. The error is caused by Keycloak not recognizing the certificate.

To install the certificate into Keycloak, do the following:

keytool -import -noprompt -trustcacerts -alias FQDN-OF-LDAP-SERVER -file "\Path\to\www.example.com.crt" -keystore cacerts

Hint - LDAPS

If you use LDAPS, you have to import the following certificates into your Java Key Store:

keytool -import -noprompt -trustcacerts -alias <choose-an-alias> -file <root-certificate-file> -keystore <JRE_HOME>\lib\security\cacerts files -storepass changeit
keytool -import -noprompt -trustcerts -alias <choose-an-alias> -file <root-certificate-file> -keystore <JAVA_HOME>/lib/security/cacerts -storepass changeit
["Geneos"] ["FAQ"]

Was this topic helpful?