Skip to content

Getting Started

Overview

This guide walks you through configuring the Britive Access Broker to manage just-in-time group membership in an OpenLDAP directory — adding users to LDAP groups at checkout and removing them at checkin, with no standing group membership.

What you’ll accomplish:

  • Deploy and configure the Britive Access Broker with access to your OpenLDAP server
  • Configure checkout and checkin routines from the access-broker-examples repository
  • Register OpenLDAP as a Resource Manager resource in Britive
  • Create a Resource Manager access profile
  • Check out group membership and verify end-to-end

Prerequisites

Before you begin, make sure you have:

  • A Britive tenant with administrator access
  • A running Britive Access Broker with network access to your OpenLDAP server (port 389 or 636)
  • An LDAP bind DN with sufficient permissions to modify group membership (groupOfNames or posixGroup entries)
  • ldapmodify available on the broker host

Never hardcode credentials. Use environment variables, your secret manager, or the Britive Secrets Store.

How It Works

The Access Broker runs LDAP operations to manage group membership. At checkout, Britive adds the user’s DN to the target groupOfNames or posixGroup entry. At checkin (or on expiry), the membership is removed — no standing access remains.

User → Britive Console → Access Broker → ldapmodify → OpenLDAP group (add/remove member)

Onboarding the Application

Configure the broker for OpenLDAP group management. This is a one-time setup performed by an administrator.

Reference scripts are available in the britive/access-broker-examples repository under OpenLDAP/permissions/.

Using the Britive Console

Deploy the Access Broker

Follow the Britive Access Broker deployment guide to install and register a broker with your Britive tenant.

Configure the broker scripts

Clone the examples repository and copy the scripts to your broker:

git clone https://github.com/britive/access-broker-examples.git
# Copy OpenLDAP/permissions/ scripts to your broker's scripts directory

Create a bind account

Create an LDAP service account with write access to the target group entries. Store the bind password in the Britive Secrets Store.

Register OpenLDAP in Resource Manager

Navigate to Resource ManagerResourcesAdd Resource. Define the resource type as OpenLDAP and enter the server hostname and base DN.

Verify broker connectivity

Confirm the broker can reach the OpenLDAP server on port 389 (LDAP) or 636 (LDAPS).

Create Your First Access Profile

Using the Britive Console

Open Resource Manager

Navigate to Resource ManagerProfilesAdd Profile.

Configure the profile

FieldValue
NameA descriptive name (e.g., OpenLDAP-VPN-Group)
ExpirationSet a max session duration (e.g., 8h)

Associate resources

Under Associations, select the OpenLDAP resource and the target group.

Add a permission

Under Permissions, select the group membership checkout/checkin permission.

Add a policy

Under Policies, assign members and configure conditions.

Save and activate

Click Save.

Verify

Check out the profile

Navigate to My Access → find your profile → click Check Out.

Confirm LDAP group membership

ldapsearch -x -H ldap://ldap.example.com \
  -b "cn=vpn-users,ou=groups,dc=example,dc=com" member

Check in

Return to My Access → click Check In. Run the search again — your user DN should no longer appear.

Troubleshoot

SymptomLikely CauseFix
Checkout failsBroker cannot reach OpenLDAPCheck network connectivity on port 389/636
Membership not addedBind account lacks write permissionGrant the bind DN write access on the target group entry
Membership not removed after checkinCheckin routine errorCheck broker logs; verify LDAP_GROUP_DN is correct

Next Steps

Last updated on