Redmine LDAP authentication with Active Directory: when your team needs it
If your organization runs on Windows and wants Redmine users to sign in with their domain credentials, you are looking at LDAP authentication, not single sign-on. Redmine authenticates against LDAP directories natively. Active Directory is reached over LDAP or LDAPS, the encrypted variant on port 636, and Redmine does not speak SAML or OpenID Connect in core. Single sign-on for Redmine depends on plugins or an authenticating reverse proxy, which is a separate decision covered in its own section. Before you commit to this route, confirm that your directory is reachable from the Redmine host on the ports you plan to use and that your security team accepts a bind-based login against it.
Active Directory Domain Services is the Windows Server role that stores users, computers and other objects, and it replicates directory data to every domain controller in a domain. That replication matters for Redmine because the LDAP server your Redmine host queries is usually a domain controller or a load-balanced name in front of several. Ask your directory team which names and ports are supported for LDAP clients, whether LDAPS certificates are issued from your internal certificate authority, and whether a service account or a dynamic bind with the signing-in user is permitted by your password and audit policies. Those answers decide most of the configuration work that follows.
The integration does not do everything a domain user might expect. It checks credentials at sign-in and can create a Redmine account on first login when on-the-fly creation is enabled, but it does not manage Redmine projects, roles or groups from Active Directory security groups. Project membership and Redmine groups remain managed inside Redmine, so someone must still decide who joins which project after a directory account exists. Disabling a directory account blocks future sign-ins, yet it does not remove existing project memberships or stored data, so your offboarding process needs a Redmine step as well.
Bind account formats and login options for Active Directory
This table compares the bind account formats, login attributes and search base options available when connecting Redmine to Active Directory. Read each row against your directory layout and your password storage policy. The main takeaway is that a stored service account is simpler to troubleshoot, while dynamic binding as the signing-in user avoids storing a directory password but limits account creation and searching. Confirm exact field names in your Redmine version's LDAP settings before you test.
| Option | When it fits | Trade-off |
|---|---|---|
| User principal name bind (user@domain) | Single-domain forests where users know their UPN and the UPN matches the login they type | Easy to read in logs, but breaks if UPN suffixes differ from the domain users sign in with |
| Down-level bind (DOMAIN\user) | Environments where users are used to NetBIOS-style logins or the NetBIOS name is the familiar identifier | Depends on the NetBIOS domain name being correct, which can differ from the DNS name |
| Full distinguished name bind | Service accounts stored in a specific OU, or multi-domain setups where the bind target must be explicit | Long and error-prone to type, and it exposes the directory layout in configuration |
| Login attribute: sAMAccountName | Most Active Directory deployments, where users sign in with their Windows account name | Values are unique within a domain, but may not match the email-style name people expect |
| Login attribute: userPrincipalName | Organizations that want email-style sign-in and have clean, unique UPN values | UPNs can change when names change, which can disconnect existing Redmine accounts |
| Base DN at domain root | Small directories where user objects are spread across many OUs | Searches cover more objects, so they can be slower against a busy domain controller |
| Base DN scoped to a user OU | Directories that keep Redmine users in a dedicated OU and need faster, narrower searches | Users outside that OU cannot sign in, so confirm the OU covers every intended user |
| Stored service account password | Searches and on-the-fly account creation that need a fixed account with read access | The password must be stored in Redmine and rotated, and a leak exposes directory read access |
| Dynamic bind as $login | Teams that want no stored directory password and accept that the user's own credentials are used for each login | Searching and on-the-fly creation are limited, so a service account may still be required |
How an Active Directory login flows through Redmine
When a user submits a username and password on the Redmine login page, Redmine does not check the password itself for directory-backed accounts. It contacts the LDAP source configured in the administration area, usually one of your domain controllers, and either searches for the user's entry first or binds directly as the user, depending on how the authentication mode is set. The directory then decides whether the password is correct. Redmine only learns the answer and, if the bind succeeds, starts a session. This means a failed login can come from the network path, the bind format, the search filter or the password itself, and the error message in Redmine does not always tell you which. Before you go further, confirm which of these paths your configuration takes, because the search-then-bind and direct-bind routes place different demands on the directory.
Active Directory replicates directory data to every domain controller in a domain, so each controller should hold the same users, groups and password state, but only after replication has completed. The domain controller that Redmine points at is therefore the one that answers every login. If that controller is slow, is partitioned from the rest of the domain, or has not yet received a recent password change or account lockout, the same user can succeed on one attempt and fail on the next. Ask your directory team which controllers are in the domain, how replication is monitored, and whether a load balancer or DNS name sits in front of them. Pointing Redmine at a single named controller makes behavior predictable during testing but creates a single point of failure in production.
The practical consequence is that a login problem should be traced to the controller Redmine actually used. Record which host and port the LDAP source points to, then check that the same account authenticates against another controller with the same test. If the results differ, the cause is usually replication or the choice of server rather than Redmine. Decide in advance whether Redmine should create the local account on first login, because that step writes a user record into Redmine's own database and depends on the attributes returned by the directory. Document this flow for your operations team, since it determines where to look when users report that they cannot sign in.
Where Redmine, the domain controllers and the service account meet
The login request starts in the user's browser and reaches Redmine on a host you control. Redmine then sends a bind and search to one domain controller, either directly or through a load balancer, and that controller answers from the directory it replicates with the rest of the domain. The trust boundary sits between the Redmine host and the Windows domain, and LDAPS should protect the hop across it. Check that the service account, if you use one, can read only the attributes Redmine needs, and that the chosen controller is reachable on 636.
Login traffic from the browser through Redmine to domain controllers, with the LDAPS and trust boundary marked.
Setting up LDAP authentication to Active Directory in Redmine
This sequence connects Redmine to Active Directory so that domain users sign in with their directory credentials, with each step confirmed before the next one starts. The result is a working LDAP authentication source that has been tested from the command line and from a real sign-in.
Confirm the directory and domain controllers
Work with the Active Directory team to identify the domain, the domain controllers that Redmine can reach, and the naming used for the forest and domain. Ask which controllers host LDAPS, which network path the Redmine host uses to reach them, and whether any firewall between the two needs an exception for TCP 636. Record the fully qualified domain name of each controller you plan to use. The check is that the AD team confirms in writing which controllers and ports are approved, and that name resolution from the Redmine host returns them.
Create a least-privilege bind account
Ask the AD team to create or select a dedicated service account used only for Redmine's directory searches. It should have read access to the user objects under the search base and no rights to change directory content or sign in interactively. Confirm the account's distinguished name and the format you will use for the bind, such as a user principal name or a full DN, and store the password in your secrets manager rather than in a shared document. The check is a successful bind from a workstation or the Redmine host using that account, with no write permission on a test object.
Enable LDAPS on port 636 and trust the chain
Confirm that each domain controller presents a certificate issued by a chain your Redmine host trusts, then install the root and any intermediate certificates in the operating system trust store used by Redmine's Ruby process. Plain LDAP sends the bind password without encryption, so keep credentials on LDAPS on port 636 and do not fall back to unencrypted connections. The check is a TLS handshake to port 636 from the Redmine host that completes without certificate errors, and the certificate subject matches the controller name you recorded.
Add the LDAP authentication source in Redmine
As a Redmine administrator, open the administration area and add a new LDAP authentication source. Enter the host name of the domain controller or the load balancer name the AD team approved, set the port to 636 with LDAPS enabled, and enter the bind account and its password. Leave on-the-fly user creation off until the later test, so that you can see exactly which attributes Redmine reads. The check is that Redmine saves the source and its test connection action reports a successful bind.
Set the login attribute and base DN
Set the base DN to the container that holds the users who should sign in, and set the login attribute to sAMAccountName, which is the logon name users type on a Windows domain. Confirm the case of each attribute name against the directory, because Active Directory returns them in a specific form and a mismatch causes silent lookup failures. Map the first name, last name and mail attributes if you use on-the-fly creation. The check is that Redmine's test lookup for a known test user returns the expected entry.
Test directory queries with ldapsearch
From the Redmine host, run ldapsearch against the same controller, port and base DN, using the bind account and a filter for one known user's sAMAccountName. Use the LDAPS URI and the certificate trust configured earlier, and request only the attributes Redmine needs. Run the same query against a second controller if the AD team has approved more than one, because a single healthy controller does not prove the others answer. The check is that ldapsearch returns exactly one entry for the test user with the expected mail and name attributes, and that the same result appears from each controller.
Test a real sign-in and account creation
Sign in to Redmine with a domain account that has never signed in before, then sign in with a second account that already has a Redmine user record. If you enabled on-the-fly creation, confirm that the new user receives the expected login, name and email, and that Redmine assigns the default role you configured. Check Redmine's authentication log and the directory server's logs for failed binds or lookup errors. The check is that both accounts sign in, the new account appears in the user list with correct attributes, and the log shows no unexpected bind attempts from the Redmine host.
Testing LDAPS and directory queries with ldapsearch
Plain LDAP on port 389 sends the bind password and directory responses without encryption, so use it only in an isolated lab with synthetic accounts. It is useful for confirming that the Redmine host can reach a domain controller at all and that the port is open. Do not carry these settings into production, and do not reuse a real service account password in a lab.
- Reachability first: Confirm that the Redmine host can open a TCP connection to the domain controller on port 389 before running any query.
- Lab accounts only: Bind with a test service account that has no rights beyond reading user objects.
- Record the difference: Note that the same query over LDAPS should return the same entries, so any later difference points to certificates or ports.
- Remove the test setup: Delete the lab account and disable plain LDAP once the check is complete.
Before you leave this tab, confirm that the plain LDAP test is documented as lab-only so that no one copies it into the production Redmine configuration.
LDAPS wraps the directory connection in TLS, normally on port 636. Redmine and your directory team should agree on which domain controller certificate chain is trusted by the Redmine host, and the check should fail if validation fails rather than falling back to an unverified connection. Ask your Active Directory team which certificate authority issued the domain controller certificates and whether the chain is distributed to Linux hosts.
- Test the TLS handshake: Use
openssl s_client -connect dc01.example.internal:636 -showcertsto view the presented chain, then confirm the subject and issuer match your directory team's records. - Validate against your CA bundle: Point the test at the CA file that the Redmine host uses, so the check fails on an untrusted certificate.
- Confirm the name matches: The certificate must cover the host name you configure in Redmine, not only an IP address.
- Run the ldapsearch tests over LDAPS: Repeat the queries from the next tab using the
ldaps://URI and the trusted CA file.
Before you enter the host name in Redmine, confirm that the handshake succeeds from the Redmine host itself, because a successful test from an administrator's workstation proves little about the application server.
Three queries confirm the parts of the Redmine configuration that most often fail: the bind, the base DN and the sAMAccountName filter. Run them from the Redmine host with the same account and CA settings Redmine will use. Flags and output format differ between OpenLDAP client versions, so confirm the exact options against the ldapsearch man page on the installed system before relying on the commands.
- Confirm the bind: Run
ldapsearch -H ldaps://dc01.example.internal -D "svc-redmine@example.internal" -W -b "DC=example,DC=internal" -x "(sAMAccountName=testuser)" dnand expect onedn:line for the test user. - Confirm the base DN: Search from the domain root and then from the user container. If a result is missing only from the narrower base, the Redmine base DN is too restrictive.
- Confirm the login filter: Use a known sAMAccountName and check that exactly one entry returns, since multiple matches indicate an ambiguous filter.
- Check the attributes Redmine reads: Request
mail,givenNameandsnto confirm the attributes that Redmine maps are populated. - Confirm a failed bind: Use a wrong password and expect an
Invalid credentialsresult, which confirms that the server rejects bad logins rather than accepting them silently.
A successful result returns the distinguished name of the expected account, with the requested attributes present. Keep the output with your change record, and remove any test passwords from shell history afterward.
Why logins slow down against a domain controller cluster
Slow Redmine logins against Active Directory usually come from the directory round trip, not from Redmine itself. The most common causes are a single domain controller that is unreachable or sits far away on the network, referrals that make the client chase requests to other domain controllers or partitions, and searches that cover far more of the directory than they need. A broad base DN, such as the domain root, forces the directory to scan a large subtree every time someone signs in, and that cost multiplies when the search runs against a remote controller. Timeouts set very high can make the problem look like a hang, because Redmine waits for a server that is not answering before it gives up and tries the next one.
Start by narrowing the base DN to the container that holds the user accounts Redmine needs, and keep the search filter tight, such as matching sAMAccountName on the login name. Confirm which domain controllers Redmine is configured to use, then point it at a reachable domain controller in the same site as the Redmine host. Check that the Redmine host can resolve the domain controller by its fully qualified name, since name resolution delays are a frequent hidden cause. Review how referrals are handled in your LDAP settings and whether any of the configured servers are stale or decommissioned. Your Active Directory team can confirm which controllers are in the Redmine host's site and which ones are still in service.
Measure before and after each change. From the Redmine host, run ldapsearch against the chosen domain controller with the same base DN, filter and bind account that Redmine uses, and time the command with the shell's time builtin. Repeat the test against each domain controller in the cluster so you can compare them, and run it at a busy time as well as a quiet one. If the search is fast with a narrow base DN and slow with the domain root, the directory scope is the problem. If every query is slow to one server, the network path or that controller is the problem. Keep the timings in your change record so the Redmine team and the directory team can review the same numbers.
Security considerations for an AD bind in Redmine
The bind account, the transport to the domain controllers and the people allowed to sign in all shape how exposed a Redmine LDAP setup is. Each card below covers one control to decide before the first production login, and each one has a direct check you can run in your own environment.
Service account password storage and rotation
Redmine stores the LDAP bind password in its database configuration, so anyone with database or administrator access can read it. Decide where the password lives, who can edit the LDAP source in the Redmine administration area, and how the password is rotated when staff change. Ask your directory team for a rotation procedure that updates Redmine in the same change window, and confirm that database backups are protected because they contain the same secret.
Least privilege for the bind account
The bind account needs only enough rights to search the user subtree and read the attributes Redmine maps, such as the login name, mail and display name. Do not place it in Domain Admins or grant it write access. Ask the directory team to scope read permissions to the users organizational unit, and verify the result by running a search with the bind account and confirming that it cannot modify an object.
LDAPS and certificate validation
A simple bind sends the account password across the network, so the connection to the domain controllers should use LDAPS on port 636 with certificate validation enabled. Confirm that the domain controller certificates chain to a CA that the Redmine host trusts, and that the certificate name matches the host name in the LDAP configuration. Turning off verification to get a connection working hides a trust problem that will return later.
Restricting who can sign in
A directory bind lets any enabled account in the searched subtree attempt a Redmine login, which may include contractors, service accounts or former staff whose accounts were not disabled. Limit the search with an LDAP filter that matches only the groups allowed to use Redmine, and test the filter with a disabled account and an account outside the group. Project membership still controls what each user sees after login.
Logging failed binds
Redmine records failed logins in its own log, but the directory side holds the authoritative record of bind failures, lockouts and password guessing. Ask the directory team to forward domain controller security events for failed logons from the bind account and from Redmine users to your central log platform. Agree on a review owner and an alert threshold before go-live, so repeated failures are noticed rather than archived.
Separating Redmine admin accounts from directory accounts
Keep at least one local Redmine administrator that does not depend on Active Directory, so a directory outage or a misconfigured LDAP source does not lock every administrator out. Do not make directory accounts administrators by default, and do not reuse a domain administrator identity for Redmine administration. Document who holds the local account, where its password is stored and how it is tested during the change.
Questions buyers ask before connecting Redmine to Active Directory
Can our in-house team connect Redmine to Active Directory without a partner?
Yes, if your team already runs Redmine and has someone comfortable with LDAP, certificates and Active Directory administration. Redmine authenticates against LDAP natively, so the core work is configuration rather than custom development. The harder part is coordination: the change touches your directory, your certificate authority and your Redmine host at once, and mistakes in bind formats or TLS settings often surface only as vague login failures. Ask whether your team has tested a bind account and an LDAPS connection against your domain controllers before, and whether it has a rollback plan for the Redmine side.
What makes an Active Directory integration take more effort?
Effort rises with the shape of your directory and the rules you need. The main drivers are the number of domains or forests involved, whether you need one LDAP source or several, how many domain controllers sit behind the name you connect to, and whether LDAPS requires a certificate chain your Redmine host must trust. Group-restricted login, attribute mapping for on-the-fly account creation and a formal test plan each add work. Ask any provider to break the quote down along these drivers so you can see which ones apply to your environment.
What do the Active Directory and security teams need to provide?
Plan for their time before the Redmine work starts. The directory team needs to confirm the base DN, the login attribute (usually sAMAccountName for Active Directory), the domain controllers or DNS name to use, and an account for binding. The security team needs to supply or approve the CA certificate for LDAPS on port 636, confirm which network paths are open from the Redmine host, and agree on who may see the bind password. Both teams should also review the test results, because a successful bind does not prove that the right users can sign in.
Do we need a service account for Redmine to query Active Directory?
It depends on how you configure the login flow. With a service account, Redmine binds with a stored distinguished name and password to search for the user, then attempts a bind as that user. Redmine's dynamic bind option can bind as the signing-in user instead, which avoids storing a password, but it limits on-the-fly account creation and searching. Some setups still need a service account for lookups. Ask your directory team which option they will approve, and whether the account is read-only and restricted to the users you need.
How long does an Active Directory connection take to set up?
Duration depends on scope and no figure for it is supplied here. The time is driven by how many directories you connect, how quickly the directory and security teams approve the bind account and certificates, how many domain controllers you must test against, and how much testing you require before go-live. Ask for a schedule that lists each approval and test as a separate milestone, so delays from other teams are visible rather than hidden inside the Redmine work.
What is included in a fixed-scope quote for this work?
A fixed-scope quote should list the written scope, deliverables and timeline agreed before work starts. For this topic, expect the quote to name the directories in scope, the Redmine version and host, the authentication mode, the LDAPS approach and certificate handling, the bind method, the test cases with ldapsearch and real user logins, and the handover notes for your operators. Confirm what is excluded, such as group sync, SSO or changes to domain controllers, so both sides agree on the boundary. DeployOpen does not publish a price list, so the quote follows from that written scope.
How do we test the connection before users depend on it?
Test the directory path first, then the Redmine login. Use ldapsearch from the Redmine host to confirm that the bind account can connect over LDAPS on 636, that the base DN returns the expected users, and that sAMAccountName matches the login names people type. Then sign in with a small set of accounts covering normal users, disabled accounts and users in different OUs, and check the Redmine administration log. Ask whether slow logins were measured against the full domain controller cluster, because a single responsive controller can hide delays that appear under load.
Official sources for Active Directory and Redmine LDAP settings
Start with the directory itself. The Active Directory Domain Services overview explains how users, computers and other objects are stored and replicated to every domain controller in a domain, and it describes the schema, global catalog and query mechanisms that determine how a directory search behaves. Read it before you choose a base DN or decide where Redmine's bind queries should start, because a search scoped to the wrong container or one that depends on a global catalog answer will return different results from the same domain. Confirm with your Windows team which domain controllers Redmine will reach and whether the domain is a single forest or part of a larger one.
Next, read Microsoft's comparison of Active Directory and Microsoft Entra ID. It states that most on-premises applications authenticate against Active Directory over LDAP, and it explains that Entra ID is a cloud service rather than a drop-in replacement for an LDAP server. If your organization already syncs identities to Entra ID with Microsoft Entra Connect, ask whether Redmine should keep binding to the on-premises domain, since that decision affects where a disabled account is enforced and which system holds the password. Record the answer in your design notes so that the authentication source for Redmine is documented before go-live.
For the Redmine side, the Redmine installation guide gives the setup context you need, including the supported Ruby and database versions for the release you plan to run. LDAP settings themselves are entered in the Redmine administration area, and the guide is the right place to confirm the prerequisites for your chosen release before you test a bind. Check the exact field names and any LDAPS or certificate options against the version you deploy, because Redmine's administration screens can change between lines, and treat the vendor documentation for your release as the final word on each setting.
How DeployOpen scopes and delivers Redmine LDAP authentication
DeployOpen treats Active Directory sign-in for Redmine as a scoped piece of work inside your own infrastructure, starting from how your domain controllers, bind accounts and certificates are arranged. The work is written down before it starts, built and tested against your directory, and handed over with the evidence your identity and security teams need to review it.
How we scope
- Confirm your Redmine version and its LDAP settings against the directory design before any change is made.
- Agree in writing which domain controllers, base DN, login attribute and LDAPS endpoints the authentication will use.
- Record the bind account format, its permissions, and who owns its password, rotation and removal.
- Define which users may sign in, and whether accounts are created on first login or managed in advance.
How we build
- Configure the LDAP authentication source in Redmine and verify sAMAccountName login with test accounts from each target group.
- Enable LDAPS on port 636 with a certificate chain your domain controllers already trust, and document the trust path.
- Test directory queries with ldapsearch from the Redmine host to confirm search results, attribute values and failover behavior.
- Measure login time against the domain controller cluster and record where delays come from before go-live.
How we hand over
- Deliver the written configuration, bind account record, certificate details and the ldapsearch test results used for acceptance.
- Document the failure modes we tested, including unreachable domain controllers, expired bind passwords and certificate errors.
- Walk your administrators through adding a new LDAP source, changing settings and reading Redmine authentication logs.
- Provide a retest checklist so your team can repeat the tests after Redmine upgrades or directory changes.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing for the authentication setup are available as a retainer.
- Confirm with your directory team how group-based access, certificate renewal and domain controller changes will be handled after handover.

