Wazuh dashboard login with Active Directory or LDAP

Authenticate Wazuh dashboard users against Active Directory or LDAP with LDAPS, group-to-role mapping for administrators and read-only users, and changes applied with securityadmin.

On this page

Why teams connect the Wazuh dashboard to Active Directory or LDAP

A security team usually needs dashboard access to follow the same joiners, movers and leavers that already happen in the corporate directory. If an analyst moves to another team or leaves the company, their access to alerts should change in the same process, not in a separate list maintained by hand inside the Wazuh dashboard. Connecting the dashboard to Active Directory or LDAP lets the directory remain the source of truth for who can sign in and which role they receive.

Wazuh offers two sign-in paths that matter here. The first is its internal user database, which is simple but means every account and role is managed in Wazuh itself. The second is SAML single sign-on, which delegates authentication to an identity provider, documented in the Wazuh single sign-on guide. The path this topic covers is different again: the dashboard's security plugin checks credentials directly against an LDAP directory, including Active Directory, and then maps directory groups to Wazuh roles. That matters for organizations that run Active Directory on premises and have no federation service in front of it.

Before any work starts, confirm which directory the dashboard will bind to, which group names define administrators and read-only users, and whether the directory offers LDAPS with a certificate your team can trust. Also confirm who owns the bind account the dashboard uses to search the directory, and how that account's password will be stored and rotated. Ask whether the Wazuh indexer nodes and the dashboard can reach the domain controllers over the required ports, and whether a fallback administrator account will remain available if the directory is unreachable. This page explains how the login works, when it fits, and what to verify first, so that the scope and the change window can be agreed in writing before configuration begins.

Which directory source fits your environment

Active Directory Domain Services is a Windows Server role that stores users, computers and other objects, replicates directory data to every domain controller in a domain, and provides a schema, a global catalog and a query and index mechanism. Microsoft's comparison notes that most on-premises apps authenticate against Active Directory with LDAP, Windows-integrated authentication (NTLM and Kerberos) or header-based authentication. For a Wazuh dashboard, LDAP is the path that applies, so the dashboard connects to domain controllers directly rather than through Kerberos.

  • LDAPS certificates: Confirm that domain controllers present certificates issued by a CA your Wazuh hosts trust, and that the certificate names match the hostname you configure.
  • Bind account: Create a dedicated, low-privilege service account with read access to the user and group objects Wazuh needs, and document its password rotation.
  • Replica reachability: Confirm that the Wazuh server can reach more than one domain controller on the LDAPS port, so a single controller outage does not lock out administrators.
  • Group scope: Identify the groups that will map to administrator and read-only roles, and confirm they sit in the search base you configure.
  • Nested groups: Check how your domain stores group membership, because role mapping depends on the group names the directory returns.

Confirm these details with your Active Directory team and your Windows Server owners before you copy any directory settings into the dashboard configuration.

Configuration options and when each one fits

This table compares the main ways to authenticate Wazuh dashboard users against a directory and what each choice asks of your team. Read each row against your directory layout, your administrator model and how much you trust the directory during an outage. The main takeaway is that role mapping and transport security decide most of the risk, and an internal fallback account should be kept deliberately rather than by default.

OptionWhen it fitsMain trade-offWhat to confirm first
LDAP-only authenticationSmall environments where every dashboard user already exists in one directory and no one needs a local accountEvery login depends on directory availability, and a directory outage can lock out all administratorsWhether a directory service account can bind and whether anyone can still reach the dashboard if the directory is down
LDAP with group-based role mappingTeams that want directory group membership to decide who is an administrator or a read-only userGroup changes take effect at login, so stale or overly broad groups quietly grant accessWhich groups exist, who owns them and how removals are reviewed
LDAPS (TLS-protected LDAP)Any production use, since credentials and directory queries cross the networkRequires a certificate chain the Wazuh components trust, which adds renewal workWhich CA issued the domain controller certificates and that the chain is available to Wazuh
Plain LDAPOnly isolated test labs where traffic cannot be observed by othersBind credentials and user passwords can be read on the wireNothing in production; retire it before any shared environment is connected
Active Directory attribute mappingWindows-centric organizations where users are identified by sAMAccountName or userPrincipalNameAttribute names and group distinguished names must match the forest layout exactlyThe attribute used for usernames, and whether nested groups are needed for role mapping
Generic LDAP attribute mappingNon-Microsoft directories such as OpenLDAP, where schema and attribute names differMore manual testing of the schema, and mistakes often show up only as failed or empty loginsThe directory schema, the user and group object classes and a test account in each group
Internal user database as fallbackKeeping at least one named administrator who can sign in while the directory or certificate chain is unavailableLocal passwords and their rotation remain a separate control to manageWho holds the fallback credentials, where they are stored and how their use is logged

