Configuring an Open edX password policy

Open edX ships with minimal password rules, so self-hosted operators must set their own length and complexity validators or delegate sign-in to an identity provider that enforces policy centrally.

On this page

Configuring an Open edX password policy for a self-hosted LMS

If your self-hosted Open edX site has local accounts whose password rules do not satisfy your security review, the platform's default rules are the likely cause. Open edX ships with minimal password checks, so you have two options: configure validators in the Django settings for your deployment so that length and complexity rules apply to local accounts, or move password policy to the identity provider that signs users in. Which option fits depends on whether your learners and staff authenticate locally at all. The policy covers local accounts on the LMS and Studio, the password reset flow that issues and accepts new passwords, and the Django admin, where staff with elevated flags can sign in with a local password. A team needs a deliberate policy when it runs local accounts for learners, when a review asks for a documented minimum length or complexity rule, or when it has staff accounts with superuser or staff access and no federated sign-in in place.

Start by inventorying which accounts can still sign in with a local password. Check which users have staff or superuser flags, whether any integrations create accounts with usable passwords, and whether third-party authentication is enabled for the audiences you serve. Then confirm in your own environment, with your Tutor configuration and the settings your deployment uses, how the password validators are currently defined and whether the release you run applies them to both the LMS and Studio. Ask your team to confirm the exact validator classes and their parameters against the Django documentation for the Django version your release uses, because validator behavior and the names of settings are not something to assume. Record the result, since your security reviewer will ask what the minimum length is, which character classes are required, and whether the same rules apply to password reset and to the admin.

Decide early whether the platform will hold the password policy or whether the identity provider will. If your organization already runs a SAML or OAuth2 identity provider for workforce sign-in, the stronger position is usually to delegate authentication there, set length, complexity, lockout and reset rules in one place, and close local password sign-in for admin accounts. Keep local validators in place as a fallback for break-glass accounts and for any audience that cannot use the identity provider. The Open edX supported identity providers documentation lists which providers the platform supports out of the box. Plan the change as a project: test sign-in for each audience, document the fallback path, and confirm with your auditors which controls they will accept as evidence.

Password policy options and when each fits

This table compares the three ways to set password rules for an Open edX platform: local validators in platform settings, a third-party or custom validator, and delegating policy to an SSO provider. Read each row against your own sign-in model, since the right choice depends on who signs in locally and what your identity provider already enforces. The main takeaway is that a local validator is the smallest change, but it does not cover the accounts and controls that your SSO provider owns.

ApproachEffort and controlWhat it does not coverWhen it fits
Local passwords with platform validatorsSet length and complexity validators in the platform settings and test them on a staging site. Effort is one-time configuration plus regression testing of sign-up and password reset.Password rules for accounts that sign in through SSO, breached-password checks, password history and lockout behavior unless you configure them separately.Learners and staff sign in locally, your rules are modest, and you want the smallest change to a Tutor deployment.
Third-party or custom validatorWrite or install a validator that enforces rules the defaults lack, such as checks against common passwords. Effort includes code review, maintenance across upgrades and tests for each release you run.Rules that belong in a directory or identity provider, and any enforcement at the SSO login step. A custom validator also adds code your team must patch.You need a specific rule the built-in validators cannot express and your team can own the code over time.
Delegating policy to an SSO providerMove sign-in to Keycloak, authentik or Entra ID through the supported identity provider integrations, then set password rules, lockout and MFA in the provider. Effort is an integration project plus a decision on local sign-in.Local password rules still apply to any account that keeps a local password, so you must close or restrict that path. Provider settings must be confirmed for your own tenant and version.Most staff and learners already sign in through a corporate directory, or policy must match the rest of your estate.

How to set a length and complexity validator on a Tutor site

