Jitsi LDAP and Active Directory authentication

Authenticating Jitsi room creators against OpenLDAP or Active Directory depends on the install method, the directory filter and TLS settings. This page explains the supported routes and what to verify before go-live.

On this page

How Jitsi LDAP authentication works and when to use it

If you run self-hosted Jitsi and only directory users should be able to create rooms, LDAP lets you reuse the accounts you already manage. Prosody authenticates room creators against your LDAP directory: on Debian packages it does so through Cyrus SASL (saslauthd) with the mod_auth_cyrus community module, and on Docker it does so when you set ENABLE_AUTH and AUTH_TYPE=ldap in the .env file. Guests still join without an account, so LDAP governs who opens meetings, not who attends them.

The handbook's LDAP authentication guide is marked as a first draft. It was tested on Debian 11 with OpenLDAP and on Ubuntu 24.04 with Active Directory, so confirm that your operating system and directory version match before you rely on it. The older secure domain method, which uses username and password room creation, is deprecated for new installations. If your identity provider already issues tokens, the handbook recommends JWT token authentication instead, and LDAP is the better fit only when you need direct directory checks on the Jitsi side.

Before choosing LDAP, decide who owns the bind account, which groups may create rooms, and how a leaver loses access. The Docker variables LDAP_URL, LDAP_BASE, LDAP_BINDDN, LDAP_FILTER, LDAP_USE_TLS, LDAP_TLS_CHECK_PEER and LDAP_START_TLS all have to agree with the directory's actual layout. Ask your directory team to confirm the base DN, the service account's permissions and whether the directory serves certificates your Jitsi hosts can verify. Note that Prosody checks credentials at login, so a disabled account stops creating rooms only when its existing sessions end or the room ends; test that behavior in your environment rather than assuming it.

Use a pilot group to confirm the login path before you widen access. Plan to verify a successful login, a failed password, a disabled account and a user outside the permitted group, and record the results. Because the handbook's LDAP guide is a draft, expect to adapt its steps for your distribution, and keep a written record of each change so the setup can be repeated after upgrades.

What you need before configuring LDAP or Active Directory

Most LDAP problems on Jitsi trace back to decisions made before any configuration file is touched. The install method, the operating system, the certificate and the directory details all need to be settled first, because each one changes which route applies and what the team must request from other owners.

Pick the install route first

Debian packages and Docker use different authentication paths. On Debian packages, Prosody authenticates through Cyrus SASL (saslauthd) with the mod_auth_cyrus community module. On Docker, LDAP is switched on with ENABLE_AUTH and AUTH_TYPE=ldap in the .env file. Confirm your install method before reading any further configuration guidance, because the two routes share little beyond the directory details.

LDAP guide

Supported operating system and Java

The Debian and Ubuntu quick start supports Debian 12 (Bookworm) or newer and Ubuntu 24.04 or newer, and requires OpenJDK 17. The LDAP guide is marked as a first draft tested on Debian 11 with OpenLDAP and on Ubuntu 24.04 with Active Directory. Check the host OS against the supported list, and treat the Debian 11 test result as a reference point rather than a support statement.

Network ports and firewall rules

Open 80/TCP and 443/TCP for the web app and 10000/UDP for media. Port 5349/TCP is needed for TCP fallback and 3478/UDP for STUN is optional. Confirm with the network team that the Jitsi host can reach the domain controller or LDAP server on its directory port, because a blocked directory connection looks like a failed login rather than a network fault.

A proper domain certificate

The Jitsi handbook states that HTTPS with a proper domain certificate is necessary for working audio and video, and warns that self-signed certificates cause problems, especially with mobile clients. Secure LDAP connections also depend on how the directory's certificate chains to a trusted authority. Ask the PKI or identity team which certificate authority signs the directory and whether the Jitsi host already trusts it.

Read-only bind account

Create a dedicated service account in the directory for binding and searching, using the LDAP_BINDDN value. It should have read access to the user objects and group attributes the filter needs, and nothing more. Ask the directory owner to confirm the account's password rotation policy, since a rotated password breaks room creation for every user at once.

