Samba major version upgrade: what changes

Samba 4.23 and 4.24 are on the way out, with the current stable series at 4.25. The documented path starts with release notes and a backup, then dbcheck testing.

On this page

Samba major version upgrade: how far behind is your series?

The current stable series is 4.25, and 4.25.0 is the current stable release. Series 4.24 is in maintenance mode and series 4.23 gets security fixes only, so the upgrade target depends on the series your domain runs today. Check the installed version on each domain controller, then compare it with the status list. The Samba release planning page, dated December 2026, lists 4.25 with an end-of-life date of March 2028, 4.24 with September 2027 and 4.23 with March 2027. The earliest of those dates sets your planning deadline, so a domain on 4.23 has the least time to move.

Treat these figures as a planning snapshot. Confirm the current stable release on the Samba website before you plan, since release status and end-of-life dates can change after a planning page is published. The updating procedure starts with stopping Samba services and taking a backup, then reading the release notes for every skipped version, including the initial x.y.0 release of any new major series. Versions do not need to be upgraded one at a time, so a move across several releases is allowed, but the notes for each release on that path still apply.

Test the upgraded AD DC before cutover. The Samba updating guide asks you to run samba-tool dbcheck --cross-ncs on the upgraded DC and to follow the multi-DC procedure when more than one domain controller is in the domain. If the domain still uses the ntvfs back end, migrate to s3fs before starting samba, because the guide notes that Samba 4.5.0 no longer builds ntvfs by default. Also check whether the DC serves files, since the Samba wiki advises a separate domain member for file serving when several DCs exist. Agree the rollback steps and confirm the backup restores before the change window opens.

Which Samba series still receive fixes, and when each one ends

This table lists the Samba series covered by the December 2026 release planning page, with each series' status and end-of-life date. Read the status column to see which series still receive fixes, and check the end-of-life column to see how much time remains before each one ends. The main takeaway: 4.25 has the latest end-of-life date, so any domain controller on 4.23 or 4.24 should have a move to 4.25 planned before its end-of-life date.

SeriesStatusEnd of life
4.25Current stable series. Samba 4.25.0 is the current stable release, so new deployments and planned upgrades should start here, and a domain controller moved to this series gets the longest support window in this table.2028-03
4.24Maintenance mode. Samba 4.24.8 is also available for download, so an estate still on 4.24 can take that build while it prepares the move to 4.25.2027-09
4.23Security fixes only. Expect no general bug fixes after this point, so a 4.23 domain controller should move to a supported series before its end-of-life date in March 2027.2027-03
Series older than 4.23Not listed here. Check the Samba release planning page directly for their current status and end-of-life dates before you plan any upgrade from them.Check the release planning page
Upgrade pathBefore moving to any series, read the release notes for every skipped version and the x.y.0 release of the new series. Stop Samba services and take a backup first, because the upgrade guide expects both steps.Not applicable

The documented path for a Samba upgrade, step by step

This sequence follows the Samba wiki's upgrade guidance: read the notes, back up, check the storage back end, install and test, then bring each further domain controller up in turn. Each step ends with a check, so problems surface before the change reaches the next host.

  1. Read the release notes for every skipped version

    The administrator responsible for the upgrade reads the release notes for each version between the installed release and the target, including the initial x.y.0 release of any new major version. The guide does not require upgrading one version at a time. Its example moves from 4.4.4 to 4.6.2 while reading the notes for 4.5.0, 4.6.0, 4.6.1 and 4.6.2, and Updating Samba sets out this path. You know this step is done when you have a written list of changes that affect your domain controllers, file shares and scripts, with an owner for each item.

  2. Stop Samba services and take a backup

    Stop the Samba services on the host before any other change, so the configuration and directory state stay still while you copy them. Take a full backup of the Samba configuration and state directories and, on an AD DC, the directory database, then store a copy off the host. The guide asks for both actions. You know this step is done when the backup is written and you have restored it successfully on a separate test host before you continue.

  3. Check every DC for the ntvfs back end

    Before Samba starts on the new version, check whether any domain controller still uses the ntvfs back end. The guide notes that Samba 4.5.0 no longer builds ntvfs by default, so a DC that uses it must migrate to s3fs before Samba starts. Confirm the configured back end on each host and record the result per host. Ask the guide for the migration procedure and follow it before going further. You know this step is done when every DC is confirmed on s3fs, or its migration is complete and recorded.

  4. Install the new version and test it

    Install the target Samba release using packages that match your distribution, starting on a test copy of the environment or a non-production domain controller. Start the services and confirm the server runs cleanly. This is where the changes from the release notes either apply or show up. You know this step is done when the service starts without errors and test clients can authenticate and reach the shares they depend on.

  5. Run dbcheck with cross-NCs during testing

    On an AD DC, run samba-tool dbcheck --cross-ncs while the upgraded server is under test. The check looks for inconsistencies in the directory database, including those that span naming contexts. The guide asks for this check during testing, so run it before you change any other domain controller. You know this step is done when the command reports no errors, or each reported problem is resolved and the check passes on a second run.

  6. Upgrade each further domain controller in turn

    Work through the guide's multi-DC procedure for each additional domain controller. Repeat the back-end check from the earlier step on every host, and record which version each host runs. Run the dbcheck command on each AD DC as part of its upgrade. You know this step is done when every DC reports the same target version, the multi-DC procedure is complete, and the dbcheck result is recorded for each host.

  7. Confirm any directory database step with the guide

    This guide documents no separate database migration tool, so do not assume that your upgrade has no database step. Check the upgrade guide for your specific target version and confirm whether any directory database step applies. Ask the Samba community or your support channel if the guide is unclear for your version. You know this step is done when the answer is written into the change record alongside the dbcheck results from every domain controller.

