Redmine with OpenLDAP or FreeIPA: when a directory becomes the login source
Redmine can sign users in against an existing OpenLDAP or FreeIPA directory without a plugin, because LDAP authentication is built into the core application. The work is less about switching a setting and more about deciding how Redmine finds a user, which attribute carries the login name, and how the connection is protected. FreeIPA adds a layer on top of the same idea: it is built on 389 Directory Server, with an MIT Kerberos KDC, the Dogtag certificate system and SSSD on clients, so Redmine talks to the LDAP side of it like any other directory. OpenLDAP is a plain directory server, so its schema, overlays and access rules are the first things to check. In both cases, most of the effort sits in three areas: the directory schema that Redmine maps to accounts, the search strategy that decides how a login is located, and TLS, which protects the bind credentials and user data in transit.
Plan the search strategy before you enter any settings. Decide whether Redmine binds with a service account or signs in as the user, and confirm whether your directory allows anonymous searches on the base DN that holds people. Many FreeIPA and OpenLDAP deployments restrict anonymous reads, so the service account and its read permissions need to be agreed with the directory owners. Use LDAPS for every connection that carries a password, and confirm the certificate chain that Redmine's host trusts, since a mismatch usually shows up only as a failed login. Test the search filter with ldapsearch from the Redmine host before you configure the application, so that any mismatch in the login attribute, such as uid on a typical posixAccount entry, is found at the directory rather than inside Redmine.
Group membership needs an explicit design. Core Redmine does not synchronize directory groups into Redmine groups or project memberships, so a group such as a memberof value on the user entry only helps if you use it in the login filter to restrict who may sign in. Project roles and Redmine groups still have to be assigned inside Redmine, either manually or by a separate process. Decide early who owns that mapping, how leavers lose access, and whether a directory group change should be reflected in Redmine at all. Confirm with your directory team whether the memberof overlay is enabled on your OpenLDAP server, because FreeIPA exposes group membership differently. The sibling pages on group-restricted login and on-the-fly user creation cover those specific steps.
Choosing the login attribute, search mode and group filter
This table compares the login attribute, search mode, transport and group restriction choices for a Redmine LDAP source pointed at OpenLDAP or FreeIPA. Read each row as a decision: the first column names the choice, and the cells explain when it fits and what it costs in maintenance or exposure.
| Decision | Option | When it fits | Cost in maintenance or exposure |
|---|---|---|---|
| Login attribute | uid | Directory users have unique uid values and users sign in with their account name. This is the usual choice for both OpenLDAP and FreeIPA. | Low. Confirm that every user in the search base carries a uid value that Redmine can match exactly. |
| Login attribute | mail or another attribute | Users must sign in with an address, or uid values are not unique across the search base. | Higher. Address changes break logins, and Redmine login names must stay unique. |
| Search mode | Anonymous search | The directory allows anonymous reads of the user subtree and you want no stored credential in Redmine. | Lower credential risk, but the directory must expose user entries to unauthenticated clients. Confirm the ACLs on your OpenLDAP or FreeIPA build. |
| Search mode | Bound service account | Anonymous reads are disabled, or you need to search groups and attributes that anonymous clients cannot see. | A stored bind password must be rotated and protected. Use a read-only account limited to the user subtree. |
| Transport | LDAPS on port 636 | You want encryption from the first packet and the directory certificate is issued by a CA that Redmine's host trusts. | Certificate chain and expiry must be managed on the Redmine host. Confirm the CA bundle is present in the environment Redmine runs in. |
| Transport | StartTLS on port 389 | Your directory is already set up for StartTLS and you cannot open the LDAPS port in the firewall. | The connection starts unencrypted and upgrades, so a misconfigured client can send credentials in clear text. Confirm that Redmine refuses to continue without a successful upgrade. |
| Group restriction | memberof-based filter | Only members of a named group should sign in. FreeIPA exposes group membership as a standard attribute on user entries. | On OpenLDAP the memberof overlay must be enabled and confirmed on your build before the filter works. Group renames and nested groups need testing. |
| Group restriction | No group restriction | Any valid directory account may sign in, and access is controlled inside Redmine by roles and project membership. | Lower setup effort, but disabled or departed staff who remain in the directory can still sign in until the directory entry is removed. |
Setup sequence for Redmine against OpenLDAP or FreeIPA
This sequence connects Redmine to an OpenLDAP or FreeIPA directory over LDAPS, restricts sign-in to an approved group, and proves the result with an admin sign-in and a rejected sign-in for an excluded user.
Confirm directory schema and test accounts
The directory administrator confirms the base DN, the user object class, the uid login attribute, and the attribute names for given name, surname and mail on the server you will connect to. Run ldapsearch against the directory with a test user and a test group, using the same bind method Redmine will use. Done means the search returns the expected entry with a uid, cn, mail, givenName and sn value, and the group entry lists that user through its member or memberOf attribute. If the search needs a bind account, record its DN and confirm it can read user entries but cannot change them. Note whether your server allows anonymous searches, because that decides the bind mode you configure in Redmine.
Issue or validate the directory CA certificate
Obtain the certificate authority that signed the LDAP server certificate, either from your internal PKI team or from the FreeIPA server's CA certificate, and confirm the server certificate names the host Redmine will use. For FreeIPA, the integrated Dogtag CA is the usual source. Install the CA certificate on the Redmine host in the trust store used by the Ruby process, then verify the chain with a TLS client test on port 636 or the port your LDAPS listener uses. Done means the TLS handshake completes without certificate errors and the ldapsearch command from the previous step succeeds over LDAPS with the CA file specified, not with certificate verification turned off.
Create the LDAP authentication source in Redmine
An administrator opens Administration, then LDAP authentication, and adds a new source. Enter the server host name that matches the certificate, select LDAPS as the connection mode, and set the port. Enter the base DN and the bind method you confirmed earlier, using a bound search with a read-only account or an anonymous search only if the directory permits it. Set the login attribute to uid. Use the test function in the source form. Done means Redmine reports a successful connection and lists no errors, and the source appears as available for users. If the test fails on certificate validation, return to the previous step rather than disabling verification.
Map login, first name, last name and mail
In the same source form, map the Redmine attributes to the directory attributes you confirmed. Set login to uid, firstname to givenName, lastname to sn, and mail to mail. Enable on-the-fly user creation only if your policy allows Redmine to create accounts on first sign-in. Some installations also need a group or custom field mapping, which you should leave empty unless you have a specific use. Done means a test sign-in by a known test user creates or updates a Redmine account whose name and email match the directory entry. Check the account in Administration, Users, and confirm the login name matches the uid value exactly, including case.
Add a group filter to restrict sign-in
Add an LDAP filter that accepts only members of the approved group. On OpenLDAP, this usually relies on the memberof overlay so that each user entry carries a memberOf attribute; confirm the overlay is loaded before you write the filter. On FreeIPA, confirm that the group membership is visible on the user entry through the memberOf attribute as well. Write the filter as a combination of the uid match and the group DN, then test it with ldapsearch using the same filter string before entering it in Redmine. Done means the ldapsearch command returns the approved test user and does not return the excluded test user. Keep the group filter in a change record, because later membership changes depend on it.
Test sign-in as an admin and an excluded user
Sign in to Redmine as an approved administrator account that exists in the directory group, then confirm that the session, project list and administration pages load. Next, attempt a sign-in with a directory user who is not in the approved group and confirm Redmine rejects it with a generic authentication failure and creates no new account. Finally, check the Redmine log and the directory access log to confirm the rejected attempt was recorded. Done means the approved user signs in, the excluded user is refused, and no account was created for the excluded user. Project membership and Redmine groups are separate from this filter, so assign project roles as a separate task.
Securing the directory connection
Connecting Redmine to OpenLDAP or FreeIPA moves sign-in trust into a directory your team may already govern. The cards below cover the transport, the stored credentials, the search scope, the failure behavior and the recovery path, so each one can be checked before users depend on the connection.
Encrypt every bind and search
Plaintext LDAP sends user passwords and directory data across the network in readable form. Use LDAPS on port 636 or STARTTLS, and make Redmine validate the directory server certificate against your internal CA instead of disabling verification. Check the setting in the Redmine LDAP authentication form and test with a packet capture from the Redmine host before go-live.
Limit the stored bind password
When Redmine searches with a service account, its password is stored in the Redmine database configuration. Create a dedicated read-only account that can search only the base DN needed for Redmine, never a directory administrator. Rotate that password on a schedule and record who holds it, because changing it later breaks every login until Redmine is updated.
Narrow anonymous and broad searches
An anonymous search can expose user names, emails and group membership to anyone who reaches the directory. Confirm with the directory team whether anonymous reads are allowed in OpenLDAP access controls or FreeIPA access control rules, and restrict returned attributes to those Redmine maps, such as uid, mail and cn. Test by searching as an unprivileged account and checking what comes back.
Handle failed bind lockouts
Repeated failed binds from a misconfigured Redmine can lock real users out of the directory, especially when a stale service account password remains in Redmine after a rotation. Check the password policy and lockout settings in OpenLDAP (via ppolicy if used) or FreeIPA before enabling login, and make sure Redmine logs failed attempts so a bad credential is noticed quickly.
Keep a local administrator
If the directory, its certificates or the LDAP settings fail, directory users cannot sign in to Redmine at all. Keep at least one local Redmine administrator account with a strong password and two-factor authentication where supported, and store its credentials outside the Redmine host. Test that this account still works after each change to the authentication mode.
Keep FreeIPA current and add OTP
FreeIPA 4.13.4, dated July 9, 2026, fixed two CVEs, including LDAP access control flaws that could let unauthenticated clients obtain credentials. Confirm your FreeIPA servers run 4.13.4 or later and patch replicas as well as the primary. Where the directory is the authority for identity, FreeIPA OTP supports HOTP and TOTP tokens, which can add a second factor for accounts managed there, though Redmine must still be configured to rely on that directory login.
FreeIPA OTP designHow a Redmine login travels through the directory
With a service account, Redmine first binds to the directory as a fixed account, searches for the user by the login attribute, and then binds again as the user found with the password typed on the login form. The service account credentials are stored in the Redmine LDAP authentication source, so the account needs read access to the user branch and no more. The base DN and filter decide which entries Redmine can see, so a wrong base DN usually looks like an unknown user rather than a password problem.
- Service bind: Redmine connects on the configured LDAP port and binds with the account DN and password stored in the source. Use a full DN such as
uid=svc-redmine,ou=services,dc=example,dc=com(illustrative). - Search: Redmine searches the base DN with the filter and the
uidlogin attribute. Zero matches and multiple matches both fail the login. - User bind: Redmine binds as the DN it found, using the password from the form. A rejected password fails at this step, after the search has already succeeded.
- Attribute read: Redmine reads the mapped attributes, such as mail and name fields, from the same entry when it creates or updates the account.
Before you change Redmine, run ldapsearch from the Redmine host with the same bind DN, base DN and filter. If that search fails, the problem is in the directory or the network path, not in Redmine.
With anonymous search, Redmine connects without a bind account, searches the directory as an unauthenticated client, and then binds as the matched user. This removes the stored service password, but it moves control into the directory's access rules. If the ACLs hide the login attribute or the entries under the base DN, the search returns nothing and Redmine reports the same result it would for a mistyped username.
- Anonymous connect: Redmine opens the connection without a bind DN or password, so no secret is stored in Redmine.
- Search under ACLs: The directory must allow anonymous reads of the user entries and of the
uidand mail attributes. Confirm this in the slapd access controls, because defaults vary by installation and version. - User bind: After a match, Redmine binds as the user DN with the submitted password, the same step as in the service account model.
- Attribute read: Mapped attributes come back only if the directory permits anonymous reads of them. A missing email is often an ACL gap, not a Redmine setting.
To test, run an anonymous ldapsearch against the base DN and filter. If it returns no entries for a known user, fix the ACLs first. Keep the list of attributes Redmine maps as short as you can, so the anonymous read exposes no more than the login needs. The OpenLDAP 2.6 Administrator's Guide is the reference for the server side.
Redmine talks LDAP to FreeIPA directly, as it would to any LDAP server. SSSD is not part of Redmine's login path. It matters on the surrounding Linux hosts, where SSSD resolves IdM users for operating system logins, sudo and administration. Keep these two paths separate when you trace a failure, because a host can log in correctly while Redmine cannot authenticate the same user.
- Trust and TLS: For LDAPS, the Redmine host must trust the certificate chain that FreeIPA issues. Enrolling the host normally installs the IdM CA, so confirm the trust store on the Redmine host contains it.
- Names and DNS: The Redmine host needs to resolve the IdM server names it connects to. The FreeIPA deployment recommendations advise at least two DNS servers in each client's resolver configuration.
- Search base: IdM keeps users under its accounts tree, so the base DN and the
uidlogin attribute must match that layout. Check the exact DN withldapsearchagainst your IdM server. - Group restriction: Group membership is tested with
memberOfon the user entry. Confirm that your IdM version returnsmemberOffor users before you rely on it for access control.
When a login fails, check whether the failure is a certificate error on the TLS connection, an empty search or a wrong password at the user bind. The first is a trust problem, the second a base DN or ACL problem, and the third a credential problem. SSSD logs on the host do not show these.
A failed Redmine login leaves evidence in two places: the Redmine application log on the server and the directory's own logs. The application log tells you that authentication failed and sometimes which step raised the error. The directory log shows what it received and answered. Reading both in the same time window lets you match one login attempt to one directory request, which is the fastest way to separate a Redmine setting from a directory problem.
- Find the Redmine entry: Start in the production log under the Redmine
logdirectory, at the time of the failed attempt. Note the username, the error text and any LDAP error that follows it. The exact wording depends on your Redmine version, so record the messages you see in your own environment. - Map the failure to a step: No matching entry points to the search, a rejected password to the user bind, a missing field to attribute read, and a certificate message to the TLS connection.
- Check the directory side: Look for the same username and the same time in the slapd or 389 Directory Server access log. Confirm whether the search returned entries and which operation failed.
- Reproduce with ldapsearch: Repeat the failing search from the Redmine host with the same bind method, base DN and filter.
- Control log detail: Raising log levels on a production directory or Redmine instance adds data that may include personal information, so agree the change and its retention before enabling it.
After you locate the failing step, change one setting at a time and retest the same login. Record the result, because that record is useful evidence when the authentication setup is reviewed.
Limits to confirm in your environment
The Redmine and directory combination you run determines which login settings are possible. Confirm each limit below in your own environment before you write the configuration, because the answers change the build sequence and the support burden.
Redmine version and runtime
Redmine 7.0 is the only fully supported line, and 6.1.x and 6.0.x receive narrower fixes. Redmine 7.0 runs on Rails 8.1 and supports Ruby 3.2, 3.3, 3.4 and 4.0, but not JRuby. Confirm your Ruby version and that your database is one Redmine supports, such as PostgreSQL, MySQL 8.0 to 8.4 with READ COMMITTED isolation, or SQL Server 2012 or higher. Check the LDAP settings against the version you actually install, not the version in older tutorials.
- Fully supported line
- 7.0.x
Memberof overlay availability
Group-restricted login depends on the memberOf attribute, which the server fills only when the memberof overlay is loaded and configured for the relevant database. Some packaged OpenLDAP builds ship the module but do not enable it by default. Ask whoever runs the directory to confirm the overlay is loaded and that group membership appears on user entries when you query them with ldapsearch. If it does not, plan the group restriction differently before you configure Redmine.
OpenLDAP release line in use
The current OpenLDAP releases are 2.7.1 as the feature release and 2.6.15 as the long term support release. Record which line your servers run, because 2.7 retired the back-sql and back-perl backends and deprecated GnuTLS integration. If your TLS setup relies on GnuTLS, plan a change before you rely on it for LDAPS. Verify the exact build and package source with your operating system team.
OpenLDAP websiteFreeIPA replica topology
FreeIPA deployment guidance advises at least two to three replicas in each datacenter, no more than four replication agreements per replica, and dedicated servers without other applications. Confirm which server Redmine will query, whether that server can fail over, and which replica holds the certificate and CRL role. A Redmine login that points at a single replica will fail when that replica goes down, even if the rest of the topology is healthy.
Deployment recommendationsProvisioning model for new users
Decide whether Redmine creates an account on first LDAP login or whether administrators pre-provision every user. On-the-fly creation needs the directory to supply the login, name and email attributes Redmine expects, and any required custom fields must be filled. Pre-provisioning gives you control over roles and group membership but adds ongoing work for joiners and leavers. Confirm the choice with the people who approve access before you set the authentication mode.
Directory topology: replicas, multi-master and AD trusts
Decide the directory topology before you touch Redmine, because the endpoint Redmine binds to determines how well logins survive a server failure. Point Redmine at a resilient name, not at a single server. In OpenLDAP, slapd supports single-provider, multiple-consumer replication and multi-provider replication, the latter for environments where a single point of failure is not acceptable. Choose the model your directory team already runs, then confirm which node Redmine's LDAP host setting reaches and what happens when that node is down. A DNS alias or a load balancer in front of the directory can help, but confirm with your directory team how writes, password changes and failover behave in that layout before relying on it.
FreeIPA is more prescriptive. Its deployment recommendations advise at least two to three replicas in each datacenter, no more than four replication agreements per replica, and dedicated servers without other applications. Ask your identity team how many replicas exist per site and whether the endpoint Redmine uses is in the same site as the Redmine server. Also check that clients resolve the IPA domain through at least two DNS servers, since a directory that is replicated but unreachable by name still fails the login. Keep in mind that the first server handles certificate renewal and CRL publication by default, so Redmine's own connection path should not depend on that role being moved in a way nobody has tested.
FreeIPA can establish a cross-forest trust with Active Directory through Samba components, but only if the IPA DNS domain does not overlap with any domain in the AD forest. Check this naming decision during design, because it cannot be fixed cheaply later. A trust lets AD users access Linux resources in the IPA domain, but it does not by itself make those users available to Redmine's LDAP authentication. Whether Redmine can sign in a user who reaches IPA through a trust is a separate question with its own bind, search and attribute requirements, covered in the sibling topic on Redmine with multiple LDAP directories and in the Active Directory topic.
Questions teams ask before connecting Redmine to OpenLDAP or FreeIPA
What does it cost to connect Redmine to OpenLDAP or FreeIPA?
Redmine has no license fee, since it is released under the GNU General Public License v2, and OpenLDAP and FreeIPA are open-source as well, so the cost comes from people, hosting and testing. Implementation effort depends on how many directories you connect, whether LDAPS is already working on your directory servers, how your attributes are modeled, and whether you need group-restricted login. Ask any provider for a quote built from a written scope that lists each of these items, and separate one-time work (configuration, testing, documentation) from recurring work (upgrades, directory changes, support).
How long does a typical Redmine LDAP connection take to validate?
The validation period depends on your environment rather than on a fixed figure. It is shaped by how quickly your directory team can provide a test account and a test group, how many login scenarios need checking (first login, existing user, locked account, user outside the group), and whether the directory has replicas that respond differently. Ask the provider to name the test cases and the environment where they will run before agreeing on a timeline.
What must our internal team provide before the work starts?
Plan to provide three things. First, directory administrator access, or a named administrator who can answer questions about the schema and run lookups for the team. Second, a test group in the directory with a few test users, including one who should be blocked from Redmine, so group restriction can be proven. Third, the certificate authority certificate that signs the directory's LDAPS certificate, so Redmine can verify the connection. Also confirm the Redmine host can reach the directory on the LDAPS port and that DNS resolves the directory's host name.
Can an in-house team connect Redmine to OpenLDAP or FreeIPA on its own?
Yes, a team with Redmine administration skills and directory knowledge can do it, because Redmine authenticates against LDAP natively and the configuration is set in the administration area. The points that usually need a second pair of eyes are the search filters, the choice between anonymous and bound searches, LDAPS trust, and the group restriction logic, since a small mistake can allow the wrong users in or lock out valid ones. Decide early who owns the directory side, who owns the Redmine side, and who signs off the test results.
How does restricting login to a directory group affect project membership?
Restricting login to a group controls who can sign in to Redmine, but it does not place those users into Redmine projects or Redmine groups. Core Redmine has no group synchronization, so project memberships, roles and Redmine groups must be assigned separately, either by hand or through a plugin or script you maintain. Plan the mapping before go-live so a user who can sign in does not arrive with no project access, and so removing someone from the directory group is paired with a clear process for their Redmine memberships.
Should we use anonymous or bound searches against OpenLDAP or FreeIPA?
The choice depends on how your directory is configured and what your security team accepts. Anonymous searches avoid storing a service account password in Redmine but only work if the directory allows them for the attributes Redmine needs. Bound searches use a service account, which must be stored and rotated, and it should have read-only access to users and groups. Confirm the policy with your directory administrator, test both modes if the directory permits, and record the decision in your configuration documentation.
What ongoing work recurs after the connection goes live?
Expect recurring work in four areas. Redmine upgrades must be checked against the LDAP settings and any authentication plugins, and the current 7.0.x line is the fully supported one. Directory changes such as renamed groups, new OUs, certificate renewals and schema updates need to be reflected in Redmine. Access reviews should confirm that people who left the directory group no longer have active Redmine sessions or project roles. Finally, OpenLDAP and FreeIPA themselves receive releases that need planning, so assign a named owner for each component.
How a Redmine sign-in reaches the directory
The sign-in starts in the browser, where the user submits credentials to Redmine. Redmine then binds to the directory over LDAPS, and the directory confirms the credentials and returns the user's attributes and group memberships. Redmine checks the group before creating a session. Confirm that the directory connection stays inside the trust boundary and that the group check runs before any session is issued.
Sign-in path from the browser through LDAPS to the group check.
Deciding between OpenLDAP and FreeIPA for Redmine
Keep a plain OpenLDAP directory when its only job is to answer Redmine's bind and search requests and your team already runs and monitors LDAP. The OpenLDAP 2.6 Administrator's Guide describes slapd as a stand-alone LDAPv3 server with SASL and TLS support, a high-performance MDB backend, and replication options that include multi-provider setups. That scope is exactly what Redmine's native LDAP authentication needs: a directory that stores users, a searchable uid attribute and an optional memberof overlay for group-restricted login. Redmine does not require Kerberos, certificates or host policy, so a plain OpenLDAP tree adds fewer moving parts when those features are not on your roadmap.
Choose FreeIPA when the same identity system must also cover Linux hosts, Kerberos tickets, host-based access rules or internal certificates. The FreeIPA About page describes it as an integrated solution that combines 389 Directory Server, MIT Kerberos, the Dogtag certificate system and SSSD on clients. Redmine only consumes the LDAP side, so the Kerberos, PKI and DNS components are justified by other services, not by Redmine itself. FreeIPA's deployment recommendations call for at least two to three replicas per datacenter and dedicated servers, so the extra footprint is a recurring operational cost. Confirm with your own platform team whether those other uses exist before accepting that cost.
Make the decision on existing operations and recurring ownership, not on which product is better. Ask who will patch, back up and restore the directory, who runs the replicas, and whether the team has the skills for the chosen stack. FreeIPA's backup guidance warns that restoring an outdated backup into an active replica topology can break replication, which shows why ownership matters. Whichever you choose, confirm the exact ldap_uri, base_dn and attribute names against the directory you run, and plan a test login with a non-administrator account before pointing production Redmine at it.
How DeployOpen scopes and delivers Redmine directory login
DeployOpen plans, builds, tests and documents Redmine sign-in against your OpenLDAP or FreeIPA directory inside your own infrastructure. The work starts with a written scope that fixes the directory, the login attribute, the bind model and the access rules before any configuration changes are made.
How we scope
- We confirm which directory you run, its version and where the Redmine server can reach it on the network.
- We agree the login attribute, search base, bind model and whether LDAPS or StartTLS will protect the connection.
- We record which directory group, if any, limits sign-in and which Redmine roles new accounts should receive.
How we build
- We configure the Redmine LDAP authentication source on your Redmine version and map directory attributes to Redmine user fields.
- We test anonymous and bound searches, certificate trust for LDAPS and group-restricted login against test accounts.
- We check the memberof overlay or equivalent group attribute on FreeIPA or OpenLDAP before relying on it for access rules.
How we hand over
- You receive the written configuration, the test cases we ran and the results, with the steps to repeat them.
- We document the service account or bind credentials, where they are stored and who is responsible for rotating them.
- We walk your administrators through troubleshooting failed logins and show them where Redmine records authentication errors.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, Redmine upgrades and directory changes can be covered by a retainer agreed separately.
- We can retest login after a Redmine upgrade, a directory certificate renewal or a change to group membership rules.

