SuiteCRM LDAP authentication with Active Directory

Configure SuiteCRM 8 to check user passwords against Active Directory over LDAP, with the .env.local settings, auto-created users and a test plan before you switch people over.

On this page

How SuiteCRM 8 LDAP login with Active Directory works

Your IT team wants staff to sign in to SuiteCRM 8 with the credentials they already use on the Windows network. The short answer is that SuiteCRM 8 uses its built-in LDAP authenticators, switched on with AUTH_TYPE=ldap in .env.local. That setting is separate from the SAML option, which uses AUTH_TYPE=saml, and separate from the API logins that integrations use. Keep those three paths apart in your design from the start, because a change to one does not change the others.

The directory being queried is Active Directory Domain Services, the Windows Server role that stores users, computers and other objects and replicates that data to every domain controller in a domain. Microsoft's comparison of Active Directory and Entra ID notes that most on-premises applications authenticate against Active Directory with LDAP, so LDAP is the documented route for a self-hosted CRM that needs to check passwords against an on-premises domain. SuiteCRM's LDAP support is built on Symfony Security LDAP authenticators, so the SuiteCRM side is a bind and search configuration rather than a custom integration.

Before you write any settings, confirm three things with your directory team: the service account SuiteCRM will bind with, the search base that holds the staff accounts, and which attribute holds the login name your users type. Also confirm whether your domain controllers accept the connection type you plan to use. Each of these is specific to your forest and is not something this page can assume. Plan a staging instance for the first run, because the .env.local values control who can sign in, and a wrong search base can quietly lock out the whole sales team. Remember that SuiteCRM 8 reads .env.local, not the legacy LDAP screen, so changes made in one place will not appear in the other.

What you need before configuring LDAP login

Most LDAP login problems trace back to something settled before the first .env.local edit: the SuiteCRM version and its runtime stack, the directory account SuiteCRM uses to search, the network path and certificates, and a staging instance to test in. Work through these cards before you touch production users.

SuiteCRM 8 version and runtime stack

Confirm the SuiteCRM 8 minor release you will run and check it against the compatibility matrix before you install anything. For SuiteCRM 8.10, the matrix lists PHP 8.2, 8.3 and 8.4, Apache 2.4, MariaDB 10.6, 10.11, 11.4 and 11.8, and MySQL 8.0 and 8.4 on Linux, Unix or macOS. If you are still on SuiteCRM 7, LDAP settings from that line do not carry over, so plan the migration first.

Compatibility matrix

Directory service account

Create a dedicated, low-privilege account in Active Directory that SuiteCRM uses only to search for users under the user search base. It needs read access to that base and no write rights or group memberships that grant admin access. Ask the directory team how the password will be stored, rotated and monitored, since a service account password sits in configuration on the web host.

Search base and user attributes

Decide which organizational unit holds the people who should log in to SuiteCRM and set that as the user search base. Scoping the search narrows who can authenticate and keeps disabled or service accounts elsewhere in the directory out of the CRM. Confirm with the directory team which attribute holds the login name, such as sAMAccountName, because SuiteCRM must match it to the username users type.

Network paths and certificates

The web host running SuiteCRM must reach the domain controllers over the LDAP port your environment uses, and the firewall rules must allow it from the web tier. If you connect over LDAPS, the domain controllers' certificate chain must be trusted by the PHP runtime on the SuiteCRM host. Test the path with the same host and account you plan to use, not from an administrator workstation.

A staging instance

Run the LDAP configuration on a staging copy of SuiteCRM with a test directory group before production. Staging lets you confirm auto-creation, username matching and the password flow without locking real staff out. The SuiteCRM migration guidance also recommends staging, with files and database backed up first, because it helps you catch changes that would break customizations.

Directory platform licensing

Windows Server editions, core licensing and client access licenses are a separate decision from SuiteCRM and sit with the Windows team. Microsoft's pricing page describes per-core licensing with a 16-core minimum per server and client access licenses for each user or device that accesses the server. Confirm the directory version, its support dates and the licensing position with your Windows team before you plan changes to the domain.

Minimum per server
16 cores
Windows Server pricing

How to configure LDAP login step by step