LDAP URL and base DN from the directory owner

Obtain the LDAP_URL and LDAP_BASE values from the team that runs the directory rather than guessing them. Confirm whether the directory uses plain LDAP or an encrypted connection, and which organizational unit holds the users allowed to create rooms. The filter default is uid=%u, and Samba or Active Directory may need (sAMAccountName=%U), so ask which attribute the directory uses for login names.

Choosing the Cyrus SASL route or the Docker AUTH_TYPE=ldap route

On a Debian or Ubuntu host installed from packages, the handbook authenticates Prosody against LDAP through Cyrus SASL. The saslauthd daemon handles the directory lookup, and the mod_auth_cyrus community module connects Prosody to it. This route is documented in the Jitsi handbook LDAP guide, which is marked as a first draft. It was tested on Debian 11 with OpenLDAP and on Ubuntu 24.04 with Active Directory, so you should treat it as community-maintained guidance rather than a fully supported configuration.

  • Extra moving parts: saslauthd, the SASL configuration, and the community Prosody module each need to be installed, configured, and kept working across Prosody updates.
  • Host-level dependencies: the directory settings live on the server, so the host's packages, services, and configuration files must be managed together.
  • Upgrade risk: a Jitsi package update or a Prosody change can affect the community module, so test authentication after each upgrade.
  • Documentation depth: the first-draft status means you may need to work out edge cases yourself and document your own changes.
  • Skills required: your team needs comfort with Linux service management, SASL, and directory lookups.

Before you choose this route, confirm with your team whether the community module and its maintenance terms meet your change-control rules.

How to configure Jitsi LDAP authentication step by step

This sequence connects Prosody to your OpenLDAP or Active Directory server so that only directory users can create rooms, with the bind, filter and TLS settings verified before anyone relies on them. It ends with proof that a valid directory user can create a room and that an invalid user is refused.

  1. Confirm the bind account and certificate trust

    Ask your directory administrator for a read-only bind account that can search for users under the base you plan to use, and record its distinguished name and password in your secrets store. From the Jitsi host, confirm that the directory server certificate chains to a certificate authority the host trusts. Done when a test bind with that account succeeds from the Jitsi host and the certificate validates without errors.

  2. Set the LDAP connection values

    In the Docker .env file, set ENABLE_AUTH and AUTH_TYPE=ldap, then fill in LDAP_URL, LDAP_BASE and LDAP_BINDDN with the values confirmed in the previous step. The URL scheme must match the TLS approach you choose in a later step. Debian package installs follow the Cyrus SASL route described in the Jitsi handbook LDAP guide, which is a separate sequence. Done when the file contains every value and each value matches what the directory administrator supplied.

  3. Set the user search filter

    Set LDAP_FILTER to match how your directory names login accounts. The handbook notes that the default filter is uid=%u, which suits most OpenLDAP directories. Samba or Active Directory may need (sAMAccountName=%U) instead, so confirm the attribute with a directory search from the Jitsi host before you commit to it. Done when a search for one known test user returns exactly one entry under the filter you set.

  4. Configure the TLS settings

    Set LDAP_USE_TLS, LDAP_START_TLS and LDAP_TLS_CHECK_PEER to match the directory. Use LDAPS on its TLS port or StartTLS on the plain port, whichever your directory offers, and keep peer checking enabled so the server certificate is validated rather than trusted blindly. Confirm the TLS handshake from the host with a directory client test. Done when the handshake completes and the certificate check passes with the flags in the values you intend to run.

  5. Restart the stack and read the logs

    Recreate the Jitsi containers with your usual Compose workflow so the updated .env values load. Then read the Prosody container logs from startup onward. Look for bind failures, certificate errors or search errors that name the LDAP settings. Done when Prosody is running and the logs show a successful connection with no bind or certificate errors.

  6. Test that a directory user can create a room

    Sign in to the Jitsi web app with a valid directory account and create a new room. Confirm that the room opens and that the signed-in user holds moderator controls. Then join the room from a second browser as a guest to confirm the room is live. Done when a directory user creates and opens a room successfully and the Prosody logs record that authentication succeeded for that account.

  7. Confirm a rejected user is refused

    Attempt room creation with a wrong password for a valid account, then with an account outside the search base or excluded by the filter. Both attempts should fail and should not open a moderator session. Check that the failures appear in the logs so your security team can review them. Done when both attempts are refused and the log entries show the failed authentication without exposing the password.