This sequence moves a Tutor-based Open edX site from the minimal default password rules to a documented length and complexity policy. It ends with a tested rollout that learners, staff and the reset flow all respect.

  1. Back up the current configuration

    Before changing anything, the platform operator copies the Tutor project root, including config.yml, the environment directory and any existing plugins, to storage outside the running host. Record the current Tutor version and the Open edX release in use, because the exact settings for password validation can differ between releases. The step is done when the operator can restore the previous state from the backup and has noted the running versions in the change record.

  2. Confirm the validator settings for the release

    The platform team reads the Django password validation settings and the Open edX documentation for the release in use, then confirms the exact setting names, the validator class paths and whether LMS and Studio read them from the same location. Treat any names drawn from memory or older guides as unverified until they match the release. The step is done when the team has a written list of the setting names and validator classes it will use for both the LMS and Studio.

  3. Add the validator list through a plugin or override

    The operator adds the validator list to the LMS and Studio settings through a Tutor plugin or a settings override rather than editing generated files inside the container image. The list should include a minimum length check, a similarity check against user attributes and a common-password check, with any complexity rules set to match the organization's written policy. The step is done when the configuration renders without errors and the rebuilt images start cleanly on a test environment.

  4. Test password creation and change

    The QA lead runs a scripted set of cases against a non-production site, covering registration, account settings changes and staff accounts created through Django admin. Each case includes passwords that should fail on length, complexity, similarity to the username and common-password lists, plus passwords that should pass. The step is done when every case produces the expected result and the test log is saved with the change record.

  5. Confirm the password reset flow

    The tester requests a password reset for test accounts and confirms that the reset form applies the same validators as account creation and that a rejected password does not change the stored credential. The tester also checks that existing sessions and error messages behave as expected. The step is done when the reset flow enforces the new rules in every case, and any mismatch is logged as a defect with a fix before rollout.

  6. Check existing accounts and sign-in paths

    The operator decides how existing passwords are handled, since a new validator only applies when a password is set or changed. The team also confirms whether any users sign in through an identity provider, in which case the password rules on the Open edX side may not apply to them. The step is done when the team has a written decision on existing accounts and a list of sign-in paths that the policy does or does not govern.

  7. Roll out with a communication plan

    The platform owner deploys the change to production in the agreed window and sends learners and staff a notice that explains the new requirements, the reset process and where to get help. Support staff receive a short guide with the most likely error messages and their meanings. The step is done when the production deployment passes the same test cases on a sample of accounts, and the support queue shows no unexpected failures in the first monitoring period.

How local and SSO password policy decisions flow

The path starts with one question: does sign-in stay local in Open edX, or does it move to an identity provider? If it stays local, the password validators in the LMS and Studio apply. If it moves to SSO, the provider's policy governs learner and staff passwords, and Open edX only receives the identity. Admin and staff accounts are a separate branch: local superuser passwords usually remain in Open edX even when learners sign in through SSO, so check that those accounts are covered by a policy someone owns.

Where password rules are enforced, depending on sign-in method and account type.

Security risks to address alongside password rules

A stronger password validator only covers one part of account security. The risks below sit next to password rules, and each needs its own control, owner and check, so that a tighter policy does not create a false sense of coverage.

Breached password reuse

Length and complexity rules do not tell you whether a password already appears in a leaked credential set. Learners often reuse passwords from other sites, so a valid password can still be a known one. Check whether your identity setup or a custom validator can screen new passwords against breach data, and confirm how existing accounts are handled. Ask whether breach screening exists at all before assuming it does.

Admin accounts that bypass SSO

Staff and superuser accounts often keep local passwords even when learners sign in through SSO. A strong policy on the local form does little if an attacker can reach the Django admin with a password that was set years ago. List every account with elevated flags, decide which ones must authenticate only through the identity provider, and restrict admin paths at the network level.

Password reset abuse

The reset flow is a second way into an account, and it is often weaker than the login form. Check that reset links expire quickly, that reset requests are rate limited, and that the reset email cannot be used to probe which addresses have accounts. Password rules do not apply to attackers who take over a mailbox, so confirm who controls the email domain and recovery addresses.

Credentials in config and logs

Passwords and keys can leak outside the login form, through Tutor's generated configuration, shell history, deployment logs and support tickets. A validator does not change where a secret is written. Review file permissions on the Tutor project root, confirm that logs do not capture submitted passwords, and move generated secrets to a managed store where your platform supports it.

