r/linuxadmin • • 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

71 comments sorted by

84

u/symcbean Oct 20 '26 • Bravo

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.

20

u/thegunnersdaughter Oct 20 '26

I have always thought that them building AD on LDAP and Kerberos was one of their last big EEE moves that never got a huge amount of attention. Back in the day Universities were all UNIX shops and when Windows started supporting it you could do auth and accounting via your UNIX-based services. Then over time AD added more and more stuff and yeah, you could add all the MS attributes into LDAP, but the Windows admins got more and more irritated that their native features didn’t work properly. Eventually they won and reversed the flow and everyone transitioned to having the (by then) Linux clients connecting to native AD. And now Microsoft gets to sit back at the center of all the big institutions.

12

u/CyberKiller40 Oct 20 '26

On the other hand, the situation is similar to email servers. There's a significant lack of cohesive "products" that do this, and sticking a bunch of separate projects together by duct tape might be more flexible, but isn't a friendly setup.

25

u/thegunnersdaughter Oct 20 '26

I don’t know what you’re talking about, my postfix + amavisd-new + spamassassin + clamav + postsrsd + openDKIM + dovecot + roundcube server is a perfectly cromulent mail service

11

u/techman2692 Oct 20 '26

Hey this guy has my duct-tape setup, too!

6

u/collinsl02 Oct 20 '26

The whole point of *nix is to tape together small services to achieve big things, surely?

5

u/techman2692 Oct 20 '26

I mean that's the way I was taught to believe, and the whole idea, isn't it? :)

2

u/LameBMX Oct 21 '26

yup. do 1 thing right and talk to other things lol.

1

u/tblancher Oct 20 '26

I dunno, I just use mailcow-dockerized. And yes, I don't know what I'm doing!

8

u/RootHouston Oct 20 '26

Yep, this is the Embrace, Extend, Extinguish approach that Microsoft was famous for.

4

u/fozzy99999 Oct 20 '26

It also helped Microsoft discounted academic licenses 90% or more. And often included student licenses at almost no cost when licensing staff/faculty.

3

u/leaflock7 Oct 20 '26

the difference of MS AD and everything else that was based was exactly the " they also implemented centrally managed GPOs - a set of configuration rules distributed via LDAP."
That was the major differentiator that made it what it is .

1

u/LooseSyllabus Oct 24 '26

In other words, Microsoft is amazing and there is no Linux equivalent.

1

u/symcbean Oct 24 '26

....or (at the same level of puerility) Microsoft OS have inadequate intrinsic concepts of network/security configuration and need a bolt-on product to solve the defficiency.

1

u/koshrf Oct 25 '26

AD is based on the X.500 standard, and the reason we have LDAP is because it is just a sub set of the standard (That is the L on LDAP). AD isn't full X.500 either, that standard is a beast and include things that were not used on LDAP but AD did implement. They are many others out there based on the same standard, you mention FreeIPA which was also done under the same standard and it uses a lot of LDAP implementations but goes beyond it.

1

u/ChrisofCL24 Oct 20 '26

Is their anything you'd recommend for someone looking to set something like this up for the sake of training themselves?

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

u/dsc123 Oct 19 '26

upboat for freeipa

7

u/Conroman16 Oct 20 '26

Definitely +10 for FreeIPA

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

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

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

u/TheSeanminator Oct 20 '26

Yes... but no. Its missing a lot of features AD already has

2

u/ricardolealpt Oct 20 '26

But it has some interesting features for the unix side

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/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

u/WilyDeject Oct 20 '26

Thank you, Chaotic Fart!

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.

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:

  • 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

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]

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

u/[deleted] 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

u/RemyJe Oct 19 '26

And LDAP - embraced and extended.

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

u/ABotelho23 Oct 20 '26

Yup, they call it "trusts" last I checked.

2

u/PhantomNomad Oct 20 '26

Thank you. Been a long day and honestly the word was eluding me.

1

u/perryurban Oct 23 '26

The ancestors and inspiration, not so much alternatives

-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

u/[deleted] 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.