How a room creator's login reaches the directory

A room creator's username and password leave the browser over HTTPS and reach Prosody through the web server. Prosody does not check the password itself on the LDAP route. It hands the request to saslauthd, which uses the directory's bind account and a TLS-protected connection to confirm the credentials against the directory server. Check the TLS link and the bind account first, because both sit on the trust boundary between the Jitsi host and the directory network.

Login path from the browser to the directory, with the trust boundary between the Jitsi host and the directory network.

Mapping directory attributes to Jitsi login identifiers

This table compares the identifiers used in OpenLDAP and Active Directory and shows which ones your directory owner supplies and which ones your Jitsi configuration sets. Read each row as a point to agree with the directory team before the Prosody or Docker settings are written. The main takeaway is that the login name Jitsi accepts depends on the filter matching the attribute your directory actually stores.

SettingOpenLDAPActive DirectoryWho supplies it
Username attributeuid, the default filter valuesAMAccountName, which the handbook says may be neededDirectory owner confirms the attribute; Jitsi filter must match it
Filter placeholderuid=%u(sAMAccountName=%U)Set in Jitsi configuration (LDAP_FILTER or Prosody settings)
Bind DNService account DN with read access to user entriesService account DN, often a user or service principal in a named OUDirectory owner creates the account; Jitsi configuration stores the DN (LDAP_BINDDN)
Search baseBase DN holding the users Jitsi should acceptBase DN for the domain or the OU holding meeting usersDirectory owner provides the base; Jitsi configuration sets it (LDAP_BASE)
LDAP server URLldap:// or ldaps:// address of the OpenLDAP serverDomain controller or load-balanced address, with TLS choice agreedDirectory owner provides; Jitsi configuration sets it (LDAP_URL)
Group membershipNot covered by the default filter in the supplied guidanceNot covered by the default filter in the supplied guidanceConfirm any group restriction as a custom filter with the directory owner before rollout
Login identifier users typeValue matched by the username attribute, for example a short account nameValue matched by sAMAccountName, not necessarily the UPN or email addressTest with a sample account from each directory before opening access to users

Filter and TLS choices that break Active Directory deployments

Most failed Jitsi LDAP logins against Active Directory trace back to a handful of choices made during configuration rather than to the directory itself. The four cards below cover the search filter, the certificate trust chain, the transport encryption and the permissions of the bind account, which should be checked together before any user is allowed to create a room.

Filter left at uid=%u

The handbook's default LDAP filter matches on uid=%u, an attribute that OpenLDAP schemas commonly provide. Active Directory users typically do not carry a uid value, so the search returns no match and every login fails even when the password is correct. The handbook notes that Samba or Active Directory may need (sAMAccountName=%U) instead. Check the filter by searching the directory with the same account name before you test Jitsi.

LDAP guide

Certificate Prosody does not trust

Prosody must validate the certificate presented by your domain controllers. If the directory uses a self-signed certificate or a private certificate authority that is not installed on the Jitsi host, the connection fails during the TLS handshake and the error can look like a generic authentication problem. Import the issuing CA into the trust store on the Jitsi host and confirm the certificate name matches the LDAP_URL hostname. Do not disable peer checking to get past the error.

Docker guide

Credentials sent in clear text

A plain ldap:// connection without StartTLS sends the bind password and the user's password across the network unencrypted. Between Docker containers on one host the exposure is limited, but a directory reached over a routed network is not. In the Docker setup, LDAP_USE_TLS, LDAP_START_TLS and LDAP_TLS_CHECK_PEER decide whether the channel is protected. Confirm with your directory team which port and protocol the domain controllers accept before choosing these values.

