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 (
groupOfNamesorposixGroupentries) ldapmodifyavailable 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 directoryCreate 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 Manager → Resources → Add 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 Manager → Profiles → Add Profile.
Configure the profile
| Field | Value |
|---|---|
| Name | A descriptive name (e.g., OpenLDAP-VPN-Group) |
| Expiration | Set 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" memberCheck in
Return to My Access → click Check In. Run the search again — your user DN should no longer appear.
Troubleshoot
| Symptom | Likely Cause | Fix |
|---|---|---|
| Checkout fails | Broker cannot reach OpenLDAP | Check network connectivity on port 389/636 |
| Membership not added | Bind account lacks write permission | Grant the bind DN write access on the target group entry |
| Membership not removed after checkin | Checkin routine error | Check broker logs; verify LDAP_GROUP_DN is correct |