r/linuxadmin • u/Outrageous_Use_907 • Oct 19 '26
What is the Linux equivalent to Windows Domain e. g. DC, AD etc.
/r/linuxquestions/comments/1xa8huz/what_is_the_linux_equivalent_to_windows_domain_e/
75
Upvotes
84
u/symcbean Oct 20 '26 •
I always think its funny when people ask this question.
AD is LDAP + DNS + Kerberos, all of which were around for a very long time on Unix systems long before Microsoft repackaged them. Yes, they also implemented centrally managed GPOs - a set of configuration rules distributed via LDAP. While there is some mechanisms for distributing such information across Linux (and Unix) systems via LDAP, these are very different from GPOs.
Linux can be configured to use all sorts of data sources for users and authentication - including Active Directory. As others have said, sssd is probably the easiest to provision your Linux machines to connect to an existing AD installation.
The Samba file and print services (running on Linux) can also use your existing AD or a replacement service.
I see mention of FreeIPA here - that is an LDAP service packaged up with tools for managing the database ad an oauth/saml identity provider. This is probably where you should be looking if / when you decide to replace Active Directory.
However this project is doomed when it's driven by someone wanting a quick return on costs. It rather suggests that nobody is considering the migration and retraining costs involved. Yes it will be massively cheaper but if someone is planning on a ROI of less than three years and not engaging with a provider with the right experience they don't really know what they are doing.
32
u/kaipee Oct 19 '26 edited Oct 19 '26
FreeIPA
389 Directory
Zentyal
NethServer
Foreman could be used for fleet management and configuration
7
u/rpedrica Oct 20 '26
It seems that no one here has been around long enough to know about NIS, the original authentication server. And it's still available in many Linux distributions.
It gives new meaning to the "lightweight" in LDAP.
6
u/northrupthebandgeek Oct 20 '26
The Linux equivalent to Active Directory is… Active Directory lmao
8
u/wildcarde815 Oct 19 '26 edited Oct 19 '26
(it's just active directory, sorry)
you can use kerberos + ldap via the sssd packages to make domain logins work without needing 'machine accounts' or you can go the ad join route using realm join. you can get considerably more complicated from there, but if all you want is username/pw that's easy. If you want to go further and replicate things like intune that's harder. in theory they are making intune linux friendly but the permission and management structure is so different that using a linux specific configuration manager is the better way to go imo.
edit: and to note, this setup does not require samba but it does require the kerberos workstation packages which depend on samba. so while it's not used or setup, it will be installed.
8
u/ricardolealpt Oct 20 '26
https://www.freeipa.org/
3
u/Eifelbauer Oct 20 '26
NIS.
2
u/vphan13_nope Oct 20 '26
Ideally there are SaaS alternatives to Entra but all the ones I've seen are missing core features like centralized autofs, keystore, sudo
5
u/wzzrd Oct 19 '26
Best equivalent is freeipa
1
u/Chaotic_Fart Oct 19 '26
Univention.. easier to set up.. can do most, if not all of what Windows Server can do (AD, DC etc)
1
u/serverhorror Oct 19 '26
Best se have is LDAP/Kerberos and config management (Ansible, puppet, ...).
1
u/xupetas Oct 20 '26
You have stacks of products, or single products.
Ie, if you want to use a supported product either go FreeIPA/IDM or openldap although openldap requires extra components to get kerb auth going.
Then you can also use a myriad of other software to your needs.
About the GPO you can use puppet, chef, ansible, etc etc etc
1
u/Professional-Work684 Oct 20 '26
samba?
0
u/Junior_Bee7274 Oct 19 '26
Replacing all the domain management stuff seems tricky.
0
u/WayneH_nz Oct 20 '26
There is a random server build that kind of looked like the old SBS server 2008. Does proxy server, firewall, ldap style AD. Called SMEServer, by koozali.
I have played around with it in a home lab and looks fantastic, but businesses love them some m365 tax..
https://www.koozali.org/home/about
Koozali SME Server (formerly known as e-smith) is a Linux distribution based on Rocky Linux offering an operating system for computers used as web, file, email and database servers. It employs a comprehensive UI for all management-related tasks and is extensible through templates. The letters SME stand for Small to Medium Enterprise, as that is the target market of the software. One of the most notable features of this distribution is its template system. SME Server 11.0 is based on Rocky Linux 8.10 which is based on Red Hat Enterprise Linux (RHEL). Version 64bit now available. Running Apache 2.4.#, MariaDB 11.4.#, PHP 8.5 Some additional Addons are available on the current "stable" Version, they are called "Contribs".
-1
u/whetu Oct 20 '26 edited Oct 20 '26
The industry is gradually moving away from on-prem infra like domain controllers, email servers, sharepoint etc and towards collaboration suites like MS365 or Google Workspace. Both of which have adjacent auth solutions.
So the question can be divided:
The first one has been answered: FreeIPA / RHIdM is the most direct comparative solution. Sure there are others, but largely that's that.
The second one: While Ubuntu does have
authd, Himmelblau is probably what you want. This also answers the GPO question - in addition to providing cloud-based auth with MFA etc, Himmelblau also gets your devices into Intune, and there's a (limited, albeit) set of compliance options in Intune for Linux clients ready to go. It also handles MS365 apps. Yes, you can run Outlook, Word, Excel etc on Linux - it's not perfect, but it works.That assumes, of course, an MS365/Entra environment.
authdand Himmelblau both allow connectivity to Google Cloud IAM, Keycloak, Okta and presumably any other standard OIDC provider. In those scenarios you'll need to figure out some other GPO replacement. Others have given the right opinions on solutions there.If the question is more along the lines of "If you were to completely, 100% remove Microsoft-anything-and-everything from your tech stack, what would you use?", well that's a whole other discussion.
(Posted from a laptop running Alma10 + Himmelblau.)
-3
u/Burgergold Oct 19 '26
Why are you looking to replicate MS on Linux?
0
u/Additional_Pace5377 Oct 20 '26
Light weight directory access protocol would be your answer. Samba also answers this partly
-3
u/michaelpaoli Oct 20 '26
For the most part there isn't an equivalent. All that AD and DC and much of that domain stuff, is a Microsoft Windows thing, not Linux nor generally applicable beyond Microsoft.
The only area where there's some overlap is DNS. And what Microsoft does there with domains and DC, etc. is a bit weird and messy and sort'a does it's own thing - not at all to standards ... other than mostly being whatever Microsoft say sit is ... if they even bother to say/document.
Anyway, Linux (and more generally *nix), can typically interact somewhat with that Microsoft AD and DC stuff .. even being a primary DC. But (e.g.) Linux doesn't do all that group policy stuff, etc., though with the right software installed and configured, it can generally manage that - e.g. function as DC, manage AD data, etc. As for enforcing the policies on clients ... that's mostly a Microsoft thing. On the Linux side, can tie in the login authentication and bit more, but generally not going to get the full AD policy enforcement stuff for clients on the Linux side of things. Even the native filesystems a very substantially different ... though Linux can also support filesystem types that are native to Microsoft Windows.
-1
u/dionisux Oct 19 '26
Red hay directory server
-1
u/Rudi9719 Oct 20 '26
Univention Corporate Server
-1
u/posterchild66 Oct 20 '26
Is steel belted radius still around? That was our option in the 90s.
In the crappy environment I've been around far too long, we just keep windows domains around with sssd for it, and various other stuff that needs windows servers.
0
u/[deleted] Oct 19 '26
[deleted] — view deleted comment
2
u/[deleted] Oct 19 '26
[removed] — view removed comment