This sequence takes SuiteCRM 8 from an untouched login path to a tested Active Directory sign-in for one pilot account, with a check at each stage so the directory connection is proven before other users depend on it.

  1. Back up files and database first

    Before any change, the administrator takes a full backup of the SuiteCRM 8 files and the database, and confirms the backup can be restored on a separate system. Make the same change on a staging instance first where one exists. The step is complete when the backup has been written to storage outside the server and a restore test has been recorded. Keep a copy of the current .env.local so the previous login settings can be put back if the pilot test fails.

  2. Confirm the directory details with your AD team

    Before editing any file, the SuiteCRM administrator and the Active Directory team agree on the directory server address, the bind account that SuiteCRM uses to search the directory, the base distinguished name for user searches, and the attribute that holds the username SuiteCRM users type at sign-in. Ask the directory team to confirm that the bind account has read access to the relevant user container and that a test user exists in that container. The step is done when these values are written down and the directory team has confirmed them.

  3. Set the LDAP values in .env.local

    The administrator sets AUTH_TYPE=ldap in the SuiteCRM 8 .env.local file and fills in the LDAP connection keys exactly as named in SuiteCRM's LDAP configuration reference, including the server, bind and search settings that match the values agreed in the previous step. Use the key names from that reference and do not copy keys from the legacy LDAP screen, because SuiteCRM 8 login does not read that configuration. The step is complete when the file has been saved with no unrelated changes and a diff against the backup shows only the intended lines.

  4. Clear the cache or run Repair and Rebuild

    After saving .env.local, the administrator runs bin/console cache:clear on the SuiteCRM host, or runs Repair and Rebuild from the admin area, as SuiteCRM's reference directs. Without this step the application can keep serving the previous login configuration. The step is complete when the command finishes without errors and the login page loads normally. If the page fails to load, restore the saved .env.local, clear the cache again and check the web server and PHP logs before trying again.

  5. Test one pilot account with the correct password

    A single pilot user, chosen by the directory team and the SuiteCRM administrator, signs in through the standard login page with the correct directory password. The administrator checks that the user reaches the home page and that the user record in SuiteCRM shows the expected username. Confirm in the application logs that the attempt was handled by the LDAP authentication path. The step is complete when the pilot account signs in and the result is recorded with the time and the account name.

  6. Confirm a wrong password is rejected

    With the same pilot account, the tester enters an incorrect password and confirms that SuiteCRM refuses the login and shows no session. The tester also checks that a disabled or nonexistent directory account is refused. Review the log entries for both failed attempts to confirm they were recorded. The step is complete when both rejected attempts have been documented, because a login that accepts any password is a far more serious fault than a login that fails to connect.

  7. Check auto-creation and API behavior before wider rollout

    Confirm how SuiteCRM creates user records for first-time directory sign-ins in your build, and check which accounts or roles those new users receive. Then confirm that API logins are tested separately, because SuiteCRM documents that the v4 and v8 API logins do not use LDAP. If v4 access is needed, the administrator also sets LDAP under Password Management as the reference describes. The step is complete when the team has written down the auto-creation behavior, the role assigned to new users, and the API login method for each integration, and has reviewed these with the directory and security teams before moving other users over.

Why API logins and the legacy LDAP screen are separate

Browser users sign in through the SuiteCRM 8 login screen. When LDAP is enabled, that screen checks credentials against the directory through the Symfony Security LDAP authenticators, and the login is configured in .env.local rather than in the legacy configuration. This is the only path the new LDAP settings govern, so it is the one that changes when you switch AUTH_TYPE to ldap.

  • Controlled by the .env.local settings, read by the SuiteCRM 8 application.
  • Scope covers people who open the web interface and sign in with a directory account.
  • Ignores the legacy LDAP settings, so editing those screens will not affect browser sign-in.
  • Requires a cache clear or Repair and Rebuild after each change to .env.local.
  • Session behavior is separate from any API token, so revoking directory access does not automatically end API clients.

Before you cut over, confirm that a test account can sign in through the browser and that a disabled directory account is refused.

How users are created and matched on first login