Missing multi-factor authentication

A password policy cannot stop a correctly chosen password from being phished or captured. Multi-factor authentication adds a second factor that a password rule cannot provide. For Open edX, the practical route is usually to delegate sign-in to a SAML or OAuth2 identity provider and enforce MFA there, then close local password sign-in for privileged accounts. Confirm which learner and staff groups need it.

Identity provider docs

How the password policy differs by hosting model

On a single Tutor server, the password policy lives in the Tutor project directory on that host. Generated values sit in config.yml, while validator settings should go into a Tutor plugin so that they survive regeneration of configuration and rebuilds of images. The platform administrator who controls root access to the host usually makes the change, and the same person often checks it on a copy of the server before touching production. With only one environment, the safeguards come from process and documentation.

  • Where the settings sit: config.yml holds generated secrets and platform options, and the validator list belongs in a plugin stored in version control.
  • Who changes them: the administrator with access to the host, so that account and its access list should be documented as part of the control.
  • How to test: copy the project directory and data volumes to a staging host, apply the plugin, run tutor config save, rebuild, and restart the services.
  • Rollback: keep the previous plugin version in Git so the validator list can be reverted in one commit.
  • Evidence: record the test accounts you tried, such as short, common and compliant passwords, and keep the results with the change record.

Confirm that the staging copy runs the same Tutor version and plugins as production, because a validator that works on one version can behave differently on another. See the Tutor documentation for the current plugin and configuration commands.

Limits to confirm in your environment

A password policy only protects you if it applies everywhere a password can be set or changed. The items below are the points where Open edX behavior varies by release, by interface and by how accounts sign in, so confirm each one on your own instance before you call the policy done.

Validators shipped in your release

Confirm which password validators your release ships with and how they are configured in your settings, since the defaults are minimal and the exact validator classes can differ between releases. Check the active list in the Django AUTH_PASSWORD_VALIDATORS setting on both the LMS and Studio, not only the one you edited. Because only the latest named release is supported, validate the list against the release you actually run. Record the result so the next upgrade does not silently drop a validator.

Release notes

Parity between MFE and legacy dashboard

Test password change through the MFE account settings and through any legacy dashboard path that still exposes it, using the same weak and strong passwords. A rule that is enforced in one interface and skipped in another gives users a way around the policy. Also test password reset emails, since the reset form can follow a different code path from the change form. Write down which path each result came from.

Handling existing passwords

A new validator runs when a password is set or changed, so it does not check passwords already stored. Decide whether users are forced to reset at next sign-in, prompted at their next change, or left alone, and confirm how your build handles this. Also confirm how long-standing accounts that predate the policy are reported, because an audit will ask for that evidence.

Django admin validator behavior

Confirm whether passwords set through the Django admin on the LMS and Studio domains pass through the same validators as learner-facing changes. Admin accounts usually carry the broadest access, so a gap here matters more than a gap for a learner. Test creating a staff user and changing a superuser password from /admin/, and check whether the admin password change form applies the policy.

SSO-linked account exclusions

Confirm which accounts keep a local password and which sign in only through a third-party provider. Accounts linked to SAML, OAuth2 or LTI identity providers may never store a local password the policy can check, and the policy will not govern the identity provider's rules. Decide whether those accounts are in scope, then document the boundary so reviewers can see which population the policy covers.

Identity provider docs

Questions buyers ask before configuring Open edX passwords

How much effort does an Open edX password policy change take?

The code change to add length and complexity validators is small, but the effort around it is what sets the total. Effort rises with the number of places that set or reset passwords, how many accounts already exist under the old rules, whether you run custom registration or import flows, and how many support questions a stricter policy will generate. Ask any partner or internal lead to break the work into validator design, settings changes in your Tutor configuration, regression testing of sign-up, reset and login, and a communication plan for learners and staff. Those parts, not the validator itself, are where most of the time goes.

Can our internal team configure Open edX passwords without a partner?

