Skip to main content
  • Latest version: v2.1.1
  • Compatible with Fusion version: 5.9.1 and later
The LDAP ACLs V2 connector is useful in environments where content sources such as SharePoint or Google Cloud Storage have ACLs that reference LDAP group or user identities. To enable Fusion to enforce those ACLs at query time, the LDAP ACLs V2 connector first connects to an LDAP directory such as Active Directory, OpenLDAP, or another LDAP-compliant server to ingest user and group membership information. The connector then maps those users and groups to document-level ACLs indexed by other connectors for security trimming.
Verify your connector versionThis connector depends on specific Fusion versions. See the following table for the required versions:For connector downloads, see Download Connectors.
Pod limitThe LDAP ACLs V2 connector does not support running multiple instances. Don’t run the connector on more than one pod.

Prerequisites

Perform these prerequisites to ensure the connector can reliably access, crawl, and index your data. Proper setup helps avoid configuration or permission errors, so use the following guidelines to keep your content available for discovery and search in Fusion. The LDAP server must use a supported authentication method:
  • Simple bind with a username and password.
  • (Optional) Anonymous bind for open LDAP servers, but this is discouraged in production environments for security reasons.
The LDAP access requires a bind DN (Distinguished Name) with permissions to read user and group entries:
  • For users: Have access for uid, cn, sAMAccountName, or an equivalent for the unique user ID.
  • For groups: Have access for cn or equivalent for group ID, plus member, or uniqueMember for users or subgroups assigned to that group.
If you are using Azure AD, the following API permissions are required under Microsoft Graph:
  • User.Read.All to read profile properties and group memberships.
  • GroupMember.Read.All to read memberships and basic group properties.

Remote mode prerequisites (optional)

If running in remote mode, there are additional considerations:
  • Ensure your network allows outbound HTTP/2 traffic from the remote host to the Fusion gRPC endpoint.
  • You need a Fusion user account with the remote-connectors or admin role to authenticate the connector.
  • If the standalone host doesn’t trust Fusion’s TLS cert, point it to your truststore file path.

Authentication

Setting up the correct authentication according to your organization’s data governance policies helps keep sensitive data secure while allowing authorized indexing. You will need to enter the following in Fusion:
  • LDAP host and port.
  • Bind DN username for the Login User Principal field in Fusion.
  • Bind password for the Login Password in Fusion.
  • Base DN, such as dc=example,dc=com.
  • User and group filters are prepopulated and you can adjust these as needed.
  • If crawling Azure AD, enter the Azure credentials in the Azure AD Properties section.
Once all necessary fields are entered, save your connector configuration and click Test Connection in the Fusion UI to verify authentication. If successful, the connector will be able to do the following:
  • Bind to the LDAP server.
  • Search users and groups.
  • Fetch ACL data for security trimming.

Full recrawls

Starting in Fusion 5.7, subsequent crawls work differently with the LDAP ACLs V2 connector than other connectors. Crawls follow this process:
  1. Every time the connector crawl runs, all documents are indexed.
  2. Each document is assigned a new field, _lw_job_id_s.
  3. The connector job assigns the jobID value to this field.
  4. When the crawl finishes, the job deletes documents that do not have the latest jobID value.

Remote connectors

You can configure the LDAP ACLs V2 connector (v2.0.0 and later) to running remotely in Fusion versions 5.9.1 and later. For more information, see Configure remote V2 connectors.

Security trimming

Starting in Fusion 5.9, you can configure the LDAP ACLs V2 connector with the SharePoint Optimized V2 connector to support security trimming. Starting in Fusion 5.18.0, you can use a sidecar collection to store ACL documents separately from your content collection.
You can configure the SharePoint Optimized V2 connector to use security trimming so that query results are filtered based on the roles and permissions assigned to the user.To configure security trimming, you’ll need to set up and run a SharePoint Optimized V2 datasource, an LDAP ACLs V2 datasource, and a Graph Security Trimming query stage in the same app and collection.When a crawl is run, the SharePoint Optimized V2 and LDAP ACLs V2 datasources must index the content documents and ACL documents to the same collection.
  • ACL documents: Users, Groups, and their Role Assignments.
  • Content documents: The SharePoint objects with metadata and content (Sites, Lists, Items). These documents have _lw_acl_ss fields which determines who can see the docs when searching.

Set up the SharePoint datasource

  1. Navigate to Indexing > Datasources.
  2. Install the datasource connector if not already installed.
  3. Click Add and select SharePoint Optimized V2.
  4. Fill in all required fields.
  5. Configure only one authentication method. Enable NLTM Authentication Settings or SharePoint Online Authentication and configure the fields as explained below.