Bind account with excess rights

The LDAP_BINDDN account is used to search the directory on behalf of every user who signs in to Jitsi. Using a domain administrator or a broadly privileged service account gives a Jitsi host far more reach than authentication requires. Ask for a dedicated, read-only account that can search the users container and read the attributes named in the filter, and document who owns its password and when it rotates. Review the account's group memberships after each directory change.

Why LDAP logins to Jitsi fail and how to fix them

This table pairs the failures most often seen when Jitsi room creators authenticate against OpenLDAP or Active Directory with their likely cause and the fix to try first. Read each row against the symptom you see in Prosody or Docker logs, and work top to bottom because several failures hide behind the first one.

FailureLikely causeFix
Logins fail for AD users onlyFilter left at uid=%u, but AD accounts are matched on sAMAccountNameSet the filter to (sAMAccountName=%U) for Active Directory, as the handbook notes, and test with a known account
TLS handshake or certificate verify errorLDAP server uses a certificate signed by a private CA that the Jitsi host does not trustInstall the internal CA certificate on the Jitsi host and keep peer checking on; confirm the certificate name matches the LDAP_URL host
Connection refused or timeoutLDAP_URL points to a name or port the Jitsi host cannot reach, often blocked by a firewall or DNSTest reachability from the Jitsi host itself, not your workstation, and confirm the port and protocol in LDAP_URL
Bind account rejected or locked outService bind account has a stale password, expired state, or repeated failed binds from a misconfigured serviceConfirm LDAP_BINDDN and password, use a dedicated service account, and check lockout policy before retrying
Debian logins never reach LDAPsaslauthd is not running or is not configured to use LDAP with the mechanism Prosody expectsCheck the saslauthd service status and its LDAP settings, then restart it and retest the Prosody login
Docker ignores a changed settingEnvironment values live in the .env file and containers were not recreated after the editEdit .env, then recreate the affected containers so the new values load, and confirm the values inside the container
Users log in but cannot create roomsAuthentication succeeds but the room creation path or domain settings do not match the authenticated domainCompare the domain in the Prosody configuration with the domain users enter, and retest room creation after the change
Plain text credentials sent on the networkSTARTTLS or LDAPS is not enabled, so the bind and password travel unencryptedEnable LDAP_USE_TLS or LDAP_START_TLS as your directory requires and verify the connection is encrypted

Questions buyers ask about Jitsi LDAP and Active Directory setup

What drives the cost of adding LDAP or Active Directory login to Jitsi?

The cost follows the directory and the number of environments, more than the Jitsi side itself. Directory complexity matters most: a single OpenLDAP tree or one Active Directory domain is a smaller job than several domains, forests or nested groups that decide who may create rooms. TLS trust is the next driver, because the connection to the directory must be verified against a certificate authority your team can provide, and self-signed or internal CA chains add work. Each environment you run (test, staging, production) multiplies configuration and testing. Ask any partner for a quote that lists the directory types, the number of environments, who supplies the bind account and certificate, and how testing with test users is counted. Fixed-scope work is agreed in writing before it starts.

How long does LDAP or Active Directory authentication take to set up?

Duration depends on the environment and is confirmed in the written scope, not in a general estimate. The main variables are how quickly the directory owner provides a bind account, a filter that matches your user model, and a CA certificate, and how many environments need the same settings. Testing is often the longest step, because room creation must be checked for allowed users, denied users and users in nested groups. Ask for a plan that names each dependency, who owns it and what is considered finished. Because the Jitsi LDAP guide is a first draft, plan extra time for validating the exact steps against your Jitsi version.

What do we need to provide before the work starts?

Four things should be ready before any configuration begins:

  • A directory owner who can answer questions about user attributes, groups and the directory's structure.
  • A read-only bind account, with its distinguished name and password handled through your secrets process.
  • The CA certificate that signed the directory's TLS certificate, so the Jitsi server can verify it.
  • Test users with known accounts, including at least one allowed user and one who should be refused.

