How Open WebUI with LDAP and Active Directory signs in your staff
The Open WebUI features documentation lists LDAP among its supported single sign-on methods, so a company that already keeps staff accounts in a directory can let people sign in with the passwords they already use. The split of responsibilities matters for the design. The directory checks the password, while Open WebUI keeps its own user records, role assignments and sharing permissions. Disabling someone in the directory stops their sign-in, but it does not by itself remove what they were granted inside Open WebUI, so your access review has to cover both places. For production, plan on LDAPS with certificate validation, so that passwords and the bind account's credentials travel over an encrypted connection and the server certificate is checked against a trusted certificate authority.
Two directory types are in scope for this topic: OpenLDAP and Active Directory. Start by confirming which one your staff actually sign in against, and which attribute holds the username people type at login, because that choice shapes the user search settings. Ask your directory team for a read-only service account for Open WebUI, the base distinguished name that covers every user who needs access, and the certificate chain that signs the LDAPS endpoint. Verify that chain from a host on the same network segment as Open WebUI before you change any settings, since a certificate the server cannot validate is the most common reason a directory-backed login fails at this stage. Test with one known account before you open sign-in to the wider group.
Azure AD Domain Services and FreeIPA are common directory choices, but this page does not treat either as a settled option. Before design starts, confirm each one against the LDAP settings that Open WebUI exposes in the release you plan to run. The questions to answer are whether the server address, bind account, user search scope and attribute mapping can describe how that directory stores users, and whether any directory-specific behavior, such as how it handles password changes or account lockouts, needs a workaround. Keep the answers in writing. Group-based role and permission mapping is covered in a separate section, and it depends on the same directory answers.
What you need before you configure LDAP in Open WebUI
LDAP and Active Directory configuration fails most often because a prerequisite was assumed rather than confirmed. The six items below cover the software, the directory access, the certificate trust and the network path, so the team can test sign-in against a known baseline before touching the admin settings.
Open WebUI version and install method
Record the exact v0.12.x line you will run and how it is installed: Docker, Docker Compose, Helm or pip with open-webui serve. The v0.12.3 release, published October 16, 2026, is the current reference for version choice, so confirm that your target line includes the LDAP behavior you plan to rely on. Test in a staging instance on the same version and install method you will use in production, because container paths and environment variable handling differ between methods.
Service bind account with read-only rights
Request a dedicated service account that Open WebUI uses to search for users before it authenticates them. It needs read access to the user search base and nothing more: no write rights, no domain administration and no password-reset permissions. Ask the directory team for the account's distinguished name, its password rotation policy and whether it is exempt from forced password changes, since a rotated or expired bind password stops all sign-ins at once.
Directory hostname and LDAPS port
Collect the fully qualified name of the domain controller or LDAP server that Open WebUI will contact, not an IP address, because certificate validation checks the name. Confirm the LDAPS port with the directory team and check that it is the secure port the server actually serves, not a plaintext port left open. Also confirm whether a load balancer or domain controller alias sits in front of the directory, and whether that name appears on the server certificate.
CA chain for the directory certificate
Obtain the full certificate chain that signed the directory's LDAPS certificate, including any intermediate authority, in a format your container or host can read. Certificate validation fails when the chain is incomplete or when the certificate is installed only in another operating system trust store. Ask who issued the certificate, when it expires and who renews it, because an expired directory certificate breaks sign-in for every user without any change on the Open WebUI side.
Network routes from the Open WebUI host
Verify that the Open WebUI host, or each replica in a multi-instance setup, can open a connection to every domain controller or LDAP server on the LDAPS port. Test name resolution from inside the running container, not only from the host, because container DNS often differs from the host resolver. Check firewall rules in both directions and any network policy that separates the application tier from the identity tier.
Test users and a rollback path
Before enabling LDAP, identify a small set of test accounts across the groups that will sign in, plus one local administrator account that does not depend on the directory. Keep that local admin working so the team can recover if the directory settings lock out every user. Record which accounts are expected to sign in, which should be refused and what the admin role should map to, so the test results can be checked against a written expectation.
How a directory sign-in travels through Open WebUI
The sign-in starts in the user's browser, which submits a username and password to Open WebUI. Open WebUI uses a service bind account over LDAPS to search the directory for the user's entry, then makes a user bind with the password the user typed. The LDAPS connection is only trusted if the directory's certificate chains to a CA in the trust store on the Open WebUI host. After a successful bind, Open WebUI writes or updates the user and group records in its own database, so check those records and the trust store first when a sign-in fails.
Directory sign-in flow, with the certificate check and service bind before the user bind.
Choosing the directory: OpenLDAP, Active Directory, FreeIPA or Azure AD Domain Services
OpenLDAP is a general-purpose LDAP directory that many organizations run for Linux, application and legacy identity needs. Open WebUI authenticates against it with a bind account and a search, so the team's first job is to confirm the directory tree itself rather than assume a schema. Your directory administrator should confirm the search base that contains the users Open WebUI should accept, the user filter that matches a login identifier such as uid or mail, and the attributes that describe group membership.
- Search base: the distinguished name of the branch that holds the people who should be able to sign in, which may differ from the root suffix.
- User filter: the object class and login attribute your tree uses, tested against a real account before it goes into configuration.
- Group attributes: whether membership is stored on the group (for example
memberormemberUid) or on the user, since that determines how group sync is read. - Bind account: a read-only service account with a password policy and rotation plan, stored in your secrets tooling.
- Transport: plaintext LDAP on port 389 should not carry user passwords, so confirm LDAPS or StartTLS with a certificate your Open WebUI host trusts.
Before committing, run an ldapsearch from the Open WebUI host with the same bind account and filter to confirm the results match what users expect.
Active Directory is the most common directory in enterprises, and it exposes users through LDAP with its own naming conventions. Open WebUI reads it like any LDAP server, but the search base, user filter and group attributes are specific to your forest and domain layout, and they often differ between business units. Your Active Directory team should confirm which organizational unit holds the eligible users, whether nested group membership must be resolved, and which login attribute users actually type, commonly sAMAccountName or userPrincipalName.
- Search base: the organizational unit or domain root that contains eligible users, confirmed against the actual object locations.
- User filter: typically an object class of user with an enabled account filter, tested to exclude disabled accounts.
- Group attributes: how
memberOfis populated and whether nested groups need recursive matching, which affects how group names reach Open WebUI. - Global catalog or domain controller: which endpoint the Open WebUI host can reach, and whether a multi-domain forest needs queries against the global catalog.
- LDAPS certificate: domain controllers need a certificate chain that your Open WebUI host trusts, so confirm the issuing CA and the revocation path with the directory team.
Confirm the bind account has only read access to the attributes Open WebUI requests, and test a disabled account to verify that it cannot sign in.
FreeIPA is an identity system for Linux and UNIX networks that combines the 389 Directory Server with MIT Kerberos, a Dogtag certificate authority and client-side SSSD. It is licensed under GPL-3.0-or-later as a community project, so the team pays for its own engineering and support rather than a vendor license. Open WebUI can authenticate against the LDAPv3 interface that 389 Directory Server provides, which makes FreeIPA a workable directory when your environment is Linux-centric. The Kerberos and certificate features are useful for host identity but do not change how Open WebUI binds.
- LDAPv3 directory: the user and group tree is served by 389 Directory Server, so the search base and attributes need confirmation the same way as for OpenLDAP.
- Certificates: the integrated Dogtag CA issues the server certificate for LDAPS, so plan how that certificate is distributed to the Open WebUI host.
- Cross-forest trust with AD: FreeIPA can establish a trust with Active Directory through Samba components, but the IPA DNS domain must not overlap any AD domain, and trust does not replace a direct LDAP bind from Open WebUI.
- Replica topology: recommendations call for at least two to three replicas per datacenter, which affects the endpoints Open WebUI should use.
- Patch level: FreeIPA 4.13.4 fixed two CVEs in LDAP access control and authentication, so confirm your deployed version against current release notes.
Confirm with your FreeIPA administrators which replica Open WebUI will bind to and how that replica's certificate is validated.
Azure AD Domain Services provides a managed domain in Azure that exposes LDAP and Kerberos for workloads that cannot use Microsoft Entra ID directly. Open WebUI can bind to it as an LDAP directory, but the feature set and the settings for secure LDAP depend on how your Azure tenant and managed domain are configured. Confirm these points with your Azure administrators before committing to this path, because changing the managed domain after go-live can disrupt authentication for every application that depends on it.
- LDAP bind support: confirm that simple bind over secure LDAP is enabled for the managed domain and that the bind account is permitted to read the required objects.
- Secure LDAP settings: confirm that secure LDAP is enabled, which ports and source address restrictions apply, and whether plaintext LDAP is disabled.
- Certificate handling: confirm which certificate the managed domain presents, its issuer and expiry, and how renewal is handled before the certificate expires.
- Network path: confirm that the Open WebUI network can reach the managed domain endpoints through your virtual network design.
- Directory scope: confirm whether synchronized Entra ID users appear in the managed domain and whether the groups Open WebUI needs are present.
Before committing, test a sign-in from the Open WebUI host against the managed domain and record the certificate details the host validates.
Configuring LDAP sign-in for Open WebUI, step by step
This sequence takes an Open WebUI instance from a working install to LDAP or Active Directory sign-in, with each step proving the previous one worked. It ends with a tested user login, a local account created with the expected attributes, and admin and group behavior confirmed before wider rollout.
Confirm install method and version
Record how Open WebUI is installed (Docker, Docker Compose, Kubernetes with Helm, or pip) and the exact release tag in use, then check that the release notes for that version cover the LDAP settings you plan to use. Use the official features documentation as the reference for this version, not an older guide. Confirm the database backend, since multi-replica deployments need PostgreSQL and Redis. Done when you can state the install method, the release number, and the database in a change record.
Install the directory CA into the trust store
Obtain the root and any intermediate certificates that issued the domain controller or OpenLDAP server certificate, and add them to the trust store that the Open WebUI container or host process reads. Work with your directory team to get the authoritative chain, and confirm the server name in the certificate matches the hostname you will configure. Done when the CA file is in place and the container or service restarts without certificate errors in its logs.
Test the LDAPS handshake from the Open WebUI host
From the same host or container network that runs Open WebUI, open a TLS connection to the directory's LDAPS port using openssl s_client or an equivalent tool, and verify that the certificate chain validates against the installed CA and that the presented name matches the hostname you will configure. Run this test from inside the container if it runs in one, because the trust store there may differ from the host. Done when the output reports a verified chain and the expected subject name.
Create a read-only bind account
Ask the directory administrator to create a dedicated service account with read access to the user search base and the attributes Open WebUI needs, such as the login name and email. Keep it out of administrator groups and record its distinguished name and the password in your secrets store, not in plain configuration files. Done when you can bind with that account from the Open WebUI host and the bind succeeds without any write permission being granted.
Set LDAP server and search settings
Set the server address, bind account, base search path, and user search filter through the LDAP configuration keys listed in the LDAP section of the Open WebUI features documentation. Copy the exact key names from that page for your version rather than from memory or older forum posts, because key names change between releases. Keep the settings in the environment or configuration method your deployment already uses. Done when the server accepts the configuration on restart and the startup log shows no LDAP connection errors.
Run a test sign-in with one account
Sign in to Open WebUI with a single known directory user, using a password you control and an account whose group membership you have already confirmed with the directory team. Afterwards, check the Open WebUI admin user list and confirm that exactly one local record exists with the expected login name and email, and that it has the default user role. If the record is missing or duplicated, check the user search filter and attribute mapping before going further. Done when the record matches the directory entry.
Enable admin and group settings
Once the test account behaves correctly, configure how directory group membership maps to Open WebUI roles and groups, using the settings documented for your version. Start with a narrow admin mapping and a single test group, then sign in with one account from each group and confirm the role and group assignments in the admin panel. Only widen access after each mapping produces the expected result. Done when each test account shows the intended role and group and no account has more access than its directory group grants.
Mapping directory attributes and groups to Open WebUI
This table compares each directory attribute or group with the Open WebUI field or permission it feeds, who sets it, and what to verify before go-live. Read it as a checklist for the directory team and the Open WebUI administrator together. The main takeaway is that attribute names and group sync depend on your chosen Open WebUI version and LDAP configuration, so confirm them in a test environment first.
| Directory attribute or group | Open WebUI field or permission | Who sets it and what to verify |
|---|---|---|
| Login identifier (sAMAccountName in Active Directory, uid in OpenLDAP) | The username used to sign in through the LDAP authentication path | Directory team chooses the attribute. Confirm which attribute your Open WebUI version reads from its LDAP settings and that it is unique and stable per user. |
| Display name (displayName or cn) | Name shown on the user profile and in shared resource lists | Directory team maintains values. Confirm whether Open WebUI updates the name on each login or only at account creation. |
| Email (mail) | Account email and the key used for account matching if you enable other sign-in methods | Directory team maintains values. Confirm the attribute name in your configuration and test users with missing or duplicate mail values. |
| Group membership for administrators | Admin role, if your version supports mapping directory groups to Open WebUI roles | Identity admin creates the group. Confirm whether group sync is available in your version. If it is not, plan a manual admin assignment and document it. |
| Group membership for standard users | Base user role and access to default models | Identity admin creates the group. Test that a user outside the group cannot sign in or sees no models, depending on how your configuration gates access. |
| Groups used for resource sharing | Open WebUI groups for sharing models, knowledge and tools | Open WebUI administrator sets sharing defaults. Confirm whether groups created from directory data are created automatically and what sharing they receive by default. |
| Nested or indirect group membership | Whether inherited membership is reflected in Open WebUI groups | Directory team and Open WebUI administrator. Test a user who gets access through a nested group, since many LDAP filters only read direct membership. |
Security settings for an LDAP-backed Open WebUI
An LDAP or Active Directory login is only as strong as the connection, the bind account and the path into the login page. The cards below cover the directory settings that protect those three links, plus the session behavior that determines how quickly a removed user loses access.
Validate the LDAPS certificate fully
Connect over LDAPS and keep certificate verification on, so Open WebUI only talks to the directory server whose certificate chains to a CA your team trusts. Avoid settings that accept any certificate, because a spoofed directory could capture the bind password and validate any login. Confirm that the certificate name matches the host name in the server URL, and that the internal CA bundle is mounted into the Open WebUI container. Test with an invalid certificate in a non-production environment to confirm sign-in fails.
Open WebUI featuresUse a dedicated read-only bind account
Create a service account whose only purpose is to search the directory for Open WebUI logins. Grant it read access to the attributes Open WebUI needs and nothing that allows writes or password resets. Store its password in your secrets manager or an environment file kept out of version control, and rotate it on a schedule your directory team sets. Do not reuse a personal administrator account for the bind, since its password changes would silently break sign-in.
Limit the search base and filter
Point the user search base at the organizational unit that holds people who should use Open WebUI, not the domain root. Use a filter that matches only enabled accounts in that unit, so disabled, service and test accounts cannot sign in. In Active Directory, confirm the filter excludes accounts with the disabled flag set. Ask your directory team to review the resulting user list with a sample of employees before go-live.
Restrict who reaches the login page
Limit network access to the Open WebUI login page to the networks your users actually connect from, such as corporate address ranges or a VPN. Enforce this at the reverse proxy or load balancer, not only in the application. Confirm that the directory server, not the browser, is the only path Open WebUI uses to verify passwords, and keep the admin interface on an internal address if your design allows it.
Keep admin rights out of directory groups
Decide who administers Open WebUI using a separate, named group controlled by the platform team, not by whichever directory groups happen to exist. Map only that group to administrator rights, and review who belongs to it on a regular basis. Directory group membership often grows through unrelated access requests, so a broad group that grants admin rights creates privilege that nobody approved. Document which group is the admin group and who may change it.
Plan for sessions that outlive the account
Without Redis, signing out of Open WebUI does not revoke tokens, which stay valid until they expire, by default after 4 weeks. In a single-instance deployment, disabling a directory account does not end an active session until that expiry, so a departing employee can keep access for up to that period. Ask whether a shorter token lifetime or a shared Redis store fits your design, and test that a disabled account is locked out within your required window.
Scaling Open WebUI docsCommon LDAP and Active Directory failures in Open WebUI
This table pairs each common symptom of a failed LDAP or Active Directory sign-in with its likely cause and the fix to try first. Work through the rows in order when a login fails, since certificate and bind problems hide everything that follows. Capture the LDAP client error output and the Open WebUI log at the moment of the failed attempt, because the exact error text usually identifies the row to start from.
| Symptom | Likely cause | Fix |
|---|---|---|
| LDAPS connection fails with a certificate verification error | The server certificate chains through an intermediate CA that is not in the trust store Open WebUI uses, so the chain cannot be built to a trusted root | Export the full chain from the directory server, including the intermediate CA, and add it to the CA bundle the Open WebUI container or process reads. Test the chain with an LDAP client before retrying sign-in |
| Bind fails with invalid credentials | The bind DN is wrong, is written in the wrong format (for example, a bare user name where a distinguished name is required), or the bind password is stale or expired | Confirm the bind account's full distinguished name with your directory team, test it with an independent LDAP client, then update the bind settings and restart Open WebUI |
| Users are found in the directory but cannot sign in | The user search base or filter excludes the group or organizational unit that holds the accounts, or the group filter does not match the group membership attribute in your directory | Compare the search base and filter against a known test user's distinguished name and group memberships, then adjust the filter until that user matches |
| Sign-in reports an unknown user even though the account exists | The login identifier attribute is wrong, for example a mail attribute configured where accounts log in with sAMAccountName, or the reverse | Check which attribute your users type at sign-in and set the identifier attribute to match it. Confirm the value in the directory for one test account |
| New accounts show blank names or blank email addresses | The attribute mapping points at attribute names your directory does not populate, or the mapped names differ in case or spelling from the directory schema | Read the attributes on a test entry from the directory, then correct the name and email attribute mappings to the exact names returned |
| Users sign in but admin or group roles are not applied | The group or role attribute is not returned by the directory query, group names do not match the names Open WebUI expects, or role settings are overwritten on each login | Log the returned group values for one admin account, align the names exactly, and confirm the role sync setting before the next test sign-in |
| Disabled directory accounts still have working Open WebUI sessions | Open WebUI sessions and tokens remain valid until they expire, and the disabled state is only checked when the user signs in again | Revoke active sessions for the account, lower session lifetime where your policy requires it, and confirm Redis is in place for session revocation in multi-replica setups. Plan for back-channel logout where your identity model allows it |
When OIDC is the better choice than direct LDAP
Choose direct LDAP only when users must keep signing in against the directory itself and the systems around Open WebUI cannot yet sign users in through a federated identity provider. In that case Open WebUI binds to the directory and checks the password inside its own login flow. That keeps the directory as the single source of credentials, but it also means Open WebUI handles the password exchange, so the team owns the LDAPS configuration, the certificate chain and the service account used for lookups. If your directory is OpenLDAP, Active Directory or Azure AD Domain Services, confirm first that the service account can read the user and group attributes Open WebUI needs, because a working bind alone does not guarantee that group membership arrives.
OIDC through an identity provider such as Keycloak, Microsoft Entra ID or Okta is usually the better choice when you need group claims, multi-factor authentication enforced at the provider, or one place to end sessions. The provider issues tokens that carry group membership, so role and group mapping can follow the claims your identity team already maintains. MFA is enforced by the provider for every application, not configured separately in Open WebUI. Sign-out also becomes a provider-level decision. Before you pick a method, ask your identity team which group claim they can emit and whether the provider already enforces MFA for the users who will sign in.
Whichever method you choose, a multi-replica deployment needs Redis for shared sessions and websocket state, plus shared file storage and an external vector database, as the scaling guidance describes. Without Redis, signing out does not revoke tokens, so this requirement applies to LDAP and OIDC alike. The sibling topics cover the OIDC setups in detail, including Keycloak style claim mapping, Microsoft Entra ID, Okta, MFA enforcement and back-channel logout. Use this section to decide the direction, then follow the matching sibling topic for configuration.
Questions buyers ask before connecting Open WebUI to LDAP or Active Directory
What does an LDAP or Active Directory integration for Open WebUI cost?
The cost depends on how much directory work sits around the Open WebUI settings, so no single figure applies to every environment. The main cost drivers are the complexity of the directory (one domain or a multi-forest layout), the certificate chain needed for LDAPS, the number of groups that must map to Open WebUI roles, how many Open WebUI replicas run behind the load balancer, and how much testing you require before go-live. A quote should itemize directory analysis, Open WebUI configuration, certificate validation, group mapping, testing and handover, and state which items are one-time and which recur, such as certificate renewal and directory changes. Ask each bidder to list what they assume you will provide, because unclear assumptions are the most common source of change orders.
How long does setup take, and what does it depend on?
Duration depends mainly on how quickly your team confirms directory access and approves a change window, not on the Open WebUI settings themselves. Before work starts, confirm which directory you use (OpenLDAP, Active Directory, or Azure AD Domain Services), who can grant a service bind account, whether LDAPS is already enabled on the domain controllers, and when production changes are permitted. Test sign-in in a non-production instance first, then schedule the production cutover. Ask any provider to give you the steps, the dependencies and the approvals each step needs, and to state the schedule in writing with its assumptions.
What does the work need from our team?
Plan for four roles: a directory administrator who can create the bind account and read group membership, a test user whose account you are willing to use for sign-in checks, a certificate owner who can supply or confirm the CA chain used for LDAPS, and a named approver who signs off on the group-to-role mapping and the production cutover. The directory administrator is the critical dependency, because Open WebUI can only authenticate users and read groups that the bind account is permitted to see. Agree on who holds these roles before the engagement starts, and record the approver in the scope document so access decisions have an owner.
Can our internal team do this without a partner?
Yes, a capable internal team can connect Open WebUI to a directory for a single-replica pilot, provided a directory administrator is available throughout the work. A pilot involves one Open WebUI instance, one directory, a small set of test accounts and a limited group mapping, which keeps the number of moving parts low. The harder parts are LDAPS certificate validation, multi-replica state, and the group model that decides who can use which models. If you expand beyond a pilot, or if your team has not run LDAPS before, a fixed-scope engagement can cover the parts your staff have not done before, while your team keeps ownership of the directory.
Does the Open WebUI License affect a directory integration?
The Open WebUI License is separate from how users authenticate, so connecting LDAP or Active Directory does not change the license terms by itself. What matters for licensing is the branding clause: the license forbids altering or removing Open WebUI branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. If you expect more than 50 users, check the license page and confirm your branding plan before rollout, and ask the Open WebUI enterprise team about pricing, which is not published and is quoted from an expected seat count. Have your legal or procurement team review the terms, since this page does not provide legal advice.
Should we use OIDC instead of LDAP or Active Directory?
OIDC is often the better choice when your identity provider already supports it and you want sign-in, group claims and sessions managed centrally. LDAP suits organizations where the directory is the system of record and no modern identity provider sits in front of it. Open WebUI documents both SSO through OIDC and LDAP, along with SCIM 2.0 provisioning, so the choice is mostly about your identity architecture. Questions to answer first: whether the directory is reachable from every Open WebUI replica, whether group membership arrives in a claim or must be queried, and whether you need back-channel logout. Confirm these details with your directory team before choosing the protocol.
How DeployOpen scopes and delivers an Open WebUI directory integration
DeployOpen approaches Open WebUI with LDAP and Active Directory as a written, fixed-scope integration inside your own infrastructure. The work starts with your directory layout, certificate chain and access model, then covers the Open WebUI configuration, testing and handover your team needs to run it.
How we scope
- Inventory which directory you use: OpenLDAP, Active Directory, FreeIPA or Azure AD Domain Services, and who owns each.
- Confirm LDAPS requirements, certificate authority chain and the service account the bind will use.
- Agree in writing which user groups map to Open WebUI roles and which groups are excluded from sign-in.
How we build
- Configure the LDAP connection in a staging Open WebUI instance and verify certificate validation before production.
- Test sign-in, failed bind, disabled accounts and group-based role assignment with named test accounts.
- Check the deployment topology: multi-replica setups need PostgreSQL, Redis and shared file storage before go-live.
How we hand over
- Deliver the configuration record, directory settings, certificate renewal steps and the group-to-role mapping table.
- Document the rollback path and the test accounts and scripts your team can rerun after upgrades.
- Walk your identity and platform staff through the sign-in flow, logs and common directory errors.
How we support
- Retest directory settings after Open WebUI upgrades, since release changes can affect authentication behavior.
- Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the build.
- Ask for the support response terms and upgrade coverage in the written scope before work starts.

