How MISP LDAP and Active Directory login fits your identity model
LdapAuth checks a user's username and password against an LDAP directory such as Active Directory or OpenLDAP, then maps that user to a local MISP account. Identity teams usually choose it when they want people to sign in with their existing directory accounts but the identity provider cannot offer OIDC or SAML, or when the team wants a quick, read-only directory check without standing up a federation service. If the directory already speaks OpenID Connect or SAML, the single sign-on plugins are usually the better fit, and the sibling topics on Keycloak, Entra ID and Shibboleth cover those routes.
LDAP is a password check against the directory, not a federation protocol. The identity provider never issues MISP a signed assertion or token. MISP still stores its own user records, and each of those records carries the role, organisation and API key that control what the user can do. The directory answers one question, whether the credentials are valid and which account they belong to. Access decisions still rest on MISP's local data, so an account removed from the directory does not disappear from MISP on its own. Confirm how your team will disable leavers, because the local record needs to be closed as well.
The MISP platform is open source under the GNU AGPL version 3, as described in the MISP GitHub repository. That licence context says nothing about how LdapAuth behaves. Before you write any configuration, confirm the LdapAuth settings against the plugin shipped in the MISP 2.5 release you intend to run, since option names and defaults are set by that plugin version and should not be taken from older guides.
Which LdapAuth configuration choices fit your directory
This table compares the main LdapAuth decisions for MISP against Active Directory or OpenLDAP, with the situations where each option fits, its risks and what your directory team must confirm before go-live. Read each row against your own directory structure, security policy and user population, because the safe choice often depends on who holds the directory accounts and how many people sit outside the intended group.
| Decision | When it fits | Risks | Confirm in your directory |
|---|---|---|---|
| Reader account versus anonymous bind | A dedicated read-only service account suits most Active Directory estates, where anonymous queries are usually restricted by policy. | A service account with broad read access exposes directory data to MISP. A stored password becomes a credential to rotate and protect. | Whether anonymous binds are permitted, which account type your policy allows for service use, and whether its password expiry is managed. |
| Search filter scoped to a group or OU | Scoping to a dedicated MISP access group or OU fits organisations that want only named staff to reach the platform. | A filter that is too narrow locks out legitimate analysts. A filter that is too broad lets leavers or contractors in if their accounts remain enabled. | Group membership is current, nested group behaviour is understood, and disabled accounts are excluded from the filter. |
| Whole-directory search | Whole-directory search can suit small or single-department deployments where every directory user should have access. | Any enabled directory account may sign in, which expands the attack surface and the number of accounts MISP must audit. | Total directory user count, presence of service and shared accounts, and whether your security team accepts that population. |
| Email pairing with existing users | Pairing fits instances with established local accounts that must keep their roles, organisations and API keys after switching to directory login. | A mismatched or shared email address can bind a directory login to the wrong MISP account and its privileges. | That email values are unique and verified in the directory, and that no local account uses an address belonging to another person. |
| Creating users on first directory login | Creating accounts on first login suits new instances where the organisation prefers not to pre-provision every user. | Every user who passes the filter gets an account automatically, which can bypass onboarding checks on organisation and role assignment. | Which organisation and role new accounts receive, and whether an administrator reviews them before they can publish. |
| Default role for new users | A low-privilege default role fits most deployments, with elevated roles granted by an administrator after review. | A default role with publishing rights lets any authorised directory user push intelligence to sharing partners. | The role your policy assigns on first login, and who approves elevation to org admin or site admin. |
| Mixed authentication with local accounts | Keeping a local emergency administrator fits deployments where a directory or domain outage must not lock out all access. | Local accounts with weak passwords or no MFA become the easiest route into the platform. Mixed mode also complicates offboarding. | The emergency account's storage, password policy, MFA status and a documented process for disabling it when no longer needed. |
| LDAPS (TLS from connection start) | LDAPS fits environments where the domain controller certificate chain is available to the MISP host and the directory team supports it. | An untrusted or expired certificate causes failed binds, which often appear as silent login failures rather than clear errors. | The CA certificate that signs domain controller certificates, its expiry date and that the MISP host trusts it. |
| StartTLS on the directory port | StartTLS fits sites where the directory exposes the standard port and upgrades the connection, and LDAPS is not offered. | If the client does not require the upgrade, credentials may cross the network in clear text. Certificate problems also fail silently. | That the directory accepts StartTLS, that the client is configured to require it, and that the same certificate trust applies as for LDAPS. |
How a MISP login travels from browser to directory
The login starts in the user's browser and reaches the MISP web application, which sends the search through the directory over LDAPS or StartTLS. The reader account runs the search as a service identity, then MISP binds as the user to check the password. MISP pairs the returned email address with the local user record and assigns the role before the session starts. Check the trust boundary: the directory should receive only the reader's search and the user's bind, and MISP should never store the user's password.
Login path from browser through the reader account, user bind, email pairing and role assignment.
Setting up LdapAuth step by step with checks at each stage
This sequence takes a MISP instance from a stock installation to a working directory login, with a test at every stage so that a failure is found where it occurs. The result is a tested LDAP bind, a validated search filter, encrypted transport, paired accounts and a confirmed default role, with a local admin still able to sign in.
Confirm the MISP version and enable LdapAuth
The MISP administrator checks the running version in the administration interface and confirms it is on the 2.5 line, since MISP 2.4 is end of life and the project advises against new 2.4 instances. Next, they enable the LdapAuth plugin in the plugin settings and confirm the authentication module is listed as active. Before changing anything else, they take a database backup and note the current settings. The check is that the login page still shows the standard local form and that a local admin can sign in, so the baseline is known before LDAP is introduced.
Create a least-privilege directory reader account
The directory team creates a dedicated service account whose only purpose is to search for users under the chosen base distinguished name. It should have read access to the attributes MISP needs, such as the login name, email address and group membership, and no write or administrative rights. Its password should be stored in a secrets store and rotated under the same policy as other service accounts. The check is a successful bind from the directory side using only this account, and a failed bind when a wrong password is supplied, so the account behaves as expected before MISP uses it.
Test the search filter from the MISP host
From the MISP server itself, the administrator runs an LDAP client such as ldapsearch with the reader account, the base distinguished name and the intended user filter. This confirms the MISP host can reach the directory on the chosen port and that the filter returns exactly the expected user for a known test login. The filter should match the account name attribute that users type at login, and it should exclude disabled accounts if the directory supports that test. The check is one entry returned for a known user and no entries for a non-existent one. Confirm the exact filter and attribute setting names in the LdapAuth plugin documentation before entering them.
Configure LDAPS or StartTLS and trust the directory CA
The team chooses an encrypted transport, either LDAPS on the directory's TLS port or StartTLS on the standard port, and installs the directory's certificate authority on the MISP host so that the PHP LDAP library can validate the server certificate. The test is repeated with the same ldapsearch command using the encrypted transport, and it should return the same result without certificate warnings. Cleartext binds should not be used, because the reader account password would cross the network unprotected. Confirm the exact transport and certificate setting names in the plugin documentation, and check that the certificate name matches the host name used in the MISP configuration.
Pair directory emails with existing MISP users
The MISP administrator decides how directory accounts will link to users already in MISP, usually by matching the email address, and confirms the plugin option that controls pairing with existing accounts. They test this with one user who already exists locally and whose email address matches the directory entry. The check is that the login succeeds and the MISP user record is reused rather than duplicated, which can be confirmed in the user list. Duplicate accounts created during testing should be removed before continuing, because they can hold orphaned roles and organisation links.
Set the default role for new accounts
The administrator selects the default role that a first-time directory login receives, choosing the most restrictive role that still lets the user work. The role should not carry administrative permissions, and organisation assignment should be checked separately, because a new account in the wrong organisation can see or publish data it should not. The administrator then signs in with a new test directory account that has never logged in to MISP. The check is that the account appears in the user list with the expected role and organisation. Confirm the exact default role setting name in the plugin documentation.
Test a local admin and a directory user
The administrator signs out and tests two logins: a local administrator account, which must still work as a break-glass path, and a directory user with the default role. Each login is checked against the expected permissions in the administration interface. For failures, the MISP application log and the web server log should be reviewed for LDAP error messages, such as invalid credentials, no matching entries or certificate verification failures, which narrow the cause to the bind, filter or transport step. The sequence is complete when both logins behave as expected and the failure messages have been reviewed once so the team knows where to look next time.
How Active Directory and OpenLDAP change the configuration
Active Directory is the most common directory behind MISP logins in enterprises, and its schema is standardized enough that many defaults look correct at first glance. The attribute that identifies a user is usually sAMAccountName, while email is usually carried in mail, but your forest may use a different identifier or store the address in another attribute after a directory migration or custom schema extension. Group membership is typically read from memberOf on the user object, and that attribute reflects only the groups the user is a direct member of, so nested group logic needs to be handled deliberately.
- Identifier and email attributes: Confirm whether
sAMAccountName,userPrincipalNameor another attribute matches the username people type, and confirm which attribute holds the address used for pairing with existing MISP users. - Nested groups: Determine whether required groups are direct or nested. A user who inherits access through a nested group may not appear in a direct
memberOfcheck, so test with an account that uses nested membership. - Referrals: Multi-domain forests return referrals for objects in other domains. Decide whether the search should follow them, and confirm the reader account can read the target domain.
- Reader account: Provision a dedicated, low-privilege service account with read access to the search base. Ask your directory team to document its password rotation and whether it is exempt from account lockout policies.
- LDAPS certificate chain: Domain controllers usually present certificates issued by an internal certification authority. Confirm that the full chain is trusted on the MISP host, including any intermediate CA, before enabling TLS verification.
Before you write the configuration, verify every attribute name against your own schema with your directory administrators, because forest customizations change these defaults.
OpenLDAP is configured by the organization that runs it, so its schema depends on the directory's history and the object classes it loads. Many deployments use uid as the login identifier and mail for email, but some use cn, custom attributes or the inetOrgPerson class with local extensions. Group membership may be modeled as groupOfNames with member attributes, as posixGroup with memberUid, or as a membership attribute on the user, and these models are queried in different ways. Treat the directory's own schema documentation as the source of truth rather than the common examples.
- Identifier and email attributes: Check which attribute the directory uses for login names and whether
mailis populated for every account that needs MISP access. - Group membership model: Determine whether groups use
member(DN values),memberUid(plain names) or a user attribute. The group check must match the model in use, or it will silently deny access. - Nested groups and referrals: OpenLDAP does not expand nested groups in a standard search, so nested access must be flattened or checked through separate group lookups. Confirm whether referrals are configured and whether the reader account can follow them.
- Reader account: Create a bind DN with read access to the user and group subtrees only, using ACLs that you can audit. Document where the bind password is stored and who can change the ACL.
- LDAPS certificate chain: The server certificate is often issued by an internal CA or a self-signed certificate created during setup. Confirm the CA file that MISP trusts matches the chain the server presents, and check its validity period and hostname.
Before you write the configuration, confirm the object classes and attribute names with a directory query, because a schema that looks standard can differ in its group model.
Why LDAP logins fail silently and how to find the cause
The most common LDAP failure in MISP is not an error message but nothing at all: the login page accepts the password, the user lands back on the form, and no account appears. Most silent failures come from one of five places: a bind that succeeds but a search filter that matches no entries, a directory user with no MISP account to pair with, an untrusted certificate on LDAPS or StartTLS, a reader account whose password is locked or expired, or a default role too low to show the content the user expects. Each produces a similar symptom from the user's side, so the debugging order matters more than any single fix.
Start with the MISP application log, because it is the only place that records what MISP itself decided. Confirm where your release writes authentication errors before you read it, since the location and level of detail can differ between versions of the 2.5 line, and the project's MISP GitHub repository and your own installation are the references to check. Look for bind failures, empty search results and pairing misses for the same username, and compare the timestamp against a single test login so that you are reading one attempt, not a day of noise. An empty search result points to the filter, a bind failure points to the reader account or the TLS trust chain, and a pairing miss points to email mismatch or a missing account.
Next, run a test query from the MISP host itself, not from your workstation. Use the same reader account, the same host name and the same search base and filter that the LdapAuth configuration uses, and confirm that the query returns the expected user object. A query that works from a laptop but fails on the MISP server usually means a firewall rule, a DNS difference or a certificate the server does not trust. Only when the MISP log and the host-side query disagree should you open the directory's own bind or audit logs, which show whether the reader account was rejected for lockout, expiry or a failed certificate check. Record which step produced the first failure so the fix is applied once, in the right place.
Security controls for an LDAP-backed MISP login
Pointing MISP at a directory moves part of its access decisions into systems your identity team already runs. The controls below cover the bind account, the transport, the scope of who can log in, the roles they receive, the fallback path during an outage, and the evidence trail, and each one needs a named owner.
Dedicated read-only reader account
LdapAuth binds to the directory with a service account to search for users before it checks their password. Create a dedicated account with read access to the user objects MISP needs and nothing else, not a personal or domain administrator account. Store its password in a secrets manager, rotate it on a schedule your team can follow, and confirm the rotation updates the MISP configuration. Risk reduced: a leaked bind credential that exposes the whole directory. Operations owns: account creation, rotation, and the secrets manager entry.
Encrypted transport with certificate validation
Credentials and user lookups should not cross the network in clear text. Prefer LDAPS, or StartTLS where LDAPS is not offered, and make sure the MISP host trusts the internal CA that issued the directory certificate. Check that certificate validation is enabled rather than disabled to get a connection working, and test with the hostname the certificate names. Risk reduced: interception of the bind password and user credentials on the wire. Operations owns: the CA trust store on the MISP host and certificate renewal dates.
Scoped search base and filter
A broad search base lets any directory account that can authenticate sign in to MISP, including contractors, service accounts and retired staff who still have active entries. Limit the search base to the organizational units of people who need MISP, and write a filter that requires an attribute your joiner and leaver process maintains, such as a group membership. Test with an account outside the scope to confirm it is refused. Risk reduced: unintended logins from directory populations MISP was never meant to serve. Operations owns: the group or attribute used in the filter and its upkeep.
Default role and admin mapping review
Users who sign in through LDAP and do not match an existing account may receive a default role at creation. Set that default to the least privileged role that lets a new user work, and review any path that grants org admin or site admin rights. Repeat the review after each change to group membership rules, because a directory group that was once narrow can widen over time. Risk reduced: privilege escalation through a permissive default or an overly broad admin group. Operations owns: the role policy, the list of groups allowed to hold elevated roles, and the periodic review.
Local emergency admin for directory outages
If the domain controller or LDAP service is unavailable, every directory user loses access, including administrators who would fix the problem. Keep at least one local MISP administrator account that does not depend on LDAP, store its credentials in a sealed location, and test that it still works. Confirm that mixed authentication, where local and directory logins coexist, is configured so the local account is not blocked. Risk reduced: a lockout during an incident when MISP is needed most. Operations owns: the sealed credential, its rotation, and a documented test.
Authentication event logging and review
Record successful logins, failed logins and account changes, then review them. Confirm which events MISP writes to its audit log and which the directory server or the web server records, and forward those to the central log platform your security team monitors. Ask the team to test alerts for repeated failures against one account and for logins by accounts that should have been disabled. Risk reduced: undetected password guessing or use of stale accounts. Operations owns: log forwarding, alert rules, and the review cadence.
What buyers ask before setting up MISP LDAP login
How long does an LDAP or Active Directory integration for MISP take?
The duration depends mainly on how many directory teams must act and how quickly they can do it, not on MISP itself. The work splits into a configuration phase on the MISP side, a directory phase where a service account, group structure and CA certificate are prepared, and a test phase with pilot users. Organisations with a single domain, one directory team and an existing reader account usually move faster than those needing new service accounts approved, multiple domains searched, or certificate chains supplied by another team. Ask any partner to show the phases and the dependencies on each team in the written scope before agreeing a timeline.
What drives the effort and cost of an MISP directory login project?
Effort is driven by the number of directories and domains, the number of organisations and roles that must map from directory groups, the amount of certificate work for LDAPS or StartTLS, and any custom role mapping beyond the default. A small, single-domain setup with one default role costs far less to deliver than a multi-domain forest with several organisations, each with its own admin and group rules. Ask for a quote that lists each of these items separately, states who performs the directory-side work, and identifies which items are one-time (configuration, testing, documentation) and which recur (reviews after directory changes, upgrades).
Can our internal team set up MISP LDAP login without outside help?
Yes, a team with MISP administration skills and access to the directory team can configure LdapAuth alone, provided it has a clear test plan. The hard parts are usually not the MISP settings but the directory details: choosing a reader account with the right least-privilege scope, writing a search filter that matches the intended users, and getting a CA certificate trusted by the MISP host. Teams that have not debugged LDAP bind or filter errors before often lose time on silent failures. An outside partner adds value mainly when the team lacks LDAP experience, must meet a compliance deadline, or wants a documented, reviewed configuration.
What does the directory team need to provide for MISP LDAP login?
The directory team needs to provide a dedicated, read-only bind account for MISP, the search base and filter that identify MISP users, and the group or attribute names used to decide who may log in and which default role applies. If you use LDAPS or StartTLS, it also needs to supply the CA certificate chain that signs the domain controllers' certificates. Ask the directory team to confirm that the bind account can read the attributes MISP needs, including the email attribute used to pair accounts, and that password rotation and account lockout policies will not break unattended logins. Agree in writing who owns each of these items.
Does MISP still need local accounts if users log in through LDAP?
Keep at least one local administrator account, because a directory outage, a changed bind password or a misconfigured filter can lock every directory user out of MISP. LdapAuth also supports pairing directory logins with existing MISP users by email, so accounts created earlier continue to work after the change. Plan which accounts remain local, such as an emergency administrator, the account used for API automation and any sync accounts, and document how each is protected, including MFA where your policy requires it. Confirm the exact handling of mixed authentication in the plugin version you run, since behaviour can differ between releases.
What happens to MISP access when a user leaves the directory?
A user who is disabled or removed in the directory can no longer complete an LDAP bind, so new logins stop, but an existing MISP session or API key may remain valid until it expires or is revoked. Directory deprovisioning therefore does not, by itself, remove MISP access. Set session lifetimes, review API keys tied to departing users, and disable the corresponding MISP accounts through a documented offboarding step. Also confirm how the account and its events are handled, since removing a user should not silently remove shared intelligence. Test the process with a pilot user before relying on it.
Limits to confirm in your environment before go-live
LdapAuth behaves differently across MISP releases, directory layouts and deployment models, and the documentation available to us does not settle every detail. The cards below list the points to verify in a test environment before any user depends on directory login.
Exact LdapAuth settings per release
The configuration keys, defaults and plugin behaviour can change between MISP releases. Confirm every setting against the documentation for the exact version you run, including the version of the LdapAuth plugin bundled with it. Record the release number in your change ticket so that a later upgrade can be checked against the same list. Do not copy settings from older blog posts or forum threads without matching them to your release.
MISP releasesNested groups and referrals
Group-based role mapping depends on how your directory exposes membership. Test a user who is a member only through a nested group, and a user in a child domain or a forest that answers with referrals. Confirm whether MISP resolves nested membership, whether it follows referrals, and what happens when the lookup returns nothing. A silent miss here usually means the user logs in with a default role they should not have.
Timing of password and account changes
Disabling an account in Active Directory does not guarantee that an existing MISP session stops working. Test three cases: a password change, a disabled account, and removal from a role group. For each, find out whether the change applies at the next login, at session expiry, or only after a sync job or manual action. Your offboarding procedure should match the answer, and it should include disabling the local MISP user where the directory is not the only authority.
API keys for directory-backed accounts
Users who sign in through the directory may still hold MISP API keys that work without any directory check. Confirm whether a key keeps working after the account is disabled, whether keys can be scoped or expired, and who can create them. Automation and sync jobs often run under these accounts, so a disabled user can still pull or push data if their key remains valid. Treat key review as part of the offboarding checklist.
Supported directory versions and TLS policy
Confirm which Active Directory functional levels and OpenLDAP versions your test scenario covers, and whether the bind method you choose is accepted by your directory policy. Verify that LDAPS or StartTLS negotiates a modern TLS version, that the server certificate chain is trusted by the MISP host, and that certificate verification is not disabled to get the test working. Record the outcome so your security team can review it.
Behaviour in Docker and Kubernetes
In containerized deployments, the CA bundle, DNS resolution for domain controllers and outbound network paths must reach the MISP container or pod, not only the host. Confirm where the LDAP configuration is stored and how it persists across image rebuilds, and whether the plugin settings survive a rolling update. Test a fresh container start with directory login enabled before you rely on the same manifest in production.
How DeployOpen scopes and delivers MISP directory login
DeployOpen treats MISP LDAP and Active Directory login as a defined piece of work inside your own infrastructure. We agree the directory design, the LdapAuth settings and the test plan in writing before any change, then build, verify and document the result so your identity and security teams can review it.
How we scope
- Written scope names the directory type, Active Directory or OpenLDAP, and the domain controllers or servers involved.
- Scope records the reader account, search filter, and how LDAP users pair with existing MISP accounts by email.
- Scope fixes the default role, mixed authentication rules, and whether LDAPS or StartTLS is required.
How we build
- We configure LdapAuth on a test MISP instance against a staging directory, then promote the settings to production.
- Test cases cover valid logins, disabled accounts, wrong passwords, group membership and fallback local admin access.
- We confirm certificate trust for LDAPS or StartTLS and record each setting with its reason.
How we hand over
- You receive the configuration, the reader account setup notes and a record of every test run and its result.
- A runbook covers debugging silent failures, including where to read logs and what to check first.
- Handover includes a walkthrough with your identity team so they can review the design and own changes.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, sized to your MISP release cycle.
- Support covers re-testing LDAP login after MISP upgrades and directory or certificate changes.
- Ask any provider to confirm how they handle reader account rotation and change control for directory bind credentials.