Breaking changes to check in a Samba major version upgrade

Five changes can break an upgrade or leave a domain in a state you did not plan for. Each card names the domain controllers or domains it affects and the check to run before you start. Check each one on every DC in the domain before the first upgrade begins.

ntvfs back end

Samba 4.5.0 no longer builds the ntvfs back end by default. Only domains that still use it are affected, but each DC running ntvfs must migrate to s3fs before Samba starts again on the new version. Confirm which DCs load the ntvfs back end in their configuration, then rehearse the migration on a lab copy of the domain before you touch production.

DNS back end on each DC

A Samba AD DC supports the SAMBA_INTERNAL and BIND9_DLZ DNS back ends. The wiki warns against NONE, and BIND9_FLATFILE is not supported, so a DC on either of those needs a change plan before it is upgraded. Do not assume every controller in the domain uses the same back end. Check which backend each DC uses, record the result, and confirm that DNS zones and forwarding still resolve after the upgrade is tested.

AD DC setup guide

Domain functional level

Samba supports the 2008 R2 functional level since 4.0, the 2012 and 2012 R2 levels since 4.19, and the 2016 level since 4.20. Before you upgrade, compare the domain level with the target version and confirm the target Samba release supports the level your domain already runs. Raising a functional level is a separate change from the upgrade, so schedule it on its own with its own test.

Functional level guide

File serving on a DC

The Samba wiki advises against using an AD DC as a file server when the domain has more than one DC. Where a DC already serves shares, plan to move them to a separate Samba domain member before the upgrade, so the upgrade does not also become a file access problem. Find every share hosted on a DC, including ones set up years ago, and test that clients reach each one after the move.

Release notes for every skipped version

The full change list for Samba 4.25 lives in its release notes, and those notes are the reference for anything this page does not cover. The wiki says to read the notes for every skipped version, including the initial x.y.0 release of any new major version. Its updating example moves from 4.4.4 to 4.6.2 while reading the notes for 4.5.0, 4.6.0, 4.6.1 and 4.6.2, so skipping intermediate versions does not skip their notes.

Samba updating guide

The restore point comes before any change to the domain controllers

The diagram starts by reading the release notes for every skipped version, including the initial x.y.0 release of any new major version. Then it stops Samba services and takes a backup, which is the restore point. Next, check whether any domain controller uses the ntvfs back end. If so, migrate it to s3fs before samba starts, since Samba 4.5.0 no longer builds ntvfs by default. Upgrade in staging, then run samba-tool dbcheck --cross-ncs. If there are multiple domain controllers, follow the multi-DC procedure for each further DC before production cutover and verification. A failed staging test returns to the restore point, labeled restore from backup, because the documented guidance does not describe a rollback procedure.

Upgrade sequence with the restore point and the failure path back to it.

Planning a Samba major version upgrade by environment

A single domain controller has no replication partner, so the backup is the only recovery path if the upgrade goes wrong. Plan the work as one change window on that machine, and treat the restore test as a gate before the live DC is touched.

  • Backup and restore test. Stop Samba services and take a backup before upgrading, as the Samba wiki's updating guide asks. Restore that backup into an isolated network and confirm the domain starts and users still authenticate.
  • Staging copy. Build the staging copy from that backup and run the full upgrade there first, including the release notes review for every skipped version.
  • DNS backend check. Confirm whether the DC runs SAMBA_INTERNAL or BIND9_DLZ. The wiki warns against the NONE backend and does not support BIND9_FLATFILE, so a DC on either needs a migration plan first. Run samba-tool dbcheck --cross-ncs on the upgraded staging copy.
  • Domain functional level. Record the current level and confirm the target version supports it. Samba supports the 2016 level from 4.20, and raising the level is a separate step to schedule after the upgraded DC runs cleanly.
  • Bound applications and sign-off. List every application and integration that binds to the domain, including LDAP, Kerberos and DNS clients, and test each one against staging. Get written sign-off from the identity owner and each application owner before cutover.