Decide which Active Directory attribute will identify each user before you enable LDAP login. The value the directory supplies at sign-in is matched to a SuiteCRM username, so that choice determines whether an existing account is found, whether a new one is created, and how names look in audit logs and record ownership. In most Active Directory environments the sAMAccountName (the pre-Windows 2000 logon name) and the userPrincipalName are the two candidates, and they often differ in format and in case handling. Confirm in the SuiteCRM 8 LDAP configuration reference which attribute the installed version uses for the login identifier, whether the match is case-sensitive, and whether a username can later be changed without orphaning records. Test with a few accounts whose names differ only in case or domain suffix.

Settle how existing local accounts with the same username are handled before go-live. Many CRMs already hold accounts created by hand, by a previous import, or by an earlier login method, and a directory user with a matching name could either be linked to that record or be blocked. The reference should state which behavior applies, and you should verify it on a staging instance using a copy of production data, not by assumption. Also confirm how the admin account is treated. Keep at least one local administrator that does not depend on the directory, and check that it still works when the LDAP service or the domain controller is unreachable. Record the outcome as a test case so later version upgrades can be checked against it.

Confirm what happens when someone leaves the directory. Disabling or deleting an Active Directory account does not automatically tell SuiteCRM to deactivate the matching user, so you need to know whether auto-created users are created as active, whether they are ever disabled or removed by the application, and whether existing sessions or API tokens keep working after the directory change. Write down the answer for each case and assign an owner to a recurring reconciliation, such as comparing active SuiteCRM users with an approved directory group and disabling the difference. Also decide how the CRM handles record ownership and reassignment for departed users. Those choices are operational, so they belong in your joiner and leaver process as well as in the configuration.

Security settings for directory-backed SuiteCRM login

Pointing SuiteCRM 8 at Active Directory moves the login check into your directory, but it also creates new places where credentials can leak, be over-granted or be locked out. The cards below cover the transport, the bind account, secret storage, change control and the break-glass path, plus the API logins that the LDAP setting does not govern.

Encrypt credentials in transit

The LDAP bind and every user password check send credentials across the network to the domain controller. Use LDAPS on port 636 or StartTLS so the connection is encrypted before any credentials are sent, and confirm the domain controller certificate chains to a CA that the SuiteCRM host trusts. Test with a deliberately wrong password to confirm failures are logged without the password appearing in logs.

LDAP configuration reference

Use a least-privilege bind account

SuiteCRM needs a service account that can search for user objects under the base DN and read the attributes used for username matching. It should not be a domain administrator or a personal account. Ask the directory team to grant read and search rights on the users OU only, and set a password expiry and rotation process that the team has agreed in writing before go-live.

Keep the bind password out of version control

The bind password and any LDAP secrets belong in the environment or a secrets store on the server, not in a .env.local file committed to a repository or copied into a ticket. Confirm that .env.local is excluded from version control, that backups of the application directory are access-controlled, and that deployment tooling injects the value at runtime.

Limit who can edit .env.local

Changing .env.local changes how every user logs in, so edit rights should sit with a small named group of platform administrators. Record each change in your change system, and confirm the file permissions on the server so the web server user can read it but other local accounts cannot. After any change, clear the cache or run Repair and Rebuild as the SuiteCRM documentation directs.

Keep local administrator accounts as break-glass

If the directory, the bind account or the certificate chain fails, every user may be locked out at once. Keep at least one local SuiteCRM administrator account that is not tied to LDAP, store its credentials in a sealed process owned by the security team, and test that it still logs in after the LDAP switch. Confirm who may use it and how each use is reviewed.

Review API logins separately

The SuiteCRM 8 LDAP login is not used by the v4 or v8 API logins. API credentials therefore need their own review: which accounts hold API access, how their passwords are set and rotated, and whether v4 depends on the LDAP setting under Administration, Password Management. Treat any integration that authenticates over the API as outside the directory control you just configured until its credentials have been checked.

Directory attributes mapped to SuiteCRM user fields

This table compares the directory attributes you will likely map (login name, email, display name, group membership) against the SuiteCRM user fields and roles they feed. The status column shows which mappings the SuiteCRM 8 LDAP reference documents and which you must verify in your installed version. Treat the group-to-role row as a design decision to test with real accounts before any user moves over.

