Active Directory LDAP authentication for XWiki on your own network
A team that wants staff to sign in to a self-hosted XWiki with their existing Active Directory accounts, and no separate wiki passwords, can use the XWiki Active Directory Application. It authenticates users over LDAP on port 389 or LDAPS on port 636 and creates an XWiki profile for each AD user on first login. The extension works with Active Directory Domain Services, Azure AD Domain Services and LDAP-compatible directories, so the first decision is confirming which directory holds your staff accounts. Check that the wiki's network segment can reach the directory on the port you choose, and that the bind account can read user and group objects. Plan to use LDAPS for production so that passwords are not sent across the network in clear text.
The extension needs XWiki 15.10 or later, so the version check comes before any directory work. Confirm that the XWiki line you run meets this minimum. If you run an older release, plan the upgrade first, since the extension will not run on it. Standard Azure Active Directory and SAML are not supported by this extension, so an organization that expects Microsoft Entra ID sign-in through SAML or the standard Azure directory needs a different authentication design. Raise this with your identity team early, because the answer changes the architecture. Also confirm how the open source LDAP authenticator behaves on your XWiki version before you compare it with the Active Directory Application. This section does not establish that authenticator's behavior, so the comparison must be checked against your own release. The extension's details are in the XWiki Store listing for the Active Directory Application.
Profile creation happens on first login, so a user who has never signed in will not have a wiki profile until the first successful authentication. Plan your pilot with a small set of named users who sign in from a browser, then check that each profile appears with the expected name and details. Decide which AD groups should map to XWiki groups before rollout, because group membership is synced at login. Test the mapping with one member and one non-member of each group that controls access to sensitive spaces. Record the bind account, the port, the directory type and the XWiki version in your change record, so the configuration can be reviewed and reproduced after an upgrade.
What the directory and XWiki must provide before configuration
The Active Directory Application depends on five conditions that must hold before anyone edits its configuration. The XWiki version, the directory type, the network path, the bind account and the group design each affect whether login and group mapping can be tested at all. Confirm the exact rights and certificate requirements in the XWiki Store page for the installed version.
XWiki 15.10 or later
The Active Directory Application requires XWiki 15.10 or later. Check the version that production and the test instance actually run, since plans often lag behind what is deployed. If an instance is older, schedule the upgrade and validate it before any directory settings change. Record the exact version in the change ticket and match the extension release to it in the XWiki Store.
Supported directory type
The extension works with Active Directory Domain Services, Azure AD Domain Services and other LDAP-compatible directories. It does not work with standard Azure Active Directory or with SAML, so a cloud-only tenant needs a different login design. Confirm that the directory holding your users' accounts is one of the supported types. Ask your directory team which domain controllers or LDAP endpoints will answer the requests.
Port 389 or 636 reachability
Every XWiki server, including each node in a cluster, must open a connection to the directory on port 389 for LDAP or port 636 for LDAPS. Test from the application hosts themselves, because a administrator laptop can reach a domain controller that the XWiki servers cannot. Confirm that DNS resolves the domain controller names from those hosts and that any firewall between subnets allows the chosen port. Prefer LDAPS on port 636 where the directory supports it, and verify the certificate trust chain on each XWiki host.
Read-only bind account
The extension signs in to the directory with a bind account to look up users and their groups. Give that account read-only rights, and grant only the rights the extension documentation requires for the installed version. Use a dedicated service account with a password policy and rotation process that your directory team owns. Store its password in a managed secret store and keep it out of wiki pages.
XWiki Store pageTested AD group structure
Group mapping copies AD group membership into XWiki groups at each login, so a loosely designed directory group structure becomes wiki permissions on the next sign-in. Decide which AD groups map to which XWiki groups, then test the mapping with a few accounts in each group before pilot users arrive. Assign a named owner who approves group changes and answers for mapping errors.
Choosing LDAP, LDAPS or another sign-in method
Port 389 is the plain LDAP option in the Active Directory Application on the XWiki Store. It suits teams that already control the network path between XWiki and the directory and want the simplest connection to test first. Use a non-production instance to confirm connectivity, login and group mapping before you choose it.
- Network scope: Directory traffic on port 389 is not encrypted unless the connection is upgraded, so keep XWiki and the directory on a network segment you control.
- Directory targets: The application works with Active Directory Domain Services, Azure AD Domain Services and LDAP-compatible directories, so confirm which one you run.
- Version floor: The application requires XWiki 15.10 or later, so an older line needs an upgrade before this option is available.
- Bind account: Use a read-only service account for the directory connection, which limits what a leaked credential can reach.
Confirm with your directory team that the domain controllers accept this connection under your security policy before you pick this option.
LDAPS runs the same application over port 636, so the directory connection is wrapped in TLS. The decision here is about transport security and certificate operations, so the work shifts from network scope to trust configuration. Confirm in the extension documentation for your version whether login behavior differs between the two ports.
- Certificate chain: XWiki's Java trust store must trust the certificate that the directory presents, so plan how the chain is imported and renewed.
- Firewall rules: Open port 636 from the XWiki servers to the directory, and confirm that no other path reaches the directory without it.
- Host names: Connect using the host name listed on the certificate, because an IP address may fail validation.
- Testing: Certificate errors can appear only at first login, so test with one account from each group you plan to map before cutover.
Ask your PKI team who issues and renews the directory certificates, and how a renewal reaches the XWiki trust store, before you commit to port 636.
Standard Azure Active Directory and SAML are sign-in protocols for cloud and federated identity. The Active Directory Application does not support them, so an organization that signs staff in through standard Azure Active Directory or SAML cannot use this extension for that flow. Azure AD Domain Services is a different service and is covered by the LDAP options, so the distinction matters.
- Protocol mismatch: The application authenticates through LDAP directory connections, so it cannot accept a SAML assertion or a standard Azure AD token as the sign-in method.
- Service scope: Check which Azure service your users actually authenticate against, since Azure AD Domain Services and standard Azure AD are not interchangeable for this purpose.
- Separate authenticator: A SAML or OpenID Connect path needs its own authenticator, so plan that component and its testing as a separate workstream.
- Hybrid estates: If on-premises Active Directory and cloud identity both exist, decide which one is the source of truth before you pick an LDAP route.
Confirm with your identity team which directory holds the accounts that must sign in, because that answer decides whether this extension applies at all.
XWiki also includes an open source LDAP authenticator, which is a separate choice from the Active Directory Application. Its role is to check XWiki logins against an LDAP directory, and the two options may differ in how they handle directory types, new users and groups. Read both sets of documentation before treating them as equivalent for your directory.
- Supported directories: Check which directory types the authenticator documents for your XWiki version, and whether Active Directory is covered directly.
- First-login behavior: Confirm whether it creates user profiles on first login, and which profile fields it fills from the directory.
- Group handling: Confirm how directory groups map to XWiki groups, and whether membership refreshes at each login or only at setup.
- Version match: Read the documentation for the exact XWiki version you run, because behavior can change between release lines.
Before you choose, write down your directory type, login flow and group model, then check each option against the XWiki documentation for your version.
How to configure the Active Directory connection step by step
This sequence takes an XWiki instance from a version check to verified Active Directory sign-in, with first-login profile creation and group sync working. Each step closes with a check you can run, so problems surface on a test instance before users depend on the connection. Plan it with your directory team, because the bind account and certificate work sit outside XWiki.
Confirm the XWiki version
Confirm that the XWiki release you run is 15.10 or later, which is the minimum version the Active Directory Application needs. Choose the stable or long term support line you will operate in production, and record the exact version in your change record. Ask your platform team or XWiki provider which line they will support, since that choice sets your future upgrade path. Done when the version shown on the test instance's administration pages matches the release you recorded.
Keep a local administrator account available
Before any directory setting changes, confirm that a local XWiki administrator account exists, has a strong password held in your password vault, and can log in without going through LDAP. Keep at least one such account outside the directory-backed login path for the whole rollout and after go-live. If a directory setting blocks sign-in, this account is the way back into the administration area. Check: log out, log in with the local administrator on the test instance, and open the administration pages.
Create and test the bind account
Ask your directory team to create a service account for XWiki in the Active Directory domain, with read access limited to the users and groups XWiki needs. Store its password in your secrets tool, not in shared documents. Confirm the distinguished names of the user and group search bases with the same team. Test the account from a host that can reach a domain controller, using an LDAP query tool, and confirm it can read the user objects you plan to search. Done when the bind succeeds with the correct password, fails with a wrong one, and returns the expected user entries.
Install the Active Directory Application
On a non-production XWiki instance at the version you confirmed, install the Active Directory Application from the XWiki Store and follow the extension's own documentation. Run the test instance in the same network zone as production so that firewall rules and DNS resolve the same way. Do not change the production login settings yet. Done when the extension appears as installed in the extension list and the XWiki logs show no errors when the instance restarts. The extension's page is at the link below. XWiki Store: Active Directory Application
Trust the directory certificate chain for LDAPS
If you connect over LDAPS on port 636, import the certificate chain that issued the domain controller certificate into the Java truststore used by the Tomcat process running XWiki. Include the internal root certificate and any intermediate certificates in that chain. Use the same host name in the XWiki settings as the one on the domain controller certificate. Confirm the chain from the XWiki host with a TLS test tool before you restart XWiki. Done when the TLS handshake to the domain controller on port 636 validates and a bind test from XWiki logs no certificate errors.
Enter host, port and search settings
In the Active Directory Application settings on the test instance, enter the domain controller host name, then choose port 389 for LDAP or port 636 for LDAPS. Enter the bind account distinguished name and password, along with the user and group search bases from your directory design. Save the settings and keep a written record of each value, since you will reuse them in production. Done when the settings save without error and the extension's connection or search test, where it offers one, returns user entries from the base you set.
Test one user login and profile creation
Sign in to the test instance with one ordinary Active Directory user, using a browser that has no existing XWiki session. Confirm that the login succeeds and that XWiki creates a profile page for that user on first login, with the name and attributes the extension maps. Then log out and sign in again as the same user to confirm that no second profile is created. Done when the user profile exists once, shows the expected fields, and the successful login appears in the XWiki logs.
Map AD groups and verify sync at login
Write a mapping table that lists each Active Directory group by its distinguished name, the XWiki group it feeds, and the rights that XWiki group carries. Keep the table small and assign a named owner who approves changes. Add the test user to one mapped AD group, then sign in as that user and confirm the XWiki group membership appears on the profile. Remove the user from the AD group, sign in again, and confirm whether the membership is removed at that login. Done when both the addition and the removal are reflected after login.
How a staff login moves from XWiki to Active Directory and back
The login starts when a staff member submits a directory username and password to the XWiki server, which sits in the XWiki network zone. XWiki binds to Active Directory Domain Services controllers across the trust boundary over LDAP on port 389 or LDAPS on port 636, locates the user entry, and then checks the password by binding as that user. On first login, XWiki creates a profile in its own store. On every login, it reads the user's AD groups and syncs them to mapped XWiki groups. Check that directory traffic uses LDAPS, that the bind account has only read access, and that group mappings are reviewed before go-live.
Staff login across the XWiki and directory trust boundary.
Deciding how AD groups become XWiki groups
Settle which AD groups grant wiki access before you write the mapping, because each mapped group becomes a XWiki group that you then grant rights to in spaces. The Active Directory Application creates a XWiki profile for each AD user on first login and syncs group membership into XWiki groups at that login. Map only groups that already correspond to an access decision, such as a team that owns a space, and avoid broad groups like all staff unless every employee should reach the content. Ask the directory team who maintains each group, how often its membership changes, and whether any of the groups contain nested members, since nesting often surprises teams during testing. Record the decision for each group, including the wiki permission it unlocks and the named owner who approves additions.
Keep group names stable, because XWiki rights point at the group that the mapping creates, so renaming an AD group later also forces a change on the wiki side. Choose names that describe a function, for example wiki-finance-editors (illustrative), and agree a naming rule with the directory team before go-live so it survives staff changes. For users who need some spaces but not others, avoid placing them in a wide group and granting that group everywhere. Instead, give each space its own groups and let a user hold several memberships, so access follows the owner of each space. Group changes are synced at login, so a user added to a group may not see the new space until the next sign-in. Test both directions, adding a user to a group and removing one, and tell the service desk about the delay so it is not reported as a fault.
Confirm how removed or disabled AD accounts are handled in your XWiki version before you rely on the mapping for offboarding. The supplied material covers profile creation on first login and group sync at login, but it does not say whether a disabled account loses its XWiki profile, whether an active session stays valid until it expires, or whether group memberships are cleared for users who never sign in again. Start with the XWiki Store page for the Active Directory Application and your release notes, then test on a non-production instance with a disabled test account and a test account removed from a mapped group. Record the results in your runbook and add a wiki access check to every leaver process. The Application requires XWiki 15.10 or later, so confirm your version first.
How AD objects map to XWiki profiles and groups
This table compares each Active Directory object with the XWiki object it becomes after sign-in, and when that mapping happens. Read it before setup, because profiles and groups are created or updated during each sign-in, so changes in AD reach XWiki only when a user logs in. Confirm the items marked for checking against the extension documentation for your XWiki version before you rely on them.
| AD object or attribute | XWiki object | When it happens | What the team must confirm |
|---|---|---|---|
| AD user account | XWiki user profile | Created on the first successful login | Minimum XWiki version (15.10 or later) and which AD attributes fill profile fields |
| AD security groups | XWiki group membership | Synced at login, so changes apply at the next sign-in | Which AD groups map to which XWiki groups, and whether membership is removed when AD membership ends |
| Login name used for sign-in | XWiki login identifier | Each sign-in over LDAP on port 389 or LDAPS on port 636 | Which AD attribute supplies the login name and how domain prefixes or suffixes are handled |
| Account disablement (item to confirm in extension documentation) | Ability to sign in to XWiki | Timing to be confirmed in the extension documentation | Whether a disabled or locked AD account blocks new logins, and whether existing sessions end |
Hardening Active Directory LDAP authentication for XWiki
Connecting XWiki to Active Directory moves trust decisions to the directory, so the wiki's security depends on how the bind, transport, group scope and network path are set up. The six cards cover those decisions in the order most teams meet them, from the encrypted connection to the logs that show what happened afterward.
Encrypt the directory connection
The XWiki Active Directory Application connects over plain LDAP on port 389 or over LDAPS on port 636, so use LDAPS wherever your domain controllers support it. Directory queries and bind credentials then cross the network encrypted. Validate the certificate chain on every domain controller the connection can reach by installing the issuing certificate authority in the Java trust store used by the XWiki container. Test each domain controller individually, because a misconfigured one fails only when the connection fails over to it.
Active Directory ApplicationUse a read-only bind account
Create a dedicated service account in Active Directory that can read user and group objects but cannot change them. Use a read-only service account only for the LDAP bind that searches the directory, and keep it separate from any XWiki administrator credentials. Record who owns the account, where its password is stored and how it rotates on a fixed schedule. Rehearse the rotation on a staging instance first, because a changed password that is not updated in XWiki stops every login at once.
Restrict who can sign in
Authentication against Active Directory tells XWiki who a person is, but it does not decide who may use the wiki. Name the allowed group that grants access and review its membership, including nested groups, before go live. Groups created for mail, file shares or other systems can bring in people the wiki was never meant for. Confirm that removing someone from the allowed group also removes the XWiki access they gained through it at their next sign in.
Keep a tested break-glass administrator
Keep at least one local XWiki administrator account that does not depend on LDAP, so a directory outage, an expired certificate or a broken group mapping cannot lock every administrator out. Store its credentials in a sealed vault with named custodians, and keep the account out of daily use. Test the tested recovery path before go live and after each change to the authentication settings, including how the local login is enabled and who is authorized to run it.
Log sign-ins and group changes
Two logs answer the questions an auditor or incident responder will ask: who signed in and which groups they held at the time. XWiki records authentication activity in its own logs, while the domain controllers record group membership changes and failed bind attempts. Forward both sources to a central log store, keep their clocks synchronized, and confirm which events each side records, since one log rarely shows changes made on the other side.
Isolate the XWiki host network
The XWiki host needs a network route to the domain controllers on port 636, or on port 389 if you use plain LDAP, and no other path into the directory. Place it on an internal segment with no inbound route from the internet. If users outside the network need access, publish the wiki through a reverse proxy or gateway that your team controls. Document the firewall rules with the directory team, because a host that can reach every domain controller widens the impact of a compromise.
Active Directory LDAP authentication failures and fixes
This table lists the failures most often seen when XWiki authenticates against Active Directory, with the symptom, the likely cause and the fix for each. Work through the connection and certificate rows first, because they block every later step. The main takeaway is that profile and group problems usually trace back to search scope or to login timing.
| Failure | Symptom | Likely cause | Fix |
|---|---|---|---|
| LDAPS certificate chain not trusted | Login on port 636 fails with a certificate or trust error in the logs | The domain controller certificate chain is missing from the Java truststore used by XWiki | Import the issuing CA chain into the Java truststore of the XWiki runtime, then restart XWiki |
| LDAPS host name mismatch | Login on port 636 fails with a certificate error naming a host mismatch | The server setting does not match a name on the domain controller certificate | Set the server to the DNS name on the certificate and retest from the XWiki host |
| Connection failure on 389 or 636 | Login fails with a connection refused, timeout or unknown host error | A firewall blocks the port from the XWiki host, or the directory name does not resolve | Confirm name resolution and port reachability from the XWiki host, then open the path to the domain controllers |
| Profiles not created | AD users authenticate but no XWiki profile is created on first login | The login filter is too narrow or the search base excludes the OU holding the user | Widen the search base to cover the user OUs and check the login filter against the account attribute in use |
| Group membership out of date | A new or removed AD group is not reflected in XWiki | Groups sync at login, so changes apply only after the user signs in again | Have the user sign in again after the change, then confirm the membership in XWiki |
| XWiki version below 15.10 | The Active Directory Application cannot be used on this instance | The application needs XWiki 15.10 or later | Check the running version, upgrade to 15.10 or later, then install the application |
| Standard Azure AD tenant | Setup against a standard Azure Active Directory tenant does not authenticate users | The extension is not compatible with standard Azure Active Directory | Use Azure AD Domain Services with LDAP, or use the Entra ID OpenID Connect extension covered separately |
What buyers ask before taking on this integration
What drives the cost and effort of an XWiki Active Directory LDAP integration?
Cost follows the number of directories and domains in scope, how many AD groups map to XWiki groups, whether LDAPS needs certificate work, and how much testing your team requires before go-live. Fixed-scope work is quoted from a written scope, so the scope should list each of these drivers. One-time costs cover design, configuration in a test instance, certificate installation, group mapping, testing and handover. Recurring costs appear when XWiki is upgraded and the authenticator must be retested, and when you buy an XWiki support plan. Ask for the quote to name the environments covered, who supplies test accounts and directory access, and whether retesting after an XWiki upgrade is included. The Active Directory Application needs XWiki 15.10 or later, so an older instance adds upgrade work that should appear in the scope.
How long does it take to configure and test AD LDAP login for XWiki?
Duration depends on directory design, certificate work and the number of groups, so no fixed figure can be given before those are known. A single domain with a clear OU structure and a small set of groups is quicker to map than several domains with nested groups. Certificate work matters when LDAPS on port 636 is required: the Java runtime under XWiki must trust the chain presented by the domain controllers, and that chain should be built and tested before a go-live date is set. Group mapping is checked with test accounts that belong to each group. Testing should cover first login profile creation, group sync at login, removal from a group and a disabled account. Ask for a schedule that lists each step and names the directory team's dependencies.
What does the work need from our directory and security teams?
The work needs a bind account with read access to users and groups, a password policy your directory team approves, and a decision on LDAP or LDAPS. Directory teams supply the search base, the attributes XWiki maps to profile fields, and the group names or distinguished names used for mapping. Security teams decide whether plain LDAP on port 389 is acceptable at all, since LDAPS encrypts the session, and they approve the certificate chain and the firewall rules from XWiki hosts to domain controllers. Ask for a named owner of the bind account password, a rotation process and a set of test accounts. Confirm that the domain controllers accept connections from your XWiki network segment before the scope is signed.
Can our own IT team set up XWiki with Active Directory login?
Yes, a team with XWiki administration experience and directory access can do it, provided it can test the configuration outside production first. The work involves editing the XWiki authenticator configuration, creating the bind account, building the group mapping and handling certificates for LDAPS. Teams without those skills often spend the most time on certificates and group design, and a mistake in group mapping can grant access to the wrong wiki spaces. Doing it in-house keeps the knowledge inside your team and avoids a handover step. A partner is useful when the team lacks time, when directory design is contested, or when a compliance review needs written configuration evidence. Decide after a short internal review of your XWiki version, the directory layout and the people who will run the system afterward.
What changes if we need Azure AD or SAML instead?
The Active Directory Application is not compatible with standard Azure Active Directory or SAML, so either protocol needs a different authenticator and a separate scope. The application works with Active Directory Domain Services, Azure AD Domain Services and LDAP-compatible directories over LDAP or LDAPS. For OpenID Connect, the xwiki-contrib OpenID Connect extension can authenticate XWiki users against an external provider, which moves app registration, redirect URIs and claim mapping to the identity team. For SAML, confirm with XWiki SAS and your identity team which authenticator fits your XWiki version before the scope is written. Changing the protocol also changes who owns the work, and the directory team's role narrows to group and attribute data.
Can FreeIPA be used for XWiki Active Directory LDAP login?
FreeIPA is an option only if you confirm, in your environment, that its LDAP tree works with the XWiki authenticator. FreeIPA runs on 389 Directory Server, so the search base, user attributes and group objects need testing against a real FreeIPA tree before you commit to that design. Trust with Active Directory is a separate question. A FreeIPA trust with AD requires the IPA domain to use a DNS domain that does not overlap with any domain in the AD forest, and that DNS plan must be settled before any trust work starts. The FreeIPA trust documentation describes the Samba components involved. FreeIPA is a community project under GPL-3.0-or-later, so the support path is your own team or a partner, and the scope should say who owns upgrades and fixes.
Does XWiki SAS's listed consulting rate apply to this integration?
Not directly. XWiki SAS lists its own consulting at 1200 EUR per day, and that rate requires a Business or Enterprise support plan, so it describes XWiki SAS work rather than a fixed price for this integration. Whether you need such a plan depends on your user count and whether you already hold one, and the XWiki pricing page lists tiers by user count. DeployOpen does not publish a price list, and a quote follows from the written scope. If you are comparing options, ask XWiki SAS whether its rate would apply to any work you plan to buy from them, and ask DeployOpen to map its quote to each item in the scope. Keep both quotes on separate lines so the comparison is clear.
What evidence can DeployOpen provide for a compliance review?
DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. For this integration, the evidence can include a written record of the authenticator settings, the group mapping table, the bind account controls, the LDAPS certificate chain, and test results showing first login, group sync and group removal. These records help your internal reviewers and an independent auditor check the design. Ask for the evidence list in the written scope so it names each artifact, its format and who receives it. The auditor or certification body decides what counts as sufficient, so confirm that requirement with them before the build starts.
How DeployOpen works on this
DeployOpen plans, builds and documents XWiki's Active Directory login inside your own infrastructure, so the directory, the wiki and the network path stay under your control. Each engagement starts with a written scope that names the domain controllers, LDAP or LDAPS ports, group mappings and XWiki version agreed before work begins. The result is a login path your identity and security teams can review and test.
How we scope
- The written scope fixes which AD domains, domain controllers and LDAP or LDAPS endpoints XWiki will query.
- We confirm the XWiki version against the requirement of 15.10 or later before any login configuration starts.
- Engagements are fixed-scope, and ongoing support is available as a retainer once the wiki is live.
How we build
- We configure the Active Directory Application for LDAP on port 389 or LDAPS on port 636.
- We map AD groups to XWiki groups synced at login and test each mapping with a sample account.
- We check first-login profile creation and the LDAP service account permissions against your directory design.
How we hand over
- Handover includes a configuration record with the server endpoints, group mappings, and first-login profile behavior.
- Documentation covers how to add a group mapping, rotate the bind credential and check login failures.
- Your team receives a walkthrough of the login path so administrators can run the integration after handover.
How we support
- Support covers upgrades of XWiki and the Active Directory Application, checked against the version requirement before each change.
- Retainers can include continuous security testing of the login path, including the LDAPS configuration and group mapping.
- Changes to group mappings or directory topology go through the same written scope and retest before they reach production.

