Redmine with multiple LDAP directories

Redmine can authenticate users against more than one LDAP directory, but login collisions, per-user authentication modes and migrations need a deliberate design before go-live. This page covers the options, setup sequence and ongoing work.

On this page

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.

PatternWhen it fitsWhat it makes harderWhat to confirm
One LDAP source per directorySeparate domains or forests each own their staff, and each user belongs to exactly one directoryLogin 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 throughWhether 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 LDAPA small number of contractors, vendors or break-glass administrators have no directory accountLocal passwords sit outside directory offboarding, so disabling a leaver in LDAP does not remove their Redmine access unless someone also deactivates the local accountWho approves each local account, how often they are reviewed, and whether two-factor authentication applies to them
Consolidating directories outside Redmine before sign-inAn organization wants one identity source for Redmine, for example after a merger or directory migrationSync 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 updatesWhich 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 patternsAny pattern that spans several directoriesEach Redmine user still needs a single authentication source, and project memberships and roles are managed inside Redmine rather than synced from directory groupsWho 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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, sAMAccountName or uid) 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.

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 guide

Least-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 guide

Directory 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 guide

Plugins 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.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.