Directory attributeSuiteCRM user field or roleStatus and what to check
sAMAccountName (login name)Username used at sign-inConfirm the attribute the login mapping reads in your installed version and test with a sample account
userPrincipalName or mailEmail address on the user recordConfirm in the reference and in your version; check that the value matches what users expect
displayName or givenName and snFirst and last name on the user recordVerify in your installed version; check how names appear in records and audit history
memberOf (group membership)Role assignment in SuiteCRMNot an automatic mapping in the reference; a design decision your team must build and test
Disabled account flag (userAccountControl)Access to SuiteCRM after directory disablementConfirm whether disabled accounts are blocked at sign-in in your version; test with a disabled test user
Nested group membershipRole assignment for indirect membersDesign decision; confirm how nested groups are resolved before relying on them for roles
Existing SuiteCRM user with same loginMatched or duplicate user recordTest auto-creation against an existing account to confirm the match behaviour you need

How a SuiteCRM login request reaches Active Directory

The request starts in the browser, which posts credentials to the SuiteCRM 8 web tier. The LDAP authenticator there, configured through .env.local, opens an LDAP or LDAPS connection to a domain controller and binds with a service account before searching for the user. The result returns across the trust boundary between the web host and the domain network. SuiteCRM then matches the directory identity to a local user record, creating one if auto-creation is on. Check the bind account, the transport and the local record at each hand-off.

Login path from the browser to the domain controller, with the trust boundary and service account bind.

How to test LDAP login before switching users over

Should I pilot LDAP login with a small group before moving everyone?

Yes. Start with a pilot group of a few named users from different departments, and keep local accounts working for administrators during the pilot. Choose users whose Active Directory group membership you understand, so a failure points to one known cause. Confirm each pilot user can sign in to the web interface, that their SuiteCRM profile and role look right after first login, and that they can reach the records they need. Expand the group only after the pilot users have worked normally for a period you agree with your security and operations teams. The exact pilot length is a decision for your own change process, not a figure from the SuiteCRM documentation.

Which negative login cases should I test against SuiteCRM LDAP?

Test the cases that should fail, not only the ones that should work. Run at least three: a disabled Active Directory account, a valid username with a wrong password, and a user who exists in the directory but sits outside the search base configured in .env.local. Each should be refused, and no SuiteCRM user should be created or logged in for the rejected attempts. Also test a locked account and an account whose password has expired, since your directory policy will decide how those appear to users. Record the result of each case so auditors and your security team can see that the negative paths were checked.

How do I test API clients separately from web logins?

Treat API clients as a separate test track. The SuiteCRM 8 LDAP login is not used by the v4 or v8 API logins, so a successful browser sign-in does not prove that an integration can authenticate. Inventory every API client and script that uses a SuiteCRM account, then test each one with its intended credentials. If any client uses the v4 API with LDAP, confirm that LDAP is also set under Administration, Password Management, as the LDAP configuration reference describes. Plan how those clients will authenticate once users move, because a password change or disabled account in Active Directory may stop them without any warning in the web interface.

Where should I check logs when an LDAP login test fails?

Check the SuiteCRM application logs and your web server logs first, then the directory side. Confirm the web server returns the expected response for each test, and that the application log shows the authentication attempt without recording the password. On the Active Directory side, check domain controller security events for the bind and failed logon attempts tied to the test accounts. Match timestamps across the three sources so you can tell whether a failure came from a wrong search base, a service account problem, a network path to the domain controller or a directory policy. Confirm the log locations and retention for your own installation, since they depend on your logging configuration.

What should I check after changing .env.local for LDAP?

Clear the cache before testing. SuiteCRM says to run bin/console cache:clear or Repair and Rebuild after changing .env.local, and a test run against stale configuration can give misleading results. Then confirm that AUTH_TYPE is set to ldap and that the bind account, search base and connection settings match the values your directory team provided. Keep a copy of the working file under change control so you can compare it if a later edit breaks login. Do not paste the bind password into tickets or chat during testing.

How do I roll back to local accounts if LDAP login fails?

