---
title: Retrieving LDAP connection details
slug: how-tos/jhGO-con
createdAt: 2025-09-02T15:10:23.077Z
---

## LDAP environment

LDAP can be set up in different environments, depending on whether you are running a cloud directory service or managing your own domain controllers.

The table below lists the most common LDAP environments. To retrieve the connection details for your environment, follow the according section.

| **Environment**                          | **LDAP**                | **Notes**                                  |
| ---------------------------------------- | ----------------------- | ------------------------------------------ |
| Microsoft Entra ID                       | via Microsoft Entra DS  | Enable Microsoft Entra DS                  |
| Google Workspace                         | via Secure LDAP service | Enable Secure LDAP in Google Admin console |
| Windows Domain Controller (Local server) | Native                  | Integrates with Windows server systems     |

## Microsoft Entra ID

Microsoft Entra ID (formerly Azure Active Directory) is Microsoft’s cloud-based identity and access management service. It supports LDAP via a **Microsoft Entra Domain services instance**.
This allows cloud and/or on-premises applications that depend on LDAP to work with Entra ID identities managed in Azure.

In the [Azure portal](https://portal.azure.com), search for `domain services` to open your `Microsoft Entra Domain services` instance.

![](https://api.archbee.com/api/optimize/5fbu7Arve_PpG6EAsx3L9-plJnoDdxeLLrC34HCxBej-20250903-151433.png)

:::hint{type="info"}
No Microsoft Entra Domain Services instance yet? Follow [Implement LDAP authentication with Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/architecture/auth-ldap#implement-ldap-authentication-with-microsoft-entra-id).
:::

### Retrieve the connection details for Microsoft Entra ID

1. Go to `Microsoft Entra Domain Services` instance > `Secure LDAP`: make sure `Secure LDAP` is enabled to use TLS encryption **(recommended)**.
   This will enable LDAPS on port 636 (in favour of LDAP on port 389 without Secure LDAP).
2. Is Factry Historian/Grafana located within the same (or peer) Azure VNet (Virtual Network) as the Microsoft Entra Domain Services instance?
   **Yes:** the LDAP host is similar as `mydomain.onmicrosoft.com` (replace `mydomain` with your domain mentioned in the Microsoft Entra DS instance).
   **No:** Go to `Microsoft Entra Domain Services` instance > `Secure LDAP`: enable `Allow Secure LDAP access over the internet` and go to `Microsoft Entra Domain Services` instance > `Properties` > `Secure LDAP external IP addresses`to get the LDAP host.

![](https://api.archbee.com/api/optimize/5fbu7Arve_PpG6EAsx3L9-ALbh-ZB3Qw9LH9GdZ5iLe-20250903-151710.png)

Use the table below to retrieve the remaining connection details.

| **Host**                             | `mydomain.onmicrosoft.com` or `mydomain.com` or an Azure external IP address.                                                                                                                                                                                                                                                                                        |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Port**                             | `636`: default for LDAPS **(recommended)**<br />`389`: default for LDAP                                                                                                                                                                                                                                                                                              |
| **TLS/SSL**                          | For port `636`:<br />• Enable `Use SSL`<br />• Disable `Start TLS`<br />• Disable `Skip verify SSL`<br />For port `389`:<br />• Disable `Use SSL`<br />• Enable `Start TLS`<br />• Enable `Skip verify SSL`<br />Skipping SSL verification accepts any certificate, so the connection is open to interception. Use only for testing.                                 |
| **BindUser DN and password**         | The Bind DNis typically the UPN of a user in the managed domain, e.g: [binduser@mydomain.com](mailto\:binduser@yourdomain.com)<br />The password is that user’s domain password. Service accounts are usually created specifically for this purpose.                                                                                                                 |
| **Root CA Certificate**              | None.                                                                                                                                                                                                                                                                                                                                                                |
| **Client certificate and key files** | None.                                                                                                                                                                                                                                                                                                                                                                |
| **Base DN**                          | Your Base DN in LDAP format. Examples:<br />`dc=mydomain,dc=com` or<br />`dc=mydomain,dc=onmicrosoft,dc=com`<br />Replace `mydomain` with your domain mentioned in the Microsoft Entra Domain Services instance: `mydomain.onmicrosoft.com`.<br />The longer and more specific the Base DN, the more you constrain the search to a smaller subtree of the directory. |
| **Search filter**                    | `(userPrincipalName=%s)`: If the Factry Historian/Grafana username is the Microsoft e-mail addres e.g.`john.doe@mycompany.com`<br />`(sAMAccountName=%s)`: If the Factry Historian/Grafana username is a shorter username e.g. `jdoe`                                                                                                                                |
| **Attributes (of each identity)**    | Uses the default attributes format.<br />• Email: `mail`<br />• FirstName: `givenName`<br />• LastName: `sn`<br />• Username: `sAMAccountName` (legacy system) or `userPrincipalName`<br />• MemberOf: `memberOf`                                                                                                                                                    |

## Google Workspace

Google Workspace provides [a Secure LDAP service](https://support.google.com/a/answer/9048516?hl=en\&ref_topic=9048334\&sjid=3419248506368808669-EU), which allows applications to authenticate users against identities managed in Google. With Secure LDAP, you can use Google Workspace as your centralized identity store for LDAP applications.

Go to the [Google Admin console](https://admin.google.com) to [Create a LDAP client](https://support.google.com/a/topic/9173976?hl=en\&ref_topic=9048334\&sjid=3419248506368808669-EU).

### Retrieve the connection details for Google Workspace

| **Host**                             | `LDAP.google.com`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Port**                             | `636`: default for LDAPS **(recommended)**<br />`389`: default for LDAP                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **TLS/SSL**                          | For port `636`:<br />• Enable `Use SSL`<br />• Disable `Start TLS`<br />• Disable `Skip verify SSL`<br />For port `389`:<br />• Disable `Use SSL`<br />• Enable `Start TLS`<br />• Enable `Skip verify SSL`<br />Skipping SSL verification accepts any certificate, so the connection is open to interception. Use only for testing.                                                                                                                                                                 |
| **BindUser DN and password**         | Generate a DN username and password in the Google Admin console via the Secure LDAP service. For instructions, see [Generate access credentials](https://support.google.com/a/answer/9048541?sjid=3419248506368808669-EU#generate-access-codes).                                                                                                                                                                                                                                                     |
| **Root CA Certificate**              | None.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Client certificate and key files** | Use the certificate and key file downloaded from the Google Admin console and put the client certificate and key file on the Historian server (requires command line access or ask Factry support).<br />The path to these files on the Historian server has to be filled in when configuring LDAP in Factry Historian or Grafana.<br />More information on managing the client certificate and key: [Troubleshooting LDAP authentication](docId\:wk5CkWzCILSVYy4xxz-lh)                             |
| **Base DN**                          | Your Base DN in LDAP format. For example:<br />`dc=MyDomain,dc=com` (Search the entire domain) or<br />`ou=Groups,dc=MyDomain,dc=com` (Search only within the Groups organizational unit) or<br />`cn=Engineering,ou=Groups,dc=MyDomain,dc=com` (Search only within the Engineering group entry)<br />Replace `MyDomain` with your domain mentioned in the Google Workspace.<br />The longer and more specific the Base DN, the more you constrain the search to a smaller subtree of the directory. |
| **Search filter**                    | `(mail=%s)`: If the Factry Historian/Grafana username is the Google e-mail addres e.g.`john.doe@mycompany.com`<br />`(uid=%s)`: If the Factry Historian/Grafana username is a shorter username e.g. `john.doe`                                                                                                                                                                                                                                                                                       |
| **Attributes (of each identity)**    | Uses the default attributes format.<br />• Email: `mail`<br />• FirstName: `givenName`<br />• LastName: `sn`<br />• Locale: `preferredLanguage`<br />• MemberOf: `memberOf`<br />• Username: By default not available (can be added via custom attributes in the Google Admin Console → Directory → Users → User information).<br />`uid` is typically used as the username.                                                                                                                         |

## Windows Domain Controller (Local server)

A **Domain Controller&#x20;**(local Windows server) supports LDAP against identitities stored in Active Directory. This setup is typically used for applications running in on-premises networks.

Go to [Enable LDAP over SSL with a third-party certification authority](https://learn.microsoft.com/en-us/troubleshoot/windows-server/active-directory/enable-ldap-over-ssl-3rd-certification-authority) to enable LDAP&#x53;**&#x20; (recommended)**.

Use the table below to retrieve the connection details.

| **Host**                             | FQDN or IP address of the Domain Controller.<br />Example: `dc01.mycompany.local`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Port**                             | `636`: default for LDAPS **(recommended)**<br />`389`: default for LDAP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **TLS/SSL**                          | For port `636`:<br />• Enable `Use SSL`<br />• Disable `Start TLS`<br />• Disable `Skip verify SSL`<br />For port `389`:<br />• Disable `Use SSL`<br />• Enable `Start TLS`<br />• Enable `Skip verify SSL`<br />Skipping SSL verification accepts any certificate, so the connection is open to interception. Use only for testing.                                                                                                                                                                                                                                                                                 |
| **BindUser DN and password**         | Use the User DN or UPN of a service account or user in AD. Example:<br />`cn=LDAP.service,ou=Service Accounts,dc=mycompany,dc=local`<br />or<br />`LDAP.service@mycompany.local`                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Root CA Certificate**              | If the Windows Domain controller uses a:<br />• `(publicly signed) trusted certificate`: No CA certificate needed.<br />• `self-signed certificate`: Provide the root CA certificate with which the Domain controller server certificate has been signed and put it on the Historian server (requires command line access or ask Factry support).<br />The path to this file on the Historian server has to be filled in when configuring LDAP in Factry Historian or Grafana.<br />More information on managing the client certificate and key: [Troubleshooting LDAP authentication](docId\:wk5CkWzCILSVYy4xxz-lh) |
| **Client certificate and key files** | `LDAP`: None.<br />`LDAPS`: Provide the certificate and key file downloaded from the domain controller LDAPS configuration and put them on the Historian server (requires command line access or ask Factry support).<br />The path to these files on the Historian server has to be filled in when configuring LDAP in Factry Historian or Grafana.<br />More information on managing the client certificate and key: [Troubleshooting LDAP authentication](docId\:wk5CkWzCILSVYy4xxz-lh)                                                                                                                           |
| **Base DN**                          | Root of your AD domain in DN format. Examples:<br />`dc=mydomain,dc=local` or<br />`ou=Groups,dc=mydomain,dc=local` or<br />`ou=Users,dc=mydomain,dc=local`<br />Replace `mydomain` with your domain.<br />The longer and more specific the Base DN, the more you constrain the search to a smaller subtree of the directory.                                                                                                                                                                                                                                                                                        |
| **Search filter**                    | `(userPrincipalName=%s)`: If the Factry Historian/Grafana username is the e-mail addres e.g.`john.doe@mycompany.com`<br />`(sAMAccountName=%s)`: If the Factry Historian/Grafana username is a shorter username e.g. `jdoe`                                                                                                                                                                                                                                                                                                                                                                                          |
| **Attributes (of each identity)**    | Uses the default attributes format.<br />• Email: `mail`<br />• FirstName: `givenName`<br />• LastName: `sn`<br />• Username: `sAMAccountName` (legacy system) or `userPrincipalName`<br />• MemberOf: `memberOf`<br />• Locale: By default not available (can be added via custom attributes).                                                                                                                                                                                                                                                                                                                      |