Without a test directory or test users, validation is hard to prove. Confirm with your directory team whether they can create a separate test OU or test forest before production access is requested.

Can our internal team set up Jitsi LDAP or Active Directory login without outside help?

Yes, a team with Linux and directory experience can do it, provided it uses the Jitsi handbook LDAP guide and a test directory. The guide is marked as a first draft, tested on Debian 11 with OpenLDAP and Ubuntu 24.04 with Active Directory, so expect to verify each step against your own Jitsi release and operating system. Docker deployments use AUTH_TYPE=ldap and the LDAP_* variables in the .env file, while Debian packages route through Cyrus SASL. The hard parts are usually the filter, the TLS settings and the reasoning about who should hold moderator rights. A test environment that mirrors production lets the team learn without risking live meetings.

When is outside help worth it for Jitsi directory authentication?

Outside help is worth considering when the directory itself is hard to model or when the access decision carries audit weight. Typical triggers include Active Directory with multiple domains, trust relationships, or group rules that determine who may open a room. Regulated environments that need documented access reviews also benefit from an outside view, because the evidence for who could create meetings, and when, must be reproducible. DeployOpen implements and hardens self-hosted open-source platforms in your own infrastructure, prepares systems and evidence for compliance assessments, and runs security testing, but it does not issue audit reports or certifications. Independent auditors and certification bodies perform those assessments.

Why do Active Directory logins fail when the same settings work with OpenLDAP?

The most common cause is the user filter. The handbook notes that LDAP filters default to uid=%u, while Samba or Active Directory may need (sAMAccountName=%U), so a copied OpenLDAP configuration can find no users. Other frequent causes are a bind account without read rights on the user container, a base DN that is too high or too low, and TLS settings that do not match the certificate. Check each item in order: confirm the bind works with an LDAP client, confirm the filter returns the test user, then confirm the Jitsi variables or saslauthd settings match. Testing each layer separately narrows the fault quickly.

Which TLS settings should we check before enabling directory authentication?

Verify the directory connection before anything else. In the Docker setup, the relevant variables are LDAP_USE_TLS, LDAP_TLS_CHECK_PEER and LDAP_START_TLS, and each must match how your directory presents its certificate. Keep peer checking on wherever possible, and supply the CA certificate rather than turning verification off to get a login working, because disabled checks let a connection be intercepted. Confirm the directory hostname in LDAP_URL matches the certificate name. Ask your security team to review the chosen combination, since it determines whether credentials cross the network protected.

How DeployOpen scopes and delivers Jitsi directory authentication

DeployOpen plans, builds, tests and hands over LDAP or Active Directory sign-in for room creators on a self-hosted Jitsi Meet, inside infrastructure you control. Each engagement starts from a written scope that names your directory, your Jitsi install method and the people who will own the settings after handover.

How we scope

  • Confirm whether Jitsi runs from Debian packages or the Docker setup, since the LDAP routes differ between them.
  • Identify the directory type (OpenLDAP, Active Directory or Samba) and which login attribute users sign in with.
  • Agree in writing which users may create rooms, how guests join and which directory groups map to moderators.

How we build

  • Configure the directory bind account with read-only rights and a limited search base for the Jitsi lookups.
  • Set the user filter for your directory, including whether the account name should match sAMAccountName or uid.
  • Choose and document TLS settings, including certificate peer checking, before any user credentials cross the network.

How we hand over

  • Test sign-in with a defined set of accounts, including disabled, expired and out-of-group users, and record the results.
  • Provide a configuration record listing every setting, file and variable changed, with the reason for each choice.
  • Walk your identity and platform teams through the directory settings so they can review them against your policies.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover, scoped in writing.
  • Review directory and Jitsi configuration again when Jitsi is upgraded or the directory schema or domain changes.
  • Retest authentication after changes to certificates, bind credentials or group membership that affects room creation.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.