Keep at least one local administrator account working before you switch AUTH_TYPE to ldap, and test that it signs in. If login breaks, restore the previous .env.local file, clear the cache as above, and confirm local accounts work again. Rolling back the configuration does not remove users that LDAP auto-creation already added, so review those accounts and their roles before deciding how to handle them. Record the rollback steps and who is authorized to run them in your change plan before the switch, so the decision is not made under pressure during an outage. Run the rollback on your staging instance first to confirm the steps work.

Can my own team run this LDAP test plan, or do we need a partner?

Your team can run this plan if it has someone who can administer SuiteCRM 8, someone who manages the Active Directory side and someone who owns the change approval. The work is mostly coordination and careful recording: choosing pilot users, preparing negative accounts, testing API clients and reviewing logs across two systems. Cost depends on how many clients, directory structures and environments you have, and on whether testing is done on staging first. A partner adds value when those skills are split across teams or when you need the test evidence packaged for a compliance review. Ask any provider for a written scope listing the test cases, environments, deliverables and the retest process before work starts.

How long does LDAP login testing take before switching users?

The duration depends on the number of pilot users, API clients, directory structures and environments, and on how long your change process requires the pilot to run. No researched figure is available for this work, so confirm the timeline with your own team or with a provider against your written scope. Plan the staging run, the pilot period and the rollback rehearsal as separate steps, since each can be extended by a failed test. Ask for a timeline that names the dependencies on directory and network teams, because those are often the longest waits.

Common LDAP login failures and how to fix them

This table lists the failures teams most often hit when moving SuiteCRM 8 login to Active Directory, with the likely cause and the fix for each. Work down the rows in order, since cache and API issues are cheap to rule out before you inspect the directory itself.

FailureLikely causeFix
Login still uses the old settings after an editThe .env.local changes were saved but the application cache still holds the previous configurationRun bin/console cache:clear or Repair and Rebuild, then retest the login
Users cannot log in and the service account is rejectedThe bind DN or password for the service account is wrong, the account is locked or disabled, or it lacks read access to the search baseConfirm the bind account in the directory, test it with a separate LDAP client, and check the search base covers the OU that holds the test users
Secure LDAP connection fails with a certificate errorThe domain controller certificate is not issued by a CA that the SuiteCRM host trusts, or the host name does not match the certificateInstall the issuing CA certificate on the SuiteCRM server, connect using the host name on the certificate, and retest the secure connection before enabling it
Users sign in but land on the wrong account or get a new oneThe username attribute mapped in SuiteCRM does not match the value stored in the directory, so the login creates or matches a different userCompare the attribute value for a test user against the SuiteCRM username, correct the mapping, and remove or merge any duplicate accounts created during testing
Users are not created automatically on first loginAutomatic user creation is off or the directory entry lacks attributes SuiteCRM needs, such as a usable email addressCheck the auto-creation setting in the configuration reference, confirm required attributes exist for the test population, and retry with one user
API clients fail while browser login worksThe v4 or v8 API does not use LDAP, and v4 also needs LDAP set under Administration, Password ManagementSet LDAP under Password Management for v4 clients, use API credentials for v8 clients, and test each integration separately from browser sign-in
Legacy LDAP settings appear to have no effectSuiteCRM 8 LDAP login does not read the legacy configuration, so screens from older versions are not the control pointMake all SuiteCRM 8 LDAP changes in .env.local, and treat any legacy LDAP screen as relevant only to v4 API behavior

What does SuiteCRM LDAP setup with Active Directory cost and require?

How much effort does SuiteCRM LDAP login with Active Directory take?

Effort depends mainly on how complex your directory is, how many login paths you need to keep working, and how much testing you want before users move over. A single domain with a clear user search base and one SuiteCRM 8 instance is the simplest case. Nested organizational units, several domains, service accounts with unusual permissions, or API clients that also need to sign in all add work. No duration is set by a researched source for this task, so ask any partner or your own team to base the estimate on a written list of directory details and test cases.

What people do we need for an LDAP setup with Active Directory?

You need three roles. A directory contact who can confirm the domain controller hostname, the LDAP port and encryption, the search base, the bind account and which attributes hold usernames and email addresses. A SuiteCRM administrator who can edit the .env.local file on the server, run the cache clear command and review user records. A staging host that matches production closely enough to test real logins before any user is switched. Security or identity staff may also need to approve the bind account and its permissions.