Yes, if your team already runs Open edX with Tutor and has someone comfortable with Django settings and the Open edX codebase. The skills needed are Python and Django password validation, Tutor plugin or configuration patterns, and a test environment that mirrors production. Teams without that background usually find the risk lies in breaking sign-in for staff who manage the platform. A partner adds value when you want a fixed scope, documented evidence for a security review, or an independent check on the change before it reaches production.

What do we need from our own staff for a password policy change?

You need three groups. Identity owners decide the rules, including minimum length, how passwords are checked against breach lists or reuse, and whether local passwords stay enabled for administrators. Security sign-off approves the policy and the evidence that it works. Test accounts are needed for learners, course staff, instructors and platform administrators, so each sign-up, login, reset and forced-change path can be checked. Ask who owns each decision before the work starts, because unresolved rules are the most common cause of delay.

How long does testing take, and what changes it?

Testing time depends on your user base more than on the code. A platform with a small set of staff accounts can be tested in a short cycle, while a platform with many learner accounts, several login paths such as single sign-on and local passwords, and custom registration forms needs more scenarios and a longer soak period. Also count the accounts that will fail the new rules on their next password change, and how your support desk will handle reset requests. Ask for the test matrix and the rollout plan in the quote, not just a single duration.

Should we push password rules to an SSO provider instead?

Often yes, when most users already sign in through a central identity provider. Open edX supports third-party authentication through OAuth2 providers, SAML 2.0, Shibboleth and LTI, so the identity provider can own length rules, lockout, breach checks and multi-factor authentication. Keep local password rules in Open edX for accounts that still sign in locally, such as break-glass administrators or learners without an institutional identity. If you delegate, confirm that local sign-in for admins is closed, otherwise the stronger SSO policy can be bypassed.

What does a partner's fixed-scope engagement include for passwords?

DeployOpen plans, implements and tests Open edX work under a written scope, with deliverables and timelines agreed before work starts. For a password policy, a typical scope covers reviewing the current settings, agreeing the rules with your identity and security owners, implementing the validators in your Tutor project, testing sign-up, login, reset and forced-change paths, and documenting the change for your review. Ongoing retainers can cover later policy changes or upgrades. Ask for the exact deliverables, the test accounts you must supply and what is excluded, such as SSO work, which is quoted separately.

What should we verify before the new policy goes live?

Check that the validators run on every path that sets a password, including account creation, password reset, administrator-created accounts and any imported users. Confirm that existing sessions and stored hashes behave as expected, and that error messages are clear enough for learners to fix their passwords without contacting support. Document the settings in your Tutor configuration so the policy survives upgrades, and confirm with your security team how the change will be evidenced for an assessment.

How DeployOpen works on this

DeployOpen scopes password policy work for Open edX as a written, fixed-scope engagement inside your own infrastructure. We agree which validators, which login paths and which evidence your security and compliance teams need before any configuration changes, then build, test and hand over the result.

How we scope

  • Confirm which Open edX sign-in paths exist on your LMS and Studio, including local passwords, admin accounts and any SSO delegation.
  • Agree the minimum length, complexity and reuse rules with your security owner before writing any validator code.
  • Decide in writing whether password policy stays in Open edX or moves to your identity provider, and record the reason.

How we build

  • Configure password validators in your Tutor-based deployment, with changes tracked in version control and reviewed before rollout.
  • Test new rules against account creation, password reset, forced change and admin-created accounts on a staging environment.
  • Check that the existing 75-character limit and any legacy accounts behave as documented, and record each test result.

How we hand over

  • Deliver a written configuration record listing each validator, its setting and the file or config key where it lives.
  • Provide test evidence, a rollback procedure and notes on how the rules interact with SSO sessions and admin access.
  • Walk your platform and security teams through operating the policy, including how to change it safely later.

How we support

  • Offer ongoing support and upgrade checks as a retainer, so validator behavior is rechecked when Open edX releases change.
  • Retest password rules after Tutor upgrades, plugin changes or moves to a new identity provider.
  • Scope any follow-on hardening, such as MFA or session timeouts, as a separate written engagement.

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.