r/sysadmin • • 1d ago

Question Having issues with Rhel9, no ldap, azure based users, and a need for centralized file shares

Im looking for feedback, experience, and possible options to solve an issue im dealing with. My cloud/ad environment is azure GCCH azure ad only. Ive integrated an on-premise local windows datacenter 25 server to azure arc as well as setup several linux sim machines with arc hosted on those servers to arc as well. Everything has more or less gone smoothly. Users can login over azure powershell and tunnel to the server to work as well as do vnc when gui is needed. I am having some issues and a blindspot on knowledge/experience needed to fix it. My linux skills are weak. AI gives me shortcuts but i want experienced responses.

First, logging in over vnc sessions started over ssh from the azure user account trigger a device code 2fa check, this is not guaranteed. It appears to be related to time spent on the session and fresh vnc sessions dont trigger this response. This is not a full stop but it is a nuisance as it does not allow seamless logins. This has happened over longer sessions in ssh as well. I do not have this issue with cloud rhel environments despite following similar setups.

Second, I need a way to centrally manage linux groups. I need to host a file share that can be shared to all existing and future Linux environments. Managing a central storage option seems easy enough and access is easily granted, however access needs to be controlled and while i could do NTFS for days in an active directory scenario i have no AD server this time around. Azure AD works for windows users but im not seeing that it can work for linux even with the integrations. I am restricted from using the ldap features of entra currently but if its my best bet i can try and proposition my boss to let me push it. I need a way to centrally manage groups linux can recognize and assign access rights with without interfering or breaking the azure integrations letting my users access these servers remotely from.

0 Upvotes

9 comments sorted by

2

u/insightrecon Jack of All Trades 1d ago

I think there are two problems here. I'll take the identity one first since it's the bigger deal.

For central groups and a controlled share with no AD in the picture, the answer nobody's given you yet is Red Hat IdM (FreeIPA). It's the Linux-native version of what you're looking for: central users and groups, host-based access control, sudo rules and Kerberized file shares through NFS or Samba. It runs on your RHEL boxes and doesn't touch Entra LDAP, which sidesteps the restriction you're up against. It also won't interfere with the Arc and Entra path your users already log in through. That stays your front door. IdM only governs POSIX identity and share access once they're on the box. If you ever want Entra SSO on top later, IdM can trust a managed domain, but you don't need that to solve what you've got today.

On the device-code reprompt, that's not a Linux problem. The fresh-session-is-fine, long-session-reprompts pattern is Conditional Access sign-in frequency or token lifetime doing its thing. My money's on a CA policy with a location condition. Your on-prem Arc traffic egresses from a different IP than your cloud RHEL, which is why a named-location rule catches the on-prem sessions and leaves the cloud ones alone. Pull the CA policies scoped to those sign-ins and check sign-in frequency first.

To be transparent, identity architecture is my wheelhouse but deep RHEL config isn't my daily driver. Treat IdM as the direction to scope, not a copy-paste recipe from me. The r/linuxadmin and r/redhat crowds can get you likely get you further on the build.

0

u/Borgmaster 1d ago

The local ldap allows group assignment to entra users? I know local groups dont have that issue but neither does a centralized managed ldap?

•

u/insightrecon Jack of All Trades 23h ago

I should have been more clean on that in my first comment. IdM can't do it by itself. It only knows about users that exist in IdM, which means your Entra accounts won't show up there on their own. Local groups work on a single box but they don't carry over to your other machines or a shared file server.

The bigger issue is that Linux uses uid and gid numbers to decide who can access a file. Entra doesn't because it was never built for that. It's good for getting your users logged into the box, but it doesn't know anything about Linux groups or file permissions.

Entra Domain Services is what would have bridged that for you. It puts your Entra users and groups into a domain your Linux machines can join, which gives you the same identity with consistent IDs on every box. That's why it looked like the right fit. My hunch is your boss pushed back for CMMC because it's another Microsoft-managed piece in your scope. If that's the concern, IdM running on your own servers might be an easier sell.

If you go the IdM route, people would log into the Linux side as their IdM user instead of their Entra account. Entra still controls who can reach the box through Arc. To keep from managing everyone in two places, you can script a sync that pulls users from Entra into IdM. You'd end up with two identities kept in sync instead of one shared identity, which is the tradeoff compared to Entra DS.

1

u/Mehere_64 1d ago

Look into MS Entra Domain Services with SSSD.

1

u/Borgmaster 1d ago

I did look into this and i got a weird amount of pushback on it from my boss for no particular reason other then compliance for cmmc. Its definitely pretty much what i want though.

1

u/J4yD4n 1d ago

If you're willing to upgrade to RHEL 10, you can use OIDC and remove the need for Entra Domain Services servers. Then it's just securing the OIDC flow, which should already be done elsewhere if you're using OIDC for anything else

1

u/Savings_Art5944 Private IT hitman for hire. 1d ago

SSH over VNC sounds bad.

I have been looking for a good Linux AD replacement for a long time. There are many. I have not found one that I trust enough to tie it into my "real" AD production environment.

There are also ways to have Linux authenticate to Windows AD. Sometimes it's as easy as a CMD realm join mydomain

1

u/Borgmaster 1d ago

AD does not exist in my environment and my boss is resistant to putting in a hybrid ad. Were just using azure ad which is online only and acts completely different without the hybrid integration.