Can our in-house team configure SuiteCRM LDAP login without a partner?

Yes, a team with Linux, PHP and directory experience can make the configuration change by following the SuiteCRM 8 LDAP configuration reference. The work is mostly setting environment values, clearing the cache and testing sign-in. The harder parts are the directory details, deciding how API logins should work, and confirming that auto-created users receive the right roles. A partner is most useful when those decisions are unclear, when the test plan must be documented for an audit, or when the team has no spare capacity for staging work.

What does a SuiteCRM LDAP setup with Active Directory quote include?

A quote follows from the written scope, so ask for a document that lists each item before work starts. It should name the directory details to collect, the number of SuiteCRM environments covered, the login paths to test (browser login, v4 API, v8 API), the staging test cases, the cutover steps for existing users and the handover notes. Ask whether the price covers only configuration or also staging tests, documentation and retesting after a SuiteCRM minor release.

Which costs are separate from the SuiteCRM LDAP work itself?

Several costs sit outside the SuiteCRM configuration. If you run Active Directory Domain Services on Windows Server, the licensing is separate. Microsoft's Windows Server 2025 pricing page lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, and says prices vary by region. That page also states that both editions need a Windows Server Client Access License for each user or device that accesses the server. Lifecycle dates matter too: Microsoft's lifecycle page gives mainstream support ending November 14, 2029 for Windows Server 2025 and October 14, 2026 for Windows Server 2022. These figures apply only to the product and edition named in each source, so confirm current pricing and your own agreement with Microsoft or a reseller.

Is the SuiteCRM LDAP configuration a one-time cost?

The initial configuration is one-time work, but some effort recurs. Each SuiteCRM minor release, which the SuiteCRM LTS page says arrives roughly every eight weeks, can require testing that LDAP login still works on the new version. Directory changes such as renamed groups, new domains or a move to Entra ID Connect sync may also require updates. Ask whether a quote covers only the first setup or also a retest after upgrades.

What is the risk of skipping staging tests for SuiteCRM LDAP login?

Skipping staging tests risks locking users out, creating duplicate or wrong-role accounts, or breaking API integrations that used local passwords. SuiteCRM documents that LDAP login does not affect v4 or v8 API logins, and that v4 with LDAP also needs LDAP set under Administration, Password Management. Testing on a staging instance before switching users over lets you find these gaps while changes are easy to reverse. Ask for a written test list covering each login path and each user group.

How DeployOpen scopes and delivers SuiteCRM LDAP integration

DeployOpen agrees the scope, deliverables and timelines for an LDAP integration in writing before any work starts. For this topic, the written scope should name the Active Directory domain controllers and the LDAP host and port SuiteCRM will bind to, the SuiteCRM 8 environments covered (at minimum a staging instance and production), the .env.local settings to be set, the user auto-creation behavior, the attribute mapping to SuiteCRM user fields, and whether the Administration, Password Management LDAP screen is in or out of scope for API access. Ask for the scope to state who at your organization approves the bind account, the test accounts and the cutover date. Any timeline in the quote should follow from that written scope rather than from a generic estimate.

Within that scope, DeployOpen configures LDAP login on a staging instance first and tests it with real directory accounts from each group that will sign in, including accounts that should be refused. The test plan covers failed binds, disabled accounts, users missing a mapped attribute, and cache behavior after each change to .env.local, followed by bin/console cache:clear or Repair and Rebuild as the SuiteCRM LDAP reference describes. DeployOpen documents the final mapping, the settings used and the rollback path, which means restoring the previous AUTH_TYPE and local login method, and confirming that existing local administrator accounts still work. Ask for these documents as deliverables, since your own team will need them when the directory or SuiteCRM changes later.

Once LDAP login is live, the work does not end at cutover. SuiteCRM 8 minor releases arrive on a regular cycle, and each upgrade should be retested against the directory settings. DeployOpen offers support retainers for upgrades, re-testing and configuration changes, which your team can compare against handling those tasks internally. Confirm in the quote what a retainer covers, how requests are prioritized, and whether testing on staging is included each time. DeployOpen does not issue audit reports or certifications for the resulting setup. If your compliance team needs evidence for an assessment, ask the assessor which records they expect from the login configuration.

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.