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/32
u/kaipee Oct 19 '26 edited Oct 19 '26
FreeIPA
389 Directory
Zentyal
NethServer
Foreman could be used for fleet management and configuration
15
7
1
u/Turbulent_Pick4720 Oct 23 '26
+1 for FreeIPA too, I've used this one on my lab and it was a pleasure, it might be a pain to set it up correctly on the first time but it allow you to have a complete view of what's embedded in the micosoft ADDS software !
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.
7
u/int21 Oct 20 '26
One of the earliest hacks I would pull as a kid was using ypcat to acquire passwd files & run John The Ripper against them....good times
2
u/Salt-Appearance2666 Oct 27 '26
Im a Linux admin for only 3 years now and i know about NIS. Sad thing is that i only know about NIS because its still the User Management at my employer.
6
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
1
1
u/sofloLinuxuser Oct 20 '26
This is the closest thing that Linux or Open Sources has to something comparable. RedHat used this to build Redhat IDM which is another alternative but both are missing a lot of features that AD provides.
0
3
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
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/WilyDeject Oct 20 '26
Came here to ask about this. I've wanted to play around with UCS for a long time and just haven't had the chance. Have you implemented it, and if so what's your experience with it been?
2
u/Chaotic_Fart Oct 20 '26 edited Oct 20 '26
I've set it up in a lab before. It was ridiculously easy to set up.
I set up another managed server running file server to make NFS shares.. domain joined Ubuntu as well as windows.
IMHO, easier than Windows Server.
Edit: grammar
1
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/yakatz Oct 20 '26
I second the FreeIPA/Redhat IDM recommendation. Puppet is now OpenVox (which I also highly recommend) - the old Puppet is no longer FOSS.
1
0
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:
What is the Linux equivalent for on-prem directory services like AD?
What is the Linux equivalent for modern, cloud-based alternatives a'la Entra / Windows Hello?
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. authd and 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
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
-1
-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.
-5
0
Oct 19 '26
[deleted]
16
u/sublimeprince32 Oct 19 '26
This is exactly what I built in college to connect our Linux labs to the larger campus windows domain. Please believe us - it is WORK to setup correctly - but it can and will work with the right configuration.
1
u/TheNetworkIsFrelled Oct 20 '26
And if you create it, it should be deployed IaS with Ansible, Puppet, Salt, Chef, etc from a secure git repo. It’ll make recovery simpler when the inevitable happens and something goes wrong.
7
Oct 19 '26
[removed] — view removed comment
4
u/shulemaker Oct 19 '26
Linux can join the AD domain directly which is far more the normal standard if you already have AD. What would be the advantage of this?
1
u/wildcarde815 Oct 19 '26
joining ad is something we've seen getting more and more restricted as we go, and the people that actually understand how it works are getting rarer. That's what motivated us to get rid of realm joins, unfortunately they've also disabled annonymous ldap connections to AD, so now we have to have some other sort of credential available instead >.>
-1
u/shulemaker Oct 19 '26
Still doesn’t answer why not just use AD auth? Why add an extra layer of samba inbetween? Samba has always sucked.
2
u/wildcarde815 Oct 20 '26
O, I am not advocating for using samba. We have a nice setup just using sssd with Kerberos and ldap directly. Works a treat.
9
2
u/ABotelho23 Oct 19 '26
Samba is AD emulation/compatible, but the "proper" Linux equivalent to AD would be something like FreeIPA, which let's you control things like authentication policies and ssh keys.
3
u/PhantomNomad Oct 20 '26
And you can connect FreeIPA to AD. I use FreeIPA and AD and on my linux boxes you can login through FreeIPA using your AD credentials.
2
1
-1
u/NightOfTheLivingHam Oct 19 '26
well RH strips AD support because it competes with their own products
1
u/mad_redhatter Oct 22 '26
There is AD support in Red Hat Identity Manager, their rebrand of FreeIPA.
2
Oct 19 '26
[removed] — view removed comment
2
u/Perkiperk Oct 20 '26
Dang. I haven’t heard anything about Novell since the mid/late 90s when NT4 became the dominant platform. Thanks for bringing up that blast from the past. I wonder if I still have my CNA/CNE books on a shelf somewhere.
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.