NTLM Authentication

This method connects to SharePoint on-premises server instances, such as SharePoint Server 2013, 2016, and 2019. When using this authentication method, the connector will index contentDocuments and the following aclDocuments: sharepointGroups, siteAdmins, roleDefinition, and roleAssignment.To use this authentication method, in your SharePoint Optimized V2 datasource, select the NTLM Authentication Settings checkbox and configure the following fields:
  • User
  • Password
  • Domain
  • Workstation

SharePoint Online Authentication

These methods connect to SharePoint Online server instances. When using one of these methods, the connector will index contentDocuments and the following aclDocuments: sharepointGroups, siteAdmins, roleDefinition, roleAssignment and sharepointUsers in which loginName ends with onmicrosoft.com.

Basic

To use this authentication method, in your SharePoint Optimized V2 datasource, select the SharePoint Online Authentication checkbox and configure the following fields:
  • SharePoint online account
  • Password

App only (OAuth protocol)

To use this authentication method, in your SharePoint Optimized V2 datasource, select the SharePoint Online Authentication checkbox and configure the following fields:
  • Azure AD client ID
  • Azure AD tenant
  • Azure AD Client Secret
  • Azure AD login endpoint (advanced)
  • Azure AD Refresh Token (advanced)

App only with private key

To use this authentication method, in your SharePoint Optimized V2 datasource, select the SharePoint Online Authentication checkbox and configure the following fields:
  • Azure AD client ID
  • Azure AD tenant
  • Azure AD login endpoint
  • Azure AD PKCS12 Base64 Keystore
  • Azure AD PKCS12 Keystore Password

Set up the LDAP datasource

  1. Navigate to Indexing > Datasources.
  2. Install the datasource connector if not already installed.
  3. Click Add and select LDAP and Azure ACLs Connector (V2).
  4. Fill in all required fields.
  5. Configure authentication methods. Enter LDAP login credentials and/or enable Azure AD Properties and configure the fields as explained below.

LDAP Authentication

This method connects to an LDAP AD server. When using this method, the connector will index the following aclDocuments: ldapUsers, and ldapGroups.To use this authentication method, in your LDAP and Azure ACLs Connector (V2) datasource, configure the following fields:
  • Login User Principal
  • Login Password

Azure AD Authentication

This method connects to an Azure AD server. When using this method, the connector will index the following aclDocuments: azureUsers, and azureGroupsTo use this authentication method, in your LDAP and Azure ACLs Connector (V2) datasource, select the Azure AD Properties checkbox and configure the following fields:
  • Azure AD Tenant ID
  • Azure AD Client ID
  • Azure AD Client Secret

Supported authentication methods for security trimming

Configure ACL collection

By default, SharePoint Optimized V2 and LDAP ACLs V2 datasources index the content documents and ACL documents to the same collection. Ensure both datasources use the same value, contentCollection, for the field ACL Collection ID.If you are using Fusion 5.18.0 or later, you may store ACL documents in a sidecar collection. You must also use SharePoint Optimized V2 and LDAP-ACLs V2 versions 2.0.0 or later to use a separate sidecar collection. Use a separate sidecar collection if you need to manage ACL data independently of the rest of your content.

If using SharePoint-Optimized and LDAP-ACLs < v2.0.0

If you are using SharePoint Optimized V2 and LDAP-ACLs V2 versions before 2.0.0, you must store the content documents and ACL documents in the same collection. Update the ACL Collection Id in the datasource configuration.The SharePoint-Optimized and LDAP-ACLs datasources must index their content_documents and acl_documents to the same collection. Make sure the property Security -> ACL Collection in both datasources have the same value. In both datasources, SharePoint-Optimized and LDAP-ACLs, check the property Security -> ACL Collection Id and make sure it points to the same content-collection.
  1. Navigate to Indexing > Datasources.
  2. Open your SharePoint Optimized V2 or LDAP ACLs V2 datasource.
  3. Under Security, update the configuration to use contentCollection as the ACL Collection ID. Datasource config for Fusion 5.8 with Graph Security Trimming
    The Security checkbox must be checked for this field to appear.
  4. Save the configuration.
Repeat this process for all required datasources.

If using SharePoint-Optimized and LDAP-ACLs >= v2.0.0 with the same collection

Recreate or update the datasources. If only updated, it is not possible to go back to the configuration of a previous plugin version.By default, the LDAP-ACLs and SharePoint-Optimized V2 datasources index the content_documents and acl_documents to the same collection.
  1. Navigate to Indexing > Datasources.
  2. Open your SharePoint Optimized V2 or LDAP ACLs V2 datasource.
  3. Under Graph Security Filtering Configuration, select Enable security trimming.
