How to restrict Redmine login to an LDAP group
If only staff in one directory group should be able to sign in to Redmine, the simplest control is the LDAP login filter. Redmine's native LDAP authentication, one of its core features, can require that a user's directory entry match a filter such as membership in a specific group, so an account outside that group is refused at sign-in. Teams usually need this for two reasons: offboarding should work by removing someone from the directory without a separate Redmine cleanup, and a department such as one engineering team or one client-facing unit should be the only population that can reach a shared instance. The filter controls sign-in only. It does not decide what a signed-in user can see or change.
Core Redmine has no group sync. It does not read directory groups and turn them into Redmine groups, and it does not add users to projects based on directory membership. Project membership, roles and any Redmine groups must be assigned inside Redmine, either by hand or through a plugin or script your team owns. Plan that as a second workstream, because a user who passes the filter but is absent from every project will sign in and see almost nothing. Confirm with your directory team which group is the authoritative source, who maintains it, and whether nested group membership is in scope, since the filter syntax and the directory's group model determine whether nested members match.
Before changing production, test the filter against a known member and a known non-member. Use a non-production Redmine or a copy of the configuration, and check the exact group distinguished name and the user attribute the directory returns, because a mismatch here silently locks out legitimate users. Also decide what happens to existing Redmine accounts that no longer match the filter: they should be blocked from signing in, and your runbook should say whether they are locked, deactivated or left alone. Review the Redmine installation guide and the authentication settings for your version before you commit, and confirm the expected behavior in your own environment.
Filter approaches and when each fits
This table compares three ways to limit Redmine sign-in: a memberOf-based filter on the user's own entry, a group search filter run against the directory, and a separate OU or directory for the allowed population. Read each column as one option and check the directory dependency and change control rows before choosing. The main takeaway is that the filter is only as stable as the group it depends on, so the team that maintains that group should be the team that owns the filter.
| Option | Directory dependency | Who maintains the group | Troubleshooting and change control trade-off |
|---|---|---|---|
| memberOf filter on the user entry | Active Directory exposes memberOf natively. OpenLDAP needs the memberof overlay. FreeIPA uses its own group attributes that must be checked in your schema. | Directory administrators, who already manage the group for other systems | Fast to test with one user entry. Changes take effect at next sign-in, but nested groups may not appear unless the directory expands them, so confirm membership with a test account. |
| Group search filter against the directory | Requires the directory to answer a search for the group object, usually with the group DN or a group-of-names class. Works across all three directories when the schema matches. | Directory administrators, with the group object often shared by several applications | Easier to reason about nested membership if the filter uses the directory's matching rules. Errors appear as an empty result, so log the search and compare the returned DN before blaming Redmine. |
| Dedicated OU or directory for allowed users | Needs a separate search base, and often a separate LDAP source if the population sits in another domain or tree. | The team that owns the population, which may differ from the owner of other applications | Isolates the allowed population from unrelated staff changes, but moving a user into or out of the OU is a directory change that someone must request and record. |
| Redmine group membership used as a gate | No directory dependency for the filter itself, since Redmine checks its own user record. | Redmine administrators, who must keep two systems in step | Does not restrict first sign-in from LDAP on its own. Use it for project access, and confirm the directory filter separately. |
Setting up the group filter in Redmine
This sequence takes you from confirming the directory group to proving that only its members can sign in to Redmine through LDAP. Each step ends with a check so the filter is verified before it reaches users.
Confirm the group DN and membership attribute
Run a read-only query against the directory with a search client such as ldapsearch, using an account that can read the group object. Record the group's distinguished name, the attribute that lists members (for example, memberOf on Active Directory or a member or uniqueMember attribute on OpenLDAP and FreeIPA), and confirm that a known member's account appears in that list. The check is complete when you can name the exact DN and attribute and a test user appears in the results. Do not change anything in the directory during this step.
Work on a non-production copy first
Before touching the live Redmine, restore a copy of the database and configuration into a separate instance that can reach the same directory, or use a staging environment your team controls. Make all filter changes there first. The check is that the copy starts, serves its login page, and accepts a test sign-in with a known account, so you know the copy behaves like production before you repeat the changes.
Create or edit the LDAP authentication source
Sign in to Redmine as an administrator and open the administration area to find the LDAP authentication settings. Create a new authentication source or edit the existing one, and enter the host, port, the bind account, and the base DN that your directory team confirmed. Save the source and check that Redmine reports the connection as working. If the save fails, verify the host, the LDAPS port, and the bind credentials before continuing.
Enter the group filter and attribute
In the same authentication source, enter the LDAP filter that matches only members of the group, using the group DN and membership attribute you recorded in the first step. Keep the filter syntax exactly as your directory expects, because a malformed filter can block every user or admit everyone. The check is that the form saves without error and the filter text matches what you tested with the directory query.
Test with a group member and a non-member
Use the source's test function if your Redmine version provides one, then sign in to the staging copy with one account from the group and one account outside it. The member should reach the Redmine home page. The non-member should be refused. Repeat with a disabled or locked account if your policy requires it. The check is that both results match what the directory query predicted.
Confirm the refusal message and log entry
When the non-member signs in, note the message the login page shows and the matching entry in the Redmine production log. Confirm that the log records the failed authentication without revealing the password. Also check that the message does not confirm whether the account exists in the directory. The step is complete when the refusal is clear to the user and the log shows the event you expected, so your support team can recognize it later.
Apply the change to production and record it
Repeat the source change on the production Redmine during a window your team has agreed, then run the member and non-member sign-in tests again. Record the filter text, the group DN, the test accounts used, and the date of the change in your change log. The check is that production signs in members, refuses non-members, and the change record is complete. Remember that group membership in the directory does not add anyone to Redmine projects or Redmine groups, so project access still needs its own setup.
Handling project membership and Redmine groups separately
The LDAP filter decides whether a directory account may authenticate to Redmine at all. It is the only layer that the directory group controls directly, and it is evaluated at login. Removing someone from the allowed group blocks their next sign-in attempt, but it does not remove the account, its project memberships or its group memberships inside Redmine. Plan the filter with your directory administrators so the group that gates access is named, owned and reviewed by the team that already manages joiners and leavers.
- Filter target: Confirm the exact group DN or the
memberOfattribute value that your directory returns for members, since nested or primary-group membership can behave differently. - Existing accounts: Accounts created before the filter was applied keep their Redmine record, so decide whether to lock them explicitly.
- Ownership: Name the group owner and the review cadence in writing.
- Failure mode: Test a user outside the group to confirm the rejection, and check how the error appears in the Redmine log.
- Attribute support: Confirm how your directory exposes group membership, because not every LDAP server offers the same overlay or attribute.
Before go-live, confirm with your directory team which attribute returns group membership in your environment and whether the rejection test is part of your acceptance checklist.
Project membership and roles live inside each Redmine project. A user gains access to a project only when a project manager adds them and assigns a role with the permissions that role grants. Directory group membership does not create these memberships, so a person added to the allowed LDAP group will sign in but may see no projects at all. Roles, workflows and visibility are configured per project and per role, which means this layer needs its own documented owner.
- Manual assignment: Project managers add members and roles through the project settings, which suits small deployments with few projects.
- Scripted assignment: Teams with many projects can use the REST API, which must be enabled by an administrator, to add or change memberships from an approved list.
- Role design: Decide which roles exist before assigning anyone, since changing a role's permissions later affects every member who holds it.
- Offboarding: Removing a directory account does not clear its project memberships, so include project cleanup in the leaver process.
- Audit trail: Record who approved each membership change, because Redmine's history shows the change but not the business reason.
Confirm with your project managers who is allowed to add members in each project, and whether that permission sits with a central team or with each project owner.
Redmine groups are a separate object from directory groups. Core Redmine lets administrators create groups, add users to them and grant a group membership on a project, which then applies to every member of that group. Core Redmine has no group sync, so a change in the directory does not update Redmine groups automatically. Whoever maintains Redmine groups must either update them by hand or run a script that compares the directory with Redmine.
- Manual upkeep: Administrators add and remove users in the Redmine groups screen, which is practical when the number of groups is small and changes are infrequent.
- Scripted upkeep: A scheduled job can read directory membership through an LDAP query and call the REST API to align Redmine groups, but the script needs its own error handling and logging.
- Naming: Use names that match the directory group they mirror, so reviewers can match the two lists during audits.
- Drift: Compare the two sources on a fixed schedule, since a missed change leaves users with access they should no longer hold.
- Plugins: Confirm whether any plugin in your environment provides group sync for your Redmine version, and review its maintenance status before relying on it.
Ask your Redmine administrators to show how a group change in the directory reaches Redmine in your current process, and who checks that it happened.
How a sign-in passes the group filter
A sign-in starts at the Redmine login form, where Redmine binds to the directory and searches for the user. The filter then checks the user's group membership in the directory. Only members of the allowed group reach the step that creates or updates the local account and starts a session. Other users are refused before any Redmine account is changed. Project membership is a separate path: an administrator assigns project roles inside Redmine, and the group filter does not grant them.
Group filter runs at sign-in, separate from project membership.
Security risks of a group-based login filter
An LDAP group filter controls who can start a new Redmine login, but it does not control everything that already exists. The cards below cover the credentials, transport, sessions, local accounts and audit trail that decide whether the filter holds in practice.
Service account password scope
Redmine needs a bind account to search the directory for the group filter, and that password is stored in the Redmine configuration. Give the account read access only to the user and group objects it needs, with no write rights and no membership in privileged directory groups. Ask who can read the Redmine configuration file and database on the host, because anyone who can read that file can use the password against the directory. Confirm with your directory team how the account is rotated and what happens to Redmine logins when the password changes.
LDAPS for credentials in transit
Users send their passwords to Redmine, and Redmine sends them on to the directory for verification. Without TLS, both the user password and the service account password can be captured on the network path between Redmine and the domain controllers or LDAP servers. Use LDAPS, and confirm that the certificate chain is trusted by the Redmine host, since a misconfigured trust setting often pushes teams toward disabling verification. Check the connection with a test login from the Redmine host itself, not from a workstation.
Sessions and API keys outlive group removal
A group filter is checked at sign-in, so a user removed from the directory group can keep using an open browser session until it expires. Per-user REST API keys also remain valid after the directory account changes, because Redmine stores them itself. Confirm how long sessions last in your configuration, and plan a step that locks the Redmine account and resets its API key when someone leaves the group. Test this with a removed test user before relying on it.
REST API docsLocal accounts that bypass LDAP
Redmine supports accounts that authenticate inside Redmine rather than against the directory, and the built-in administrator account is one of them. A user who already has a local password can keep signing in even after the LDAP group filter is applied to the LDAP source. List every account with an internal authentication mode, disable the ones that should not exist, and confirm that the administrator password is held under a documented control. Review this list again after every upgrade or data import.
Audit of granted access
Redmine creates the local account the first time an LDAP user passes the filter, so the Redmine user list becomes a record of who has signed in, not of who should have access. Keep the directory group as the authoritative source, and export the group membership on a schedule to compare against Redmine accounts. Check the Redmine administration logs and the web server logs for sign-in failures, since repeated failures can reveal misuse of the filter. Decide who receives these reports and how often.
Questions teams ask before restricting Redmine login
Can our in-house administrator restrict Redmine login to an LDAP group?
Yes, if the administrator has Redmine administration rights, access to the directory schema and a test environment to try filters safely. Redmine's native LDAP authentication supports a filter that limits which directory entries can sign in, so the core change is configuration rather than custom code. The harder parts are confirming which group attribute your directory uses, agreeing who owns the group membership, and testing edge cases such as nested groups and disabled accounts. Teams that have not configured LDAP before often find the testing takes longer than the change itself.
What makes restricting Redmine login to a group take more or less effort?
The effort follows the shape of your directory and your Redmine data. The main drivers are:
- How groups are built: a single flat group is simpler than nested groups or groups spread across several domains.
- Directory type: Active Directory, OpenLDAP and FreeIPA store group membership differently, so the filter syntax changes.
- Number of groups: allowing one group is a single filter, while several groups with different roles add logic and testing.
- Existing Redmine data: users who already have accounts, project memberships and custom fields need review before the filter applies.
Ask for each of these to be inventoried before the quote is agreed.
What do we need to provide before the work starts?
Plan to provide directory read access for a bind account or the agreed search method, the exact group names and distinguished names, and the owners of each group who can confirm membership. You also need a test Redmine instance that mirrors production, a set of test accounts that are inside and outside the group, and a named person who can approve the final filter. Without these, testing depends on guesswork about who should be allowed in. Confirm the list in writing as part of the scope.
How long does this kind of change take?
Duration depends on scope, which is set by the directory structure, the number of groups, and how much existing Redmine data must be reviewed. A single group in a clean directory with a test environment is the smallest case, and it still needs time for login tests with inside and outside accounts. Adding nested groups, several directories or a project membership review extends the schedule. Ask for the timeline to be tied to named deliverables, such as the tested filter, the test results and the cutover steps, rather than to an open-ended effort.
Can we reverse an LDAP group restriction if it blocks people?
Yes. The restriction is a setting on the LDAP authentication source in Redmine, so it can be removed or changed by an administrator without deleting accounts. Before changing it, keep a copy of the previous configuration and record who was signing in. Note that the reversal only changes who can sign in; it does not restore project memberships or roles that were changed during the rollout. Test the rollback path in the test environment as part of the plan.
What happens to users who already have Redmine accounts?
Existing accounts are not deleted when a group filter is added, but users who are not in the group may no longer be able to sign in through LDAP. Their issues, time entries and comments remain in Redmine. Confirm with the owner of each project whether those users should keep access, be moved to another authentication method, or be locked. Also check accounts that were created on the fly from LDAP, since their login attributes must still match the directory after the change.
Does a group filter also control project membership and Redmine groups?
No. The LDAP filter controls who can sign in, but Redmine core does not sync directory groups into Redmine groups or project memberships. Project roles still have to be assigned in Redmine, either manually or through a process you run. This separation matters because a user can be allowed to sign in and still see nothing until a project role is set. Plan the membership model as a separate step and confirm who maintains it after go-live.
Who should review the design before it goes live?
Ask for review by the directory owner, the Redmine administrator and the security or compliance lead who owns access decisions. The directory owner confirms the group and attributes, the Redmine administrator confirms the filter and fallback steps, and the security lead confirms that the group reflects the intended access policy. Record the approvals with the test results so the access rule can be explained later. The evidence also supports internal access reviews, though it does not replace an independent audit.
Limits to confirm in your environment
An LDAP group filter is only as reliable as the Redmine version, directory structure and account history behind it. The cards below cover the checks that most often change the outcome, so you can confirm them with a test account before the restriction reaches your users.
Redmine version and filter behavior
Confirm which Redmine line you run before writing the filter, since the supported releases differ in what they receive. The current fully supported line is 7.0.x, and 6.1.x and 6.0.x get only security or bug fixes. Test the exact filter string against the version in staging, because authentication settings and error handling can change between releases. Record the version in your change ticket so the filter can be retested after each upgrade.
Redmine download pageNested group membership
Find out whether your target group contains other groups and whether those nested members should be able to sign in. Many directories only report direct membership in a user's memberOf attribute, so a user who belongs to the group only through a child group may be denied. Ask the directory team how nesting is built and test one user from each level of nesting with ldapsearch. Decide the rule before you write the filter, not after the first helpdesk ticket.
Membership attribute and naming
Confirm which attribute carries group membership in your directory, such as memberOf in Active Directory or an overlay on OpenLDAP or FreeIPA. The attribute name, the group DN format and the case of the DN all affect whether the filter matches. Check whether the directory stores the full distinguished name or a short name, and whether the group is an actual group object rather than a list maintained elsewhere. A filter that looks correct on paper can match no one if the attribute is missing for your directory type.
Large group membership limits
Ask how the directory returns very large membership lists, because a user can appear to be excluded when the directory truncates results or the search times out. Active Directory and other directories apply query size limits and paging rules that can differ by domain controller. Test sign-in against each domain controller or LDAP server that Redmine may contact, not only the one you use for testing. If the group has thousands of members, plan for slower logins and confirm acceptable response times with the directory owners.
Plugins for group synchronization
Core Redmine restricts login with the LDAP filter but does not copy directory groups into Redmine groups or project roles. If you need automatic group sync, you will need a plugin or custom work, and that adds a maintenance dependency to every upgrade. Check whether any plugin you consider is maintained for your target Redmine version before assuming it works. Keep the filter and the project membership design as separate decisions so the access restriction does not depend on a plugin.
Existing accounts after the filter changes
Decide what happens to accounts that already exist in Redmine when a user leaves the group or the filter is tightened. Confirm whether the account is locked, whether the user can still reach projects they were added to manually, and whether an administrator must deactivate the account. Test a removed user with an existing session and an API key, because a sign-in filter does not always end access that was granted earlier. Document the offboarding steps so access ends in both the directory and Redmine.
How DeployOpen scopes and delivers this Redmine authentication work
DeployOpen agrees the scope in writing before any configuration starts. For this work, the written scope names the directory and domain or tree involved, the LDAP group that should be allowed to sign in, the Redmine version and database in use, and who on the client side approves the design and the test results. Because the filter depends on how the directory stores group membership, the first working session is with the client's identity team. They confirm whether nested group membership must count, which attribute carries membership, which accounts are allowed to bind for searches, and how users who leave the group should lose access. Scope is also where a quote comes from, so ask for the list of directories, environments and test cases that the quote covers.
Configuration and testing happen in the client's own infrastructure, using a non-production Redmine first where one is available. DeployOpen sets the LDAP authentication mode and the filter, then tests with accounts that are inside the group, outside it, disabled, and removed from it. Each test is recorded with the directory query, the result and the Redmine log entry, so the client's security and compliance teams can review the outcome. The documentation covers the filter, the bind account and its rights, the rules for project membership and Redmine groups (which core does not synchronize from LDAP), and the steps for an administrator to add or remove users. Ongoing upgrades, support and repeat testing after Redmine or directory changes are available as retainers.