Before the window opens, confirm the restore test has a recorded result and that the sign-off names who accepts the rollback decision.

Testing and rollback when the project does not document a rollback path

The documented upgrade guidance covers three things: a backup taken after services stop, a samba-tool dbcheck --cross-ncs run when testing an upgraded AD DC, and the multi-DC procedure for upgrading domain controllers. It does not describe a rollback procedure. The backup taken before services stop is the only restore point you can plan around, and it should be treated as unproven until someone has restored it. Rehearse that restore in staging on a copy of your domain controllers, start Samba, confirm each DC answers, and record how long the restore took so the change window reflects measured time. Ask the Samba maintainers or your support provider how a restored DC rejoins replication with its peers. A controller carrying older directory state can behave unexpectedly once it rejoins, so confirm that procedure before relying on it. The Updating Samba guide is the starting point for that conversation.

The checks below are the team's own test plan, not requirements listed in the Samba documentation, so write them as acceptance criteria before the window opens. Start with the directory health check: run samba-tool dbcheck --cross-ncs on each upgraded DC, keep the output, and compare it with a run captured before the upgrade so that new errors stand out against the baseline. Next, test DNS resolution from a Windows client and a Linux host. Query the _kerberos._tcp and _ldap._tcp SRV records for your domain and confirm the answers list every DC you expect. Do this for the DNS backend you run, whether SAMBA_INTERNAL or BIND9_DLZ, because a fault in one backend will not show up in the other. Finally, confirm Kerberos ticket issuance by requesting a ticket-granting ticket with kinit for test accounts, then a service ticket for a file share, against each DC in turn.

Client logons and integrations come last. Test interactive and network logons from a sample of Windows and Linux clients, including accounts in the groups that hold the most permissions, and confirm that the logon scripts and group policy your users depend on still apply. Then test each integration from your own inventory, such as file shares, print services, applications that bind to LDAP, RADIUS, SSH logins, VPN, and services that use Kerberos keytabs. Give every integration a named owner who runs its test against the staging copy. Set the pass criteria in advance and agree who makes the call: a failed check on the staging run stops the change window, and the decision to restore from backup should already be written down before anyone touches production.

What buyers ask before they upgrade Samba

What drives the cost of a Samba major version upgrade?

Labor and testing drive the cost. Samba is GPL-3.0 licensed, so the spend sits in staff time, staging capacity and change windows. Most of the bill goes to people who read release notes, run checks, rehearse the change and sign off on results. Four factors push the cost up or down:

  • The number of domain controllers.
  • The number of integrations that depend on the directory, such as file shares, DNS clients, LDAP-bound applications and VPNs.
  • The size and fidelity of your staging environment.
  • How many change windows you can book.

The upgrade itself is a one-time project. The next major version repeats the same cycle, so plan it as a recurring operations cost. In a quote, ask for effort by line item so you can see which factor moves the total if your estate changes.

How long does a Samba major version upgrade take?

The duration depends on your estate, and the timeline should be written into the scope before work starts. Three factors drive it most: the number of domain controllers, the number of Samba versions you skip, and how deep the testing goes. Each skipped version adds release notes to read, because the Samba wiki advises reading the notes for every skipped version, including the initial x.y.0 release of a new major version. Multi-DC estates follow the multi-DC procedure in the Samba wiki, so every additional domain controller adds upgrade and verification steps. Deeper testing, including dbcheck runs and client checks against an upgraded test DC, also adds time. Ask any provider to state the number of DCs, skipped versions and test cases behind the timeline they give you.

What does a Samba upgrade need from our team?

It needs domain administrator access, verified backups, a staging domain and named application owners before the work begins. Agree these four things in the written scope:

  • Administrator access to every domain controller in scope, plus the right to stop and start Samba services in a change window.
  • Backups you have tested for restore, so a rollback is a working option.
  • A staging domain that matches production in DC count, DNS backend and functional level.
  • Application owners for file shares, LDAP-bound applications, VPNs and DNS clients who can run their own checks after the upgrade.

The Samba updating guide tells you to stop services and take a backup before upgrading, so treat these items as prerequisites for the first change window.

Can our own team upgrade Samba without a partner?

Yes, if your team can read release notes and run dbcheck, but the risk rises with multi-DC estates and DNS changes. A single domain controller with a simple DNS setup is the lowest-risk case for an internal team. The Samba wiki asks you to run samba-tool dbcheck --cross-ncs when testing an upgraded AD DC, and to follow the multi-DC procedure when you upgrade more than one controller. Risk grows when you change DNS backends, because a mistake can break name resolution and replication across the domain at once. Check for the ntvfs back end as well: Samba 4.5.0 stopped building it by default, so a DC that still uses it must migrate to s3fs before Samba starts. Consider a partner if your team cannot staff a rollback rehearsal and a retest.