Repeat this process for all required datasources.

If using SharePoint-Optimized and LDAP-ACLs >= v2.0.0 with a sidecar collection

Using a sidecar collection for ACL documents requires Fusion 5.18.0 or later.
Recreate or update the datasources. If only updated, it is not possible to go back to the configuration of a previous plugin version.
  1. Create a dedicated ACL collection (for example, acl_collection).
  2. Navigate to Indexing > Datasources.
  3. Open your SharePoint Optimized V2 or LDAP ACLs datasource.
  4. Under Security, set ACL Collection ID to your ACL collection name (for example, acl_collection).
  5. Under Graph Security Filtering Configuration, select Enable security trimming.
  6. Save your changes.
If you are transitioning from using the same collection to creating a sidecar collection for ACLs, you must run a full recrawl of your datasource so the ACLs route to the sidecar collection. ACL documents stored in the content collection from before the migration remain in the content collection unless the collection is reindexed or manually cleaned.After configuring your datasource, you must reference the ACL collection in the graph security trimming query stage.

Set up Graph Security Trimming

A Graph Security Trimming stage is used to pull all nested groups for a user. Then the Solr join query takes those ACL IDs found in the graph query and filters out everything that does not match one of the ACLs.
  1. Navigate to Querying > Query Pipelines.
  2. Open the query pipeline associated with your SharePoint Optimized V2 or LDAP ACLs V2 data.
  3. Click Add a new pipeline stage and select Graph Security Trimming.
  4. Configure the stage with the following settings:
  5. If you are using Fusion 5.9.3 or earlier, configure the following additional fields, which were removed in Fusion 5.9.4:
  1. If you are using a sidecar collection in Fusion 5.18.0 or later that contains your access control lists, configure the following additional fields, replacing acl_collection with the name of your dedicated ACL collection:
  1. Save your changes.

Test the configuration

To confirm that security trimming works as configured, run the following test:
  1. First, run the SharePoint Optimized V2 and LDAP ACLs V2 datasources.
  2. Run a series of queries to test user permissions are working as intended:
    1. Run a query using a User ID key with no permissions. You should see no search results.
    2. Run a query using a User ID key that has access to some documents. You should see some search results.
    3. Run a query using a User ID key that has access to all documents. You should see all documents.
      Facet by _lw_document_type_s: contentDocument to see only the SharePoint docs, otherwise aclDocuments will be also shown.

Learn more

The Active Directory Connectors for ACLs has the ability to fetch Azure groups and index them into the ACL collection. The connector utilizes the Microsoft Graph API’s group-list service.The resulting ACL document contains IDs that are GUID strings, such as 45b7d2e7-b882-4a80-ba97-10b7a63b8fa4, and they have inbound_ss relationship to the ldapGroup-sid record’s SID identifier.

Configuration parameters

In order to crawl Azure groups from the AD Connector for ACLs, you will need the values for the following parameters:
  • Azure AD Tenant ID
  • Azure AD Client ID
  • Azure AD Client Secret

Find your Tenant ID and Client ID

Begin by registering your application:
  1. Visit the Azure portal.
  2. Click App registrations. height=250
  3. Click New registration. ad-acl-azure-group02 The new application registration screen will appear: height=525
  4. Enter a name for the application.
  5. Choose the Single Tenant supported account type.
  6. Leave the Redirect URI value blank.
  7. Click Register.
The screen that follows displays the values for:
  • Azure AD Tentant ID. Listed as “Directory (tenant) ID”
  • Azure AD Client ID. Listed as “Application (client) ID” ad-acl-azure-group04
Enter these values in the Fusion UI’s connector configuration.

Configure your application permissions

  1. Click View API permissions. height=250
  2. Add the following as Application permissions under Microsoft Graph.
    You must use _Application permissions_. Failure to use Application permissions will result in 403 errors from the Graph API when attempting to crawl the Azure groups. Do not use the _Delegated permissions_ option.
    1. GroupMember.Read.All Allows the application to read general information about associated groups, such as the list of members and basic group properties. See Microsoft Graph Group Application permissions for more information.
    2. User.Read.All Allows the application to read all user profile information, such as properties and group membership. See Microsoft Graph User Application permissions for more information.
  3. Select Grant admin consent. ad-acl-azure-grant-admin-consent

Find your Client Secret

  1. Click Clients & Secrets.
  2. Create a New client secret. height=400
This value is used as the Azure AD Client Secret in the Fusion UI’s connector configuration.

Troubleshooting

Use the following script to diagnose Azure credentials issues:

Configuration

When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.