Setup sequence for LDAPS login and role mapping

This sequence moves the Wazuh dashboard from internal accounts to directory-backed sign-in over LDAPS, with administrator and read-only access set by directory group membership. Each step closes with a check you can run before moving on. Take exact file names and commands from the documentation for your installed release.

  1. Confirm directory endpoints and the bind account

    The directory or security team provides the LDAPS hostnames for each domain controller or LDAP server, the port, the user and group search bases, and a read-only bind account used only for lookups. The Wazuh indexer host must be able to reach those endpoints on the LDAPS port. Run a directory query from the indexer host using the bind account and confirm that it returns your test user and the groups that user belongs to. If the bind account can change directory objects, ask for a narrower account before continuing.

  2. Trust the directory certificate chain for LDAPS

    Obtain the root and any intermediate certificates that issued the directory server certificate, then place them in the truststore that the Wazuh indexer uses for outbound TLS, following the steps in the documentation for your release. Restart the indexer service as the documentation directs. Verify the chain from the indexer host with a TLS client test against the LDAPS endpoint and confirm the handshake completes with a verified chain, not with certificate warnings that you have chosen to ignore. Record the certificate expiry date for the renewal calendar.

  3. Back up security settings and edit authentication

    Before any change, copy the current OpenSearch Security configuration directory used by the Wazuh indexer, so you can restore it if a later step fails. Open the authentication configuration file for the security plugin, usually config.yml in the security configuration directory, and add an LDAP authentication backend with the LDAPS hosts, the bind account, the user search base, the username attribute and the TLS settings from the previous step. Keep the existing internal authentication domain in place so a local administrator can still sign in. Check that the file parses as valid YAML and that file ownership matches the original.

  4. Map administrator and read-only groups to roles

    In the authorization section of the same configuration, define a group search that returns the directory group names or distinguished names for each user. Then map the administrator group to the full administrative role and the auditor or read-only group to a custom read-only role, using the role mapping file described in the documentation for your release. Confirm that the group distinguished names match the directory exactly, including case and the base path. Verify the mapping by listing the expected group for each test account from the directory query used in the first step.

  5. Apply the change with securityadmin

    Security plugin changes in the indexer do not take effect from the file alone. Run the securityadmin tool from the indexer installation, pointing it at the configuration directory and the indexer endpoint, with the admin certificate options your release documents. The indexer team should run this from a host that holds the admin certificate. Verify success by reading the command output for a confirmation message, then query the security configuration through the indexer to confirm the LDAP backend and role mappings are loaded. Keep the backup from the earlier step until the login tests pass.

  6. Test sign-in for administrator and read-only users

    Sign in to the Wazuh dashboard with one account from the administrator group and one from the read-only group. The administrator account should reach configuration and management areas, and the read-only account should see alerts and dashboards but be unable to change settings, users or index management. Record the username, the mapped role shown in the security views, and the result for each account. If a role is wrong, check the group distinguished name in the mapping before changing anything else. Confirm that the local administrator still signs in.

  7. Test an unmapped account and failure handling

    Sign in with a valid directory account that belongs to neither mapped group. The dashboard should deny access or give no privileged role, and the event should appear in the indexer logs with the directory lookup result. Next, check a deliberately wrong password for a mapped user to confirm that the login fails cleanly. Finally, confirm that the indexer logs contain no bind account password and that the local administrator recovery path is documented for the operations team. Only close the change after these checks are recorded.

How a dashboard login reaches the directory and returns roles

A login starts in the browser, passes to the Wazuh dashboard host, and the security configuration queries the directory over LDAPS. The directory returns the user's group memberships, and the mapping turns those groups into Wazuh roles that the indexer enforces on every search. Check each trust boundary: the directory connection should be encrypted, the bind account should be read-only, and the roles seen in the indexer should match the groups the user actually holds.

Trust boundaries between the browser, dashboard host, directory and indexer during a directory login.

Security risks to design out before go-live

Connecting the Wazuh dashboard to a directory changes who can reach the console and what they can do once inside. The risks below cluster around the bind channel, the privileges granted through the directory, and the access paths that must survive a directory outage. Each one has a control your team can check before users depend on the new login.

Credentials sent over plain LDAP

A simple bind over unencrypted LDAP sends the bind account password and each user's password across the network in a form that can be captured. Configure the directory connection with LDAPS or StartTLS and verify the server certificate chain against your internal CA, not by disabling validation. Check that the dashboard's LDAP settings point at the TLS endpoint and that a packet capture on the path shows no readable credentials. Confirm the exact configuration keys with the Wazuh documentation for your release.

