Redmine multiple LDAP directories: when one instance needs several sources
Many organizations end up with more than one directory: two Active Directory forests after an acquisition, an OpenLDAP directory that holds contractor accounts, or a merger that leaves staff spread across separate domains. If all of those people need to sign in to one Redmine instance, the design question is how Redmine should decide which directory answers each login. Redmine's native LDAP support is the starting point, and core Redmine lists multiple LDAP authentication support among its features, so you do not need a plugin to connect several sources. The real work sits in how each source is defined, how a login is matched to a source, and how existing Redmine accounts are tied to the directory entry they came from.
Start by building an inventory before touching the administration screens. For each directory, record the server and port, whether it uses LDAPS, the search base, the login attribute, whether a service account is required, and which people must be able to sign in. Then decide whether each user will be authenticated through exactly one source or whether some accounts will stay on internal Redmine passwords. Plan for the cases where the same login name exists in two directories, such as a jsmith in each forest. Redmine identifies an account by its login, so you need a rule for which person gets which name, and you need to confirm how the version you run handles a name that already exists in another source before any user signs in.
Confirm every per-source setting, field name and menu path against the Redmine version you run, because the authentication administration screens have changed between releases and the current supported line is listed on the Redmine download page. Test each source with a pilot group of users from each directory, check which source each test account is assigned to, and record how a user moving between sources or a directory disabling an account would behave. Ask your Redmine support provider to document this mapping as part of the implementation, since it is the part most likely to need review when staff change departments or leave.
Redmine multiple LDAP directories: which pattern fits your organization
This table compares three ways to sign users into one Redmine when they live in more than one directory: one LDAP source per directory, local accounts for exceptions, and consolidating directories before sign-in. Read each row against your own identity landscape, then use the confirmation column to check the assumptions with your directory and security teams before you commit to a pattern.
| Pattern | When it fits | What it makes harder | What to confirm |
|---|---|---|---|
| One LDAP source per directory | Separate domains or forests each own their staff, and each user belongs to exactly one directory | Login names can exist in more than one directory, so Redmine needs a clear rule for which source a name belongs to; support staff must know which directory a user signs in through | Whether any person holds accounts in two directories, which source each login name belongs to, and who owns the mapping when someone changes directory |
| Local Redmine account for exceptions alongside LDAP | A small number of contractors, vendors or break-glass administrators have no directory account | Local passwords sit outside directory offboarding, so disabling a leaver in LDAP does not remove their Redmine access unless someone also deactivates the local account | Who approves each local account, how often they are reviewed, and whether two-factor authentication applies to them |
| Consolidating directories outside Redmine before sign-in | An organization wants one identity source for Redmine, for example after a merger or directory migration | Sync and join logic moves into another system, which adds a dependency and a second place where attributes can drift; the timing of changes may lag behind source updates | Which system is the authoritative source, how long attribute changes take to appear, and who runs the sync and its failure alerts |
| Common requirement across all patterns | Any pattern that spans several directories | Each Redmine user still needs a single authentication source, and project memberships and roles are managed inside Redmine rather than synced from directory groups | Who approves access changes, how leavers are removed from both Redmine and each directory, and how the mapping is recorded for audit evidence |
How a sign-in request reaches the right directory
A sign-in starts at the Redmine login form, where Redmine looks up the account by login name and reads its authentication mode. A local account is checked against the password stored in Redmine, while an LDAP account is sent to the directory source assigned to it, so directory A and directory B each receive only the requests for their own accounts. The trust boundary sits at each LDAP bind: check that the bind succeeds, that the account is found in the expected source, and that first-login account creation happens only where you intended.
Login routing from Redmine to one of two LDAP sources or a local check.
How Redmine assigns an authentication mode to each user
The key point for a multi-directory setup is that every Redmine user account carries an authentication source, which records where that account's password is checked. Redmine keeps an internal password for accounts that use the built-in mode, and for accounts linked to an LDAP authentication source, it asks that directory to verify the credentials. Two people with the same display name, or even the same login name in different directories, are separate Redmine accounts, and each one signs in through whichever source it is assigned to. The assignment is stored on the account, not derived from the username at login time, so an administrator should treat it as part of the user record.
When an LDAP user signs in for the first time and on-the-fly creation is enabled, Redmine creates the account and ties it to the source that matched the login. That tie is what decides later logins, so a source mapping mistake made at creation time persists until someone corrects it. Accounts that already existed before you added a second directory keep their original mode, which means an administrator should review the authentication mode of pre-existing accounts, especially those whose login names could also exist in the new directory. Confirm in your version how Redmine reports the source on the user edit screen and whether changing it is a supported administrator action, and test that change on a copy of the database first.
A locked or disabled authentication source affects every user assigned to it at once. Users tied to a source that is switched off or cannot be reached will fail to sign in even though their directory account is valid, and the error they see may not name the source. Plan for this before you retire or reconfigure a directory: decide who owns each source, what happens to its accounts during an outage, and whether an administrator-level account with a different source can still reach Redmine. Verify the exact behavior for disabled, locked and unreachable sources in your Redmine version and document the result in your operations runbook.
Login name collisions to plan for before users sign in
When Redmine reads users from more than one directory, the login name becomes the key that decides which account a person gets. Most of the trouble comes from names that match across sources, differ only in case, or change after a directory rename, so each risk needs a check and a named owner before the first sign-in.
Same login in two directories
The same login, such as jsmith, can exist in two LDAP sources that Redmine searches. Redmine matches on the login string, so the first source that answers may claim the account. Before go-live, export the login names from every directory in scope and compare them for overlaps. For each overlap, the identity owner of the directory that holds the authoritative record decides which person keeps the login, and the Redmine administrator records that decision.
Login case differences
Directories treat login names differently. Active Directory's sAMAccountName is case-insensitive, while OpenLDAP and FreeIPA values are often matched exactly. A user who types JSmith at one directory and jsmith at another can end up with two Redmine accounts or none at all. Test sign-in with mixed-case input against each source, and agree on one normalized form with the directory owners before you configure the login attribute.
Local account shares a directory name
An internal Redmine account created before LDAP was connected may use the same login as a directory user. Depending on the authentication mode set on that account, the directory user may be locked out or may sign in to the old local account, which keeps its old roles and project memberships. Before go-live, list local accounts and compare them with directory logins. The Redmine administrator should decide whether to convert, rename or deactivate each one, and the project sponsor should confirm access for any that remain.
Attribute gaps during account creation
On-the-fly creation copies first name, last name and email from the directory the first time a user signs in. If one source has no mail attribute, or uses a different attribute name for the same field, the account creation fails or is created incomplete. Check each directory's attribute names and whether required Redmine user fields are populated for every user in scope. The directory owner and the Redmine administrator should agree on the attribute mapping for each source before users are invited.
Login changes after directory rename
When an employee's login changes in the directory, for example after a marriage, a name correction or a domain consolidation, Redmine sees a new login with no account. The old account stays behind with its issues, time entries and memberships, and the person may end up with two identities. Ask the directory team how renames are processed and whether old logins are kept as aliases. Then decide with the Redmine administrator how the history will be linked, and document the procedure before the first rename happens.
Setting up Redmine with multiple LDAP directories
This sequence takes Redmine from an inventory of your directories to a working setup where each directory has its own authentication source, users are assigned to the right one, and new users can be created on first login. Each step ends with a check you can confirm before moving on.
Inventory each directory and its login attribute
Before touching Redmine, list every directory that will authenticate users, along with its domain or base DN, the attribute users type at login (such as sAMAccountName, uid or mail), the attribute that holds the email address, and the team that owns it. Record which directories share user names, since that decides how you handle collisions later. Ask each directory owner to confirm the service account you will use for searches, and whether that account can read the user attributes Redmine needs. The step is done when you have one row per directory in a document your team has reviewed.
Confirm LDAPS and network reachability
From the Redmine host, confirm that each directory's server answers on the secure LDAP port (LDAPS, normally 636) and that the certificate chain is trusted by the host's operating system, because Redmine will reject connections it cannot verify. Run the connectivity test from the same user and network path that the Redmine application process uses, not from your workstation. Ask the directory owners which domain controllers or replicas are approved for application use. The step is done when a TLS handshake to each server succeeds from the Redmine host with the certificate verified.
Create one LDAP source per directory
In the administration area, open the LDAP authentication settings and add one authentication source for each directory, giving each a name that identifies the directory, such as the domain or business unit. Enter the host, port, encryption mode, base DN, search filter, login attribute and attribute mappings from your inventory, and use a separate service account for each source where the directory requires one. Save each source without enabling any group restriction yet. The step is done when every directory appears as its own named source in the list, and none of them shares settings with another by accident.
Test each source with a known account
Use the built-in test function on each LDAP source with a known user from that directory, and then sign in through the login page with the same account to confirm the full path works. Check that the user's name and email were read correctly and that the test does not rely on a cached result from a different source. Repeat the test with a user from a second directory to make sure settings were not mixed up. The step is done when each source returns the expected user during the test and a real sign-in succeeds, with the source name visible in the Redmine log for that login.
Decide how duplicate logins are handled
Where two directories contain a user with the same login name, Redmine cannot tell them apart by name alone, so you need a written rule before users sign in. Common choices are to make login names unique across directories by including a domain prefix or to route each user to one source by their email domain or group. Confirm the chosen rule with the directory owners and with the people who manage Redmine accounts, and document any exceptions. Test one duplicate pair from your inventory to confirm the rule returns the right account. The step is done when the rule is documented and the test pair signs in to the intended account only.
Assign authentication modes to existing users
For users who already have Redmine accounts, set each account's authentication mode to the LDAP source for their directory, using the user administration screen or a reviewed export and import process for larger numbers of accounts. Check accounts that were created with internal passwords and decide whether they should move to directory sign-in or stay local, recording the decision for administrators. Keep a list of changed accounts so the change can be reversed if a directory is mapped incorrectly. The step is done when a sample of users from each directory signs in through their assigned source and an administrator can see the mode on each account.
Check on-the-fly creation for each source
For directories where Redmine should create accounts on first sign-in, enable on-the-fly creation on the relevant source only, then sign in with a user who has no Redmine account yet. Confirm that the new account takes its name and email from the correct attributes and is linked to the source that created it. If the first sign-in fails, check the Redmine log, which records the source name for each attempt, and compare the attribute names with your inventory. The step is done when a new user from each source is created once, linked to the right source, and can sign in again without being duplicated.
Migrating users between sources without losing their history
When a person who signs in with a local Redmine password starts signing in through LDAP, the goal is to keep the existing user record, so their assigned issues, journal entries, time entries and project memberships remain attached. Redmine links an account to an authentication source, so the switch is an update to that existing record, not the creation of a second account. The main risk is a duplicate: if the directory login creates a new account because the stored login does not match, history stays on the old record and the person sees two accounts. Confirm in your release how Redmine handles an existing local login that matches a directory user before you run any change at scale. Plan the match key before anything else.
- Match on a stable identifier: Compare the local login to the directory login attribute (for example,
sAMAccountNameoruid) and, where possible, the verified email address. Do not match on display name, which changes. - Export the candidate list first: Record each local user's ID, login, email and status so you can reconcile the result against Redmine's own data.
- Move users in small batches: Switch one group, sign in as a test user, then check that their issues and time entries still show under the same account.
- Decide what happens to the local password: Confirm whether the local password remains usable after the switch, since keeping it can weaken the directory-based control.
- Keep administrator accounts local: Retain at least one tested local administrator so a directory outage does not lock every administrator out.
Before closing the batch, check that the user record ID, memberships and time entry totals match the pre-change export.
After a domain merge or a directory consolidation, the same person may now exist under a new domain, a new login format or a new directory server. The identity key has to survive that change. A stable attribute such as an employee number, or an object GUID where the directory provides one, is safer than the login name, which often changes during a merge. Redmine does not provide a general tool to re-point one account from one authentication source to another, so confirm in your release exactly which fields the login form and the source configuration allow you to change, and test the path on a copy of the database.
- Pick the key from the source of truth: Use the attribute that the HR or directory team maintains as permanent, and map old login to new login in a reviewed table.
- Handle login collisions before the cut: If two users in different domains share a login, resolve the mapping before either source is switched, because this is where accounts are wrongly merged.
- Keep the record ID: Change the authentication source and login on the existing record rather than deleting and recreating the user, so references in issues and time entries remain intact.
- Run both sources in parallel for a window: Keep the old source readable until users have signed in successfully against the new one.
- Verify with a sample of real history: Pick users with long histories and confirm their assigned issues, watched issues and time totals after the change.
Ask your Redmine administrator to record the mapping table and the post-change counts so the cut can be reviewed later.
Retiring an LDAP source is harder than it looks when users are still assigned to it. Redmine ties each user to an authentication source, so disabling or removing the source while accounts still reference it can stop those users from signing in and leave their records in an unclear state. The safer sequence is to move or lock users first, then remove the source configuration. Decide which users are leavers, which are moving and which must keep access, and handle each group deliberately. Do not assume that deleting a source deletes or reassigns its users.
- Count the dependent users: Before any change, list every account that references the source, including inactive and locked accounts.
- Move or lock each group: Migrate active users to another source, or lock accounts for leavers, so no account depends on the source being removed.
- Preserve leavers' history: Lock rather than delete leaver accounts so their issues, comments and time entries still resolve to a named user.
- Keep the configuration until the count is zero: Disable the source for new logins, check the dependent count, and only then remove it.
- Document the decision: Record the date, the owner who approved the retirement and the number of accounts moved or locked.
Confirm with your data protection and records owners how long leaver accounts must be kept, since that decision controls what you lock and what you can remove.
Users are most likely to cause problems during a source change, not because the technology fails, but because they do not know their login has changed. A short, specific notice reduces help desk tickets and stops people from creating new accounts out of confusion. The message should say which login to use, which system to use for password resets, what will not change, and who to contact. Avoid promising that nothing will change, because the sign-in path and password policy often do change, and say so plainly.
- Name the new login exactly: Show the format and an example that is clearly marked as illustrative, so users do not guess.
- State what stays the same: Confirm that projects, assigned issues and time entries stay in place, once you have verified this in your environment.
- Give the password route: Explain whether passwords are reset in the directory, in Redmine, or not at all.
- Set a cut-over time: Tell users when the old login stops working and when the new one starts, and send a reminder before the change.
- Publish a single contact: Route problems to one support queue so duplicate-account reports can be matched quickly.
Before sending the notice, have one or two pilot users sign in to the test environment so the wording matches what they will actually see.
Every batch needs a rollback plan that is written and tested before the change, because a failed directory bind or a mismatched login can lock users out in the middle of a working day. The rollback should restore the previous authentication source and login for each changed record, and it should not depend on memory or on the person who made the change. Test the rollback on a copy of the production database, and confirm that a restored database still matches the uploaded files and the plugin versions in use. Take a backup before the first change and store it outside the server being changed.
- Back up before each batch: Take a database backup immediately before the change and confirm that it restores.
- Log every changed record: Keep the user ID, old source, old login and new source for each account, so the change can be reversed row by row.
- Set a stop condition: Define in advance how many failed sign-ins or duplicate accounts stop the batch.
- Keep the old source reachable: Do not remove the previous source until the rollback window has closed.
- Rehearse the reversal: Run the rollback once on the test environment and time how long it takes.
Ask your Redmine administrator to confirm the backup and restore procedure for your release and to name the person who can approve a rollback during the change window.
Security controls for sign-in through several directories
Each directory you connect to Redmine is another place where a person can sign in and where access can outlive their job. The controls below apply to every source, so a stale account in one directory cannot quietly grant access to the others.
Encrypt every directory connection
Each LDAP source sends bind credentials and user attributes to Redmine, so every source should use LDAPS on port 636 or StartTLS, never plain LDAP. Check each source separately, because a directory that was set up years ago for a single project often has the weakest settings. Confirm that certificates validate against a trusted chain and that Redmine is not configured to skip verification for any source.
Redmine install guideLeast-privilege bind account per directory
Give each directory its own bind account that can only read the users and attributes Redmine needs. A shared administrator account spread across several sources means one leaked password exposes every directory at once. Where the design allows, use dynamic bind so the user's own credentials are checked against the directory and no stored service password exists. Ask the directory team to confirm the account cannot write, reset passwords or read group membership it does not need.
Offboarding in the correct source
A Redmine account is tied to the directory that authenticated it. If someone leaves and is disabled only in a different directory, or only in Redmine, the source they actually use keeps working. Document which directory owns each Redmine user, and make the offboarding checklist name that source. Test the process with one departing user per directory, and confirm that a disabled directory account can no longer sign in to Redmine.
Audit the source of every account
Run a regular report that lists each Redmine user with its authentication mode and LDAP source. Accounts with no source, accounts linked to a directory that has been retired, and accounts still in internal mode for staff who should be directory-managed are the usual gaps. Compare the list with the current directory roster so that accounts whose owners no longer appear in any source are reviewed and locked. Confirm with your Redmine administrator how this report is produced in your version.
Restrict login groups per source
An LDAP source that accepts any valid directory user lets contractors, former staff in a legacy domain and service identities sign in to Redmine. Apply a login filter on each source so that only members of an approved group can authenticate. Redmine does not sync groups into project roles, so keep project membership managed separately. Test a user who is outside the group in each source to confirm that the login is refused.
Protect the bind account secret
Where a service account password is stored, it sits in Redmine's configuration and can be read by anyone with administrator or server access. Limit who can view the configuration, keep it out of shared repositories and backups that are widely readable, and rotate the password on a schedule and after any administrator change. Record the owner and rotation date for each source's secret so that a removed administrator does not retain knowledge of a live credential.
What a multi-directory Redmine setup costs and what it needs from your team
What drives the cost of implementing multiple LDAP directories in Redmine?
The main cost driver is how many directories are involved and how different they are from each other. Redmine itself is free under GPL v2, so you pay for the people doing the design, configuration, testing and handover. Each directory adds its own bind method, search base, login attribute, TLS setup and attribute mapping, and each one needs its own test cases. Duplicate logins across directories, users who must move between sources, and any custom fields that must be filled from directory data add further work. Ask any quote to list the directories, the number of user populations, the collision rules you expect to apply, and the test environments included.
Can an internal Redmine administrator set up multiple LDAP sources alone?
A capable administrator can usually configure one LDAP source alone, but multiple directories raise the bar. The person needs read access to each directory, working knowledge of LDAP filters and TLS certificates, and a clear rule for which source wins when two accounts share a login name. They also need to test each source with a dedicated account and check the results in the Redmine audit and log output. If your team already runs the directories and can supply schema details and test accounts quickly, an internal build is realistic. If directory owners are in different departments or the rules are not agreed, the work tends to stall without an outside reviewer.
How long does the work take as directories and duplicate logins increase?
Duration grows with the number of directories, the number of duplicate login names, and the number of decisions that need sign-off from directory owners. A two-directory setup with no overlapping names is a much smaller job than several domains where the same people hold accounts in more than one place. Each collision rule, each migration of a user between sources and each change to the login name format adds testing time. Ask for a written schedule that separates design, build, test with real accounts and cutover, and that names who must approve each step. Avoid any timeline that is not tied to a written scope.
What must our team provide before a multi-directory engagement starts?
Your team provides access and decisions, and the work cannot proceed without them. You will need read-only bind accounts or the agreed authentication method for each directory, the base DN and login attribute for each one, and the TLS certificate chain for LDAPS. Provide a sample of user records with the attributes Redmine must read, plus test accounts for each population, including a user who exists in two directories. Name a decision owner for login naming, collision handling and who keeps authority over user removal. Missing decisions are the most common reason for delays, so settle them before build starts.
What recurs after go-live for a multi-directory Redmine?
Some costs are one-time, such as design, build and migration of existing users. Others recur. Directory changes, such as renamed attributes, new domains, certificate renewals or service account password rotation, need a configuration review. Every Redmine upgrade must be tested against the authentication settings, and plugin changes can affect login behavior. You also need someone to review new duplicate logins and to handle users who move between directories. Plan for these tasks as ongoing operations work, and ask any provider to state which items are included in the initial scope and which fall under a support arrangement.
When should we choose a retainer instead of a one-time implementation?
Choose a retainer when your directories change often, when you run regular Redmine upgrades, or when a small number of people must be able to respond to login problems quickly. A one-time fixed-scope implementation suits a stable set of directories with agreed rules and a clear handover. DeployOpen delivers most engagements as fixed-scope work with written scope, deliverables and timelines, and offers ongoing support, upgrades and testing as retainers. If you expect new directories, mergers or frequent identity changes, ask for both a fixed-scope build and a retainer scope so the operating model is defined before go-live.
Does the setup add compliance or security obligations we must plan for?
Yes. Each directory you connect becomes a source of identity for Redmine, so access decisions depend on how accurately that source is maintained. Your records should show which directory governs each account, who approved the rules, and how removed users lose access. Service account credentials and TLS settings need a documented owner and rotation process. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit report or certification. Confirm with your assessor which evidence they expect before the design is fixed.
Limits to confirm before you commit to this design
Multiple directory sources touch several parts of Redmine at once: the version, the runtime stack, plugins, and the directory schemas themselves. Each card below is a question to put to the vendor, the directory owner or your own test environment before the design is final.
Number of LDAP sources in this version
Confirm that the Redmine version you plan to run supports the number of LDAP authentication sources you need, and that the admin screens let you order them and assign each one to users as described in this design. Test with a source count that matches production, not a single sample directory. Ask the team responsible for your Redmine version to confirm the behavior for each source type, including how a failed or unreachable source is handled during login.
Installation guideDirectory groups and Redmine groups
Ask whether any directory group membership should decide Redmine group membership or project roles. Core Redmine does not sync groups from LDAP, so each directory's groups will not map automatically to Redmine groups across sources. Confirm with the directory owners which groups matter, then decide whether memberships are managed by hand, by a plugin, or by a separate process. Document the decision before users from two directories start sharing projects.
Database and Ruby versions
Check that the database engine and Ruby version in your build are both on the supported list for the Redmine release you plan to deploy. The database choice affects how case sensitivity and collation handle login names, which matters when two directories hold similar names. Ruby versions affect which plugins will install. Test a login from each directory on the exact stack you will run in production, not on a development laptop.
Installation guidePlugins that touch authentication
List every installed plugin and ask its maintainer whether it hooks into login, user creation, or session handling. A plugin that overrides the authentication path can change how multiple sources behave, and it can block a Redmine upgrade if it is not updated to match. Test the full login flow for each directory after each plugin change, and record which plugin version was tested against which Redmine version.
Directory schema changes
Ask each directory owner how they will handle attribute renames, moved organizational units, and changes to the login attribute, such as sAMAccountName or uid. A change in one directory can break logins for every user from that source while the others keep working. Agree on a notice period, a test bind before the change, and a named contact who updates the Redmine source settings.
Login names that exist in more than one source
Confirm how your Redmine version resolves a login name that exists in two directories at once, and whether the user record stays tied to the source that first created it. Ask the directory owners whether naming rules prevent duplicates. Run a controlled test with a duplicate name in a non-production instance and write down the result before you accept the design.
How DeployOpen scopes and delivers multi-directory Redmine authentication
DeployOpen plans and builds Redmine authentication against several directories inside your own infrastructure, starting from a written scope that names each directory, domain and login rule. The work is delivered as a fixed-scope engagement with tested configuration, documentation and a handover your administrators can run.
How we scope
- We inventory every directory, domain and forest that needs to sign in to Redmine and record who owns each one.
- We agree the login name rules, collision handling and which users move between sources in the written scope.
- We confirm the LDAP details to obtain from your directory owners, including bind method, base DN and LDAPS requirements.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any configuration starts.
How we build
- We configure one LDAP authentication source per directory in a non-production Redmine that matches your target version.
- We set authentication mode per user and test the login path for each directory, including accounts that should be rejected.
- We test login name collisions with deliberately duplicated accounts and record the resulting behavior for each case.
- We prepare a repeatable procedure for moving an existing user from one source to another without losing project memberships.
How we hand over
- You receive a written configuration record listing each source, its settings and the owner who maintains it.
- Test results show which accounts were tested, which directories they came from and the outcome of each sign-in attempt.
- We document the user migration steps, rollback steps and the checks to run after each change in your environment.
- Your administrators walk through the runbook so they can add a directory or move users without us.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers when directories or Redmine versions change.
- A retainer can cover re-testing after a Redmine upgrade, since authentication settings should be checked on each new release.
- We can review new directory domains or trust changes against the documented configuration before they go live.
- Support scope and response expectations are set in the retainer agreement, which is confirmed in writing before work begins.