Does a cloud provider's managed service run Samba for us?

No managed service from AWS, Azure or Google Cloud that runs Samba itself appears in their documentation, so plan for a self-hosted upgrade. Their SMB file and directory services are separate products, and moving to one is a separate migration project with its own testing. If you run Samba in a cloud account, the upgrade remains your work in your own virtual machines or containers, including backups, staging and rollback. Cloud providers change their offerings, so check the current documentation for your provider before you rely on it. Ask any implementation partner to confirm which parts of the Samba stack they operate for you and which stay with your team.

What should a Samba upgrade quote include?

A quote should cover the scope, test environments, a rollback rehearsal and a retest, each with a named owner and deliverable. Ask for these lines:

  • The systems in scope: each domain controller, the DNS backend, member and file servers, and the integrations that depend on them.
  • Test environments: where each upgrade step runs first and how closely it matches production.
  • A rollback rehearsal: a timed restore from a verified backup, run before the production window.
  • A retest: client and application checks after the upgrade, with dbcheck output recorded.

Most of DeployOpen's engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so the quote follows from that written scope. Ask any provider which of these lines they include and which they leave to your team.

Which Samba release line should we target for the upgrade?

Samba 4.25 is the current stable series, but confirm the dates on the release planning page before you fix a target. The Samba release planning page, as of December 2026, lists 4.25 as stable with end of life in March 2028, 4.24 in maintenance mode with end of life in September 2027, and 4.23 receiving security fixes only with end of life in March 2027. Those dates set how long a version keeps receiving fixes, so count the months from your planned cutover to the end-of-life date. A target on 4.25 still means reading the release notes for every version you skip, and that reading is part of the upgrade effort. Re-check the table at the source close to your change window, since the wiki page is updated over time.

When to bring in outside help for a Samba upgrade

Bring in outside help when the upgrade reaches beyond one server with a known configuration. The clearest trigger is several domain controllers, because the Samba updating guide directs you to follow the multi-DC procedure for each controller, and the order of those steps decides whether replication stays healthy. Other triggers are a domain still using the ntvfs back end, which Samba 4.5.0 no longer builds by default and which must move to s3fs before Samba starts, and a DNS back end (SAMBA_INTERNAL or BIND9_DLZ) that someone must review after the move. Also consider outside help when a functional level must be raised across several major versions, when a DC also serves files, or when the end-of-life date leaves little room for testing.

Before you commit, confirm three things in your own estate. First, check which series each DC runs and whether the planned target is still supported on your timetable: the Samba release planning page lists 4.23 as security fixes only (EOL 2027-03), 4.24 as maintenance mode (EOL 2027-09) and 4.25 as the current stable series (EOL 2028-03). Second, read the release notes of every skipped version, including the initial x.y.0 release of any new major version. Third, plan to run samba-tool dbcheck --cross-ncs on a test copy of the upgraded DC. If any of these checks produce findings you cannot explain in a single afternoon, that is the point where a second pair of hands on the runbook pays off.

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including your cloud accounts, data centers or air-gapped networks. Most engagements run under a fixed scope agreed in writing before work starts, so the deliverables, the DCs in scope and the test and rollback steps are visible to your team in advance. Your internal team keeps ownership of its directory, its DNS zones and its change approvals, and it decides when a change goes to production. Ask any provider for the named DCs, the test environment, the rollback plan, the dbcheck output you will receive and who signs off each change before you agree a quote.

How DeployOpen plans and runs a Samba upgrade

DeployOpen plans a Samba major version upgrade as a controlled change to a running domain controller. We agree the target version, the release notes to review and the test and rollback steps in writing, then build and test in a non-production environment before production. Every step is documented and handed over to your team.

How we scope

  • The written scope names the source and target Samba versions and every release note between them.
  • We inventory the domain: DCs, DNS backend, file-serving roles and any ntvfs back end still in use.
  • Scope confirms which target series to use, checked against Samba's release planning page on the day of work.

How we build

  • We take a backup and stop Samba services before any change, as the Samba updating guide directs.
  • We run samba-tool dbcheck --cross-ncs on the upgraded DC and work through every reported issue.
  • Multi-DC domains follow Samba's multi-DC procedure, with a health check recorded after each controller.

How we hand over

  • The runbook records the backup, the upgrade order, every check output and the rollback steps.
  • Rollback steps are tested in the non-production run before the production window is agreed.
  • Your team receives the final documentation and a handover session covering the DNS backend and domain functional level.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • A retainer can cover planning for the next Samba series, including release notes for each skipped version.
  • Ask the quote to separate fixed-scope work, any retainer and the cost of your test hardware.

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.