Wazuh SSO docs

Over-privileged bind account

The service account Wazuh uses to search the directory often gets more rights than a lookup needs, such as write access or membership in privileged groups. A compromise of the dashboard host would then expose the directory itself. Create a dedicated, non-interactive account with read access to the user and group objects it must search, and nothing more. Test the account's effective permissions and confirm it cannot modify objects or reset passwords.

Broad group mappings grant admin rights

A mapping that matches a large or loosely maintained group can hand administrator rights to people who were never meant to have them, including nested members and contractors. Map administrator roles only to a small, named security group with a documented owner and an approval path for membership. Verify the mapping by logging in with a test account from each group and confirming the role assigned. Review who holds each mapped group on a fixed schedule.

Access lost when the directory fails

If the dashboard depends entirely on the directory, an outage, a certificate expiry or a network change locks every analyst out of alert triage during an incident. Decide which accounts must keep working without the directory and how often the team will need them. Test a login with the directory unreachable from the dashboard host, and record how long it takes to recover access. Plan this with the directory team, since their maintenance windows affect your access.

Untested break-glass admin account

A break-glass administrator is an internal account kept for emergencies when the directory or SSO path is broken. Many teams create one and never log in with it, so it fails when needed. Create the account, store its credentials in a sealed, access-logged location, and restrict its use to named people. Log in with it in a test window to confirm it works and that its use generates an alert in your monitoring.

Security config changed without backup

Changes to authentication and role mapping files apply to the whole dashboard, and an error can lock out every user, including administrators. Before editing, back up the security configuration files and the indexer security index, and record the working state under version control. Apply changes with the documented securityadmin procedure, then verify with a test login for each role. Confirm the rollback steps in your own environment before the change window opens.

Questions buyers ask before connecting Wazuh to Active Directory

What does it cost to connect Wazuh dashboard login to Active Directory?

The cost is mostly labor, and the amount depends on how many directory and Wazuh decisions have to be made and tested. The self-hosted Wazuh software is open source with no license fee, so the main costs are the engineering time to configure the security plugin, the directory service account and group design work, certificate work for LDAPS, and testing across administrator and read-only roles. Some organizations also pay for Windows Server licenses if they add a new domain controller, which Microsoft's pricing page describes as licensed per core with a minimum of 16 cores per server. One-time costs cover the initial build and test. Recurring costs cover certificate renewal, group changes and retesting after Wazuh upgrades. Ask any provider for a written quote that lists each of these items separately.

What drives the effort and how long does the work take?

Effort rises with the directory and the role model, not with the Wazuh dashboard itself. The main drivers are how many domains or forests you have, whether users are nested in several groups, how many roles you need beyond administrator and read-only, whether LDAPS already works from the Wazuh indexer nodes, and how much testing your change process requires. We cannot give a duration from the supplied facts, so ask the provider to state the duration for your specific scope in the quote, and to list which items depend on your directory team's availability. A narrow scope with one domain and two roles takes far less time than a multi-domain environment with audit requirements.

What does our team need to provide before the work starts?

Your team needs to provide access and information that only your organization holds. Typically this includes a directory service account with read access for binding, a named contact with directory administrator rights who can create or confirm groups, the group lists that map to Wazuh administrator and read-only access, the LDAP server host names and the CA certificate chain for LDAPS, and a test user in each group. You also need a change window for the Wazuh indexer security configuration and a rollback plan that keeps a working local administrator account. Ask the provider to confirm this list in writing so nothing is discovered during the build.

Can an in-house engineer set this up without a partner?

Yes, an engineer who knows Linux, the Wazuh indexer security configuration and your directory can do this in-house, and many teams do. The work is documented in the Wazuh documentation, and the difficult parts are usually the LDAP search filters, the group-to-role mapping and the certificate trust chain. Decide based on whether you have someone who can own the change after go-live, test it after each Wazuh upgrade and explain the configuration to auditors. A partner makes sense when the directory is complex, when the timeline is short, or when you want an independent review of the configuration before production use.

Why does LDAPS certificate work take so much time?

LDAPS requires the Wazuh indexer nodes to trust the certificate presented by your domain controllers or LDAP server, so certificate chain problems are the most common blocker. The work includes obtaining the root and intermediate CA certificates, confirming the host name in the certificate matches the name in the configuration, and checking that every node in a distributed deployment has the same trust material. Plain LDAP without TLS sends credentials in a form that should not be accepted in production. Ask whether your internal CA will issue the certificates and how renewals will be scheduled, because expired certificates will stop logins without warning.

What goes wrong when group-to-role mapping is designed poorly?

Poor group design usually gives too many people administrator access or locks legitimate users out. Common problems include nested groups that the LDAP search does not expand as expected, role mappings that match a broad group such as all domain users, and mappings that depend on group names that change during reorganizations. Keep the administrator group small, give read-only access to an auditor group, and test one account from each group after every change. Record which directory groups map to which Wazuh roles so that reviewers can check the mapping against your access policy.

When should we use SAML single sign-on instead of LDAP?

Choose SAML when your identity provider can issue SAML assertions and your organization wants single sign-on for the Wazuh dashboard through a federated identity system. Wazuh supports SAML alongside its internal user database and documents guides for several providers, including Microsoft Entra ID and Keycloak. Microsoft's comparison notes that Active Directory needs a federation system such as AD FS for SaaS applications, so SAML may fit better if you already run that federation. LDAP is simpler when Active Directory is the only source of identity and the dashboard is internal. Confirm the supported provider and the fallback administrator plan before choosing either path.

How do we verify the configuration before real users depend on it?

Verify it with a written test plan that covers at least one account from each role, a disabled account, a user outside every mapped group, an expired certificate scenario and a failed bind. Confirm that the administrator group can make changes, that read-only users cannot, and that a failed login is recorded in the logs. Keep the test results with the change record so that auditors can see how access was checked. Ask the provider whether the test plan and evidence are part of the fixed scope, and whether retesting after each Wazuh release is a separate retainer.

Where to read the official configuration details

The exact authc and securityadmin steps for this integration belong to the Wazuh documentation for your installed version, so treat that source as the authority and use the other references here for background. Start with the Wazuh single sign-on section of the Wazuh single sign-on documentation. It covers how the Wazuh dashboard hands authentication to an external identity provider, and it sets out the SAML guides for providers such as Okta, Microsoft Entra ID and Keycloak. Read it for the dashboard-side model, then confirm whether the LDAP backend and the directory settings you need are described for your release line, which is 4.14 at the time of writing. Note the release you are on, because the page layout and configuration keys can change between patch releases.

The LDAP server background comes from the OpenLDAP 2.6 Administrator's Guide introduction. It explains what slapd is, how it authenticates clients through SASL and TLS certificates, and how its replication options work. Use it to understand the directory you are connecting to if your organization runs OpenLDAP rather than Active Directory, including how TLS is configured on the server side before you enable LDAPS in Wazuh. It does not describe Wazuh's dashboard configuration, and it does not replace the vendor's procedure for applying changes. Active Directory environments need a different source for directory structure, so confirm group and attribute names with your directory team before copying any example.

Before you edit anything, record the current opensearch_security configuration and the dashboard files, and confirm the exact securityadmin invocation and certificate paths in the version-specific documentation. Ask your Wazuh contact or the documentation maintainers to confirm any step that is unclear for your deployment type, such as all-in-one or distributed. A reviewer should be able to trace each setting in your environment back to a page of the official documentation for the same release.

How DeployOpen scopes and delivers Wazuh directory login

DeployOpen delivers Wazuh directory login under a written, fixed scope agreed before any change is made to your Wazuh dashboard or directory. The scope names the directory design (which domain or forest, which bind account, which user and group search bases), the LDAPS endpoint and trust chain, the group-to-role mapping for administrators and read-only users, the testing plan and the handover. Work runs inside your own infrastructure, whether that is your cloud accounts, data centers or an air-gapped network, so the directory, the Wazuh indexer and the dashboard never leave your control. Your identity team and your security team review each change to the authentication and authorization files before it is applied with securityadmin.

Before scoping, confirm the facts that shape the work: which Active Directory or LDAP implementation you run, whether Windows Server 2022 or 2025 domain controllers are in use, whether a bind account with read-only directory access already exists, and whether your Wazuh deployment is single node or distributed. Those answers drive the number of configuration surfaces, the testing matrix and the rollback steps. Ask for them to be recorded in the scope document so that the quote reflects your environment rather than a generic one. DeployOpen does not publish a price list, so the quote follows directly from that written scope, and the cost components (directory access, change windows, testing time and handover) are itemized against each deliverable.

Ongoing support is available as a retainer. Retainers cover reviewing Wazuh upgrades that touch the security configuration, retesting login after directory changes such as certificate renewal or domain controller replacement, and reviewing group membership mappings as your organization changes. Ask whether a retainer is needed at all before signing, and ask what the handover package contains, including the tested configuration files, the role mapping table and the break-glass procedure for the internal